From b27bb72a37b30f2e5dd6796333512ec7de06eb43 Mon Sep 17 00:00:00 2001 From: Rob van der Leek <5324924+robvanderleek@users.noreply.github.com> Date: Sat, 7 Dec 2024 22:43:10 +0100 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=94=A5=20Remove=20excludes=20?= =?UTF-8?q?parameter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 15 --------------- src/action.ts | 4 +--- 2 files changed, 1 insertion(+), 18 deletions(-) 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;