mirror of
https://github.com/giraffate/clippy-action.git
synced 2025-01-18 16:54:42 +01:00
Suppress Clippy logs
This commit is contained in:
parent
3009e30c95
commit
40cd456fe0
3 changed files with 5 additions and 1 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
@ -157,6 +157,7 @@ function run() {
|
|||
const reviewdogVersion = core.getInput('reviewdog_version') || 'latest';
|
||||
const toolName = core.getInput('tool_name') || 'clippy';
|
||||
const clippyFlags = core.getInput('clippy_flags');
|
||||
const clippyDebug = core.getInput('clippy_debug') || 'false';
|
||||
const level = core.getInput('level') || 'error';
|
||||
const reporter = core.getInput('reporter') || 'github-pr-check';
|
||||
const filterMode = core.getInput('filter_mode') || 'added';
|
||||
|
@ -180,6 +181,7 @@ function run() {
|
|||
], {
|
||||
cwd,
|
||||
ignoreReturnCode: true,
|
||||
silent: clippyDebug !== 'true',
|
||||
listeners: {
|
||||
stdline: (line) => {
|
||||
let content;
|
||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -14,6 +14,7 @@ async function run(): Promise<void> {
|
|||
const reviewdogVersion = core.getInput('reviewdog_version') || 'latest'
|
||||
const toolName = core.getInput('tool_name') || 'clippy'
|
||||
const clippyFlags = core.getInput('clippy_flags')
|
||||
const clippyDebug = core.getInput('clippy_debug') || 'false'
|
||||
const level = core.getInput('level') || 'error'
|
||||
const reporter = core.getInput('reporter') || 'github-pr-check'
|
||||
const filterMode = core.getInput('filter_mode') || 'added'
|
||||
|
@ -50,6 +51,7 @@ async function run(): Promise<void> {
|
|||
{
|
||||
cwd,
|
||||
ignoreReturnCode: true,
|
||||
silent: clippyDebug !== 'true',
|
||||
listeners: {
|
||||
stdline: (line: string) => {
|
||||
let content: CompilerMessage
|
||||
|
|
Loading…
Add table
Reference in a new issue