Code Analysis
flightstack/code-analysis@1.0.0 Step Verified Run dart analyze (or flutter analyze) and report issues.
Add it to a pipeline
jobs:
- id: code-analysis
uses: flightstack/code-analysis@1.0.0 Or drag it onto the canvas from the step palette in the visual editor. Pin an exact version for production pipelines.
Inputs
-
fatalWarningsboolean defaulttrue - Fail the step if any warning is reported.
-
workingDirectorystring default. - Project sub-directory inside the repo.
-
useFlutterboolean defaulttrue - Use
flutter analyze(otherwisedart analyze).
Outputs
issueCountinteger- Total number of issues reported.