Skip to content

Commit

Permalink
Disable progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
adangel committed Mar 18, 2023
1 parent abb8c03 commit 909a119
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const executePmd = async function(pmdInfo, fileListOrSourcePath, ruleset, report
}

if (isPmd7Cli(pmdInfo.version)) {
pmdExecutable += ' check';
pmdExecutable += ' check --no-progress';
}

let sourceParameter = ['-d', fileListOrSourcePath];
Expand Down
4 changes: 2 additions & 2 deletions tests/util.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ describe('pmd-github-action-util', function () {
const pmdFilelistContent = await fs.readFile(pmdFilelist, 'utf8');
expect(pmdFilelistContent).toBe('src/file1.txt,src/file2.txt');
expect(execOutput.exitCode).toBe(0);
expect(execOutput.stdout.trim()).toBe('Running PMD 7.0.0-rc1 with: check --no-cache --file-list pmd.filelist -f sarif -R ruleset.xml -r pmd-report.sarif');
expect(execOutput.stdout.trim()).toBe('Running PMD 7.0.0-rc1 with: check --no-progress --no-cache --file-list pmd.filelist -f sarif -R ruleset.xml -r pmd-report.sarif');
await io.rmRF(pmdFilelist);
await io.rmRF(path.join('.', 'pmd-report.sarif'));
});
Expand Down Expand Up @@ -452,7 +452,7 @@ describe('pmd-github-action-util', function () {
const report = JSON.parse(await fs.readFile(reportFile, 'utf8'));
expect(report.runs[0].tool.driver.version).toBe('7.0.0-SNAPSHOT');
expect(execOutput.exitCode).toBe(0);
expect(execOutput.stdout.trim()).toBe('Running PMD 7.0.0-SNAPSHOT with: check --no-cache -d . -f sarif -R ruleset.xml -r pmd-report.sarif');
expect(execOutput.stdout.trim()).toBe('Running PMD 7.0.0-SNAPSHOT with: check --no-progress --no-cache -d . -f sarif -R ruleset.xml -r pmd-report.sarif');
await io.rmRF(reportFile)
});

Expand Down

0 comments on commit 909a119

Please sign in to comment.