File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ inputs:
11
11
description : ' SwiftLint version to use or "latest" to query the latest available version'
12
12
required : false
13
13
default : ' latest'
14
+ strict :
15
+ description : ' Upgrades warnings to serious violations (errors)'
16
+ required : false
17
+ default : ' false'
14
18
15
19
runs :
16
20
using : node20
Original file line number Diff line number Diff line change @@ -53,9 +53,13 @@ export async function run(): Promise<void> {
53
53
// Run the SwiftLint binary and capture its standard output
54
54
let stdout = ''
55
55
56
+ let swiftlintArgs = [ 'lint' , '--reporter=json' ]
57
+ if ( core . getInput ( 'strict' ) === 'true' ) {
58
+ swiftlintArgs . push ( '--strict' )
59
+ }
56
60
await exec . exec (
57
61
path . join ( portableSwiftlintDir , 'swiftlint' ) ,
58
- [ 'lint' , '--reporter=json' ] ,
62
+ swiftlintArgs ,
59
63
{
60
64
listeners : {
61
65
stdout : ( data : Buffer ) => {
You can’t perform that action at this time.
0 commit comments