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

fatalWarnings boolean default true
Fail the step if any warning is reported.
workingDirectory string default .
Project sub-directory inside the repo.
useFlutter boolean default true
Use flutter analyze (otherwise dart analyze).

Outputs

issueCountinteger
Total number of issues reported.