diff --git a/dist/index.js b/dist/index.js index df63f30..6291e57 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index edd4012..726110d 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/main.ts b/src/main.ts index c8dd68f..0603e3a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -13,6 +13,7 @@ async function run(): Promise { try { const reviewdogVersion = core.getInput('reviewdog_version') || 'latest' const toolName = core.getInput('tool_name') || 'clippy' + const clippyFlags = core.getInput('clippy_flags'); const level = core.getInput('level') || 'error' const reporter = core.getInput('reporter') || 'github-pr-check' const filterMode = core.getInput('filter_mode') || 'added' @@ -37,7 +38,7 @@ async function run(): Promise { const output: string[] = [] await exec.exec( 'cargo', - ['clippy', '--color', 'never', '-q', '--message-format', 'json'], + ['clippy', '--color', 'never', '-q', '--message-format', 'json', ...parse(clippyFlags)], { cwd, ignoreReturnCode: true, @@ -128,7 +129,6 @@ function parse(flags: string): string[] { return [] } - // TODO: need to simulate bash? return flags.split(/\s+/) }