Skip to content

Commit 909a119

Browse files
committed
Disable progress bar
1 parent abb8c03 commit 909a119

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const executePmd = async function(pmdInfo, fileListOrSourcePath, ruleset, report
6969
}
7070

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

7575
let sourceParameter = ['-d', fileListOrSourcePath];

tests/util.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ describe('pmd-github-action-util', function () {
422422
const pmdFilelistContent = await fs.readFile(pmdFilelist, 'utf8');
423423
expect(pmdFilelistContent).toBe('src/file1.txt,src/file2.txt');
424424
expect(execOutput.exitCode).toBe(0);
425-
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');
425+
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');
426426
await io.rmRF(pmdFilelist);
427427
await io.rmRF(path.join('.', 'pmd-report.sarif'));
428428
});
@@ -452,7 +452,7 @@ describe('pmd-github-action-util', function () {
452452
const report = JSON.parse(await fs.readFile(reportFile, 'utf8'));
453453
expect(report.runs[0].tool.driver.version).toBe('7.0.0-SNAPSHOT');
454454
expect(execOutput.exitCode).toBe(0);
455-
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');
455+
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');
456456
await io.rmRF(reportFile)
457457
});
458458

0 commit comments

Comments
 (0)