Skip to content

Commit

Permalink
Removed the analysis-options-file input, because dart analyze doesn't…
Browse files Browse the repository at this point in the history
… support it (fixes zgosalvez#12)
  • Loading branch information
peterfortuin committed Aug 28, 2022
1 parent 829a7b5 commit 46697f2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ For more information on these inputs, see the [Workflow syntax for GitHub Action

- `fail-on-warnings`: The action fails if any warning was found. This will always fail on errors. Optional. Default: `false`
- `working-directory`: The working directory. Optional. Default: `./`
- `analysis-options-file`: The path to the `analysis_options.yaml` file relative to the `working-directory`. The analyzer will only use the file if it exists. Optional. Default: `analysis_options.yaml`
- `line-length`: The maximum line length. Optional. The formatter will use its default: `80`

### Outputs
Expand Down
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ inputs:
working-directory:
description: 'The working directory. Optional. Default: `./`'
default: ./
analysis-options-file:
description: 'The path to the `analysis_options.yaml` file relative to the `working-directory`. The analyzer will only use the file if it exists. Optional. Default: `analysis_options.yaml`'
default: analysis_options.yaml
line-length:
description: 'The maximum line length. Optional. The formatter will use its default: `80`'
runs:
Expand Down
8 changes: 0 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ async function analyze(workingDirectory) {
}
};

const analysisOptionsFile = core.getInput('analysis-options-file');
const args = ['--format', 'machine'];

if (fs.existsSync(path.resolve(workingDirectory, analysisOptionsFile))) {
args.push('--options');
args.push(analysisOptionsFile);
}

args.push('.');

await exec.exec('dart analyze', args, options);
Expand Down

0 comments on commit 46697f2

Please sign in to comment.