diff --git a/README.md b/README.md index f0f592a..1bc6e69 100644 --- a/README.md +++ b/README.md @@ -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 -``` diff --git a/src/action.ts b/src/action.ts index 5b1562e..c66b9db 100644 --- a/src/action.ts +++ b/src/action.ts @@ -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;