Skip to content

Commit 8bec469

Browse files
authored
Added a parameter for setting a soure directory for the flutter/lint job (#32)
1 parent daefa46 commit 8bec469

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/jobs/lint.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ parameters:
1414
default: .
1515
description: Path to the directory containing your pubspec.yaml file. Not needed if pubspec.yaml lives in the root.
1616
type: string
17+
analyze-dir:
18+
default: lib
19+
description: Path to the directory containing your Dart source code to analyze.
20+
type: string
1721
cache-version:
1822
default: v1
1923
description: Change the default cache version if you need to clear the cache for any reason.
@@ -27,5 +31,5 @@ steps:
2731
cache-version: <<parameters.cache-version>>
2832
- run:
2933
name: Run static analysis
30-
command: flutter analyze lib
34+
command: flutter analyze <<parameters.analyze-dir>>
3135
working_directory: <<parameters.app-dir>>

0 commit comments

Comments
 (0)