Skip to content

Commit

Permalink
refactor: 🔥 Remove excludes parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Dec 7, 2024
1 parent 7ef84ca commit b27bb72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,3 @@ jobs:
- name: 'Run Code Limit'
uses: getcodelimit/codelimit-action@v1
```
## Excluding files
Use the input parameter `excludes` to exclude files and directories, this
action parameter takes a list of
[patterns](https://git-scm.com/docs/gitignore#_pattern_format).

```yaml
- name: 'Run Code Limit'
uses: getcodelimit/codelimit-action@v1
with:
excludes:
- examples
- third_party
```
4 changes: 1 addition & 3 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ async function main() {
let exitCode = 0;
const clBinary = await downloadCodeLimitBinary();
console.log('Scanning codebase...');
const excludes = getMultilineInput('excludes');
const excludeOpts = excludes.flatMap(e => ['--exclude', e]);
await exec(clBinary, [...excludeOpts, 'scan', '.']);
await exec(clBinary, ['scan', '.']);
const markdownReport = await generateMarkdownReport(clBinary);
const octokit = new Octokit({auth: getInput('token')});
const doCheck = getInput('check') || true;
Expand Down

0 comments on commit b27bb72

Please sign in to comment.