Skip to content

Commit

Permalink
Suppress non-json output
Browse files Browse the repository at this point in the history
When a standard specifies `<arg value="p"/>` (progress) option linter
breaks since it expects json output, and PHPCS spits out dots for
passing files and 'E' for errors.

Adding `-q` option suppresses progres output.

Maybe related: ikappas#32
See the same issue in PHPCS linter for atom: AtomLinter/linter-phpcs#95
  • Loading branch information
weirdan committed Feb 11, 2017
1 parent 90184ff commit 31ab0ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpcs-server/src/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export class PhpcsLinter {
}

// Process linting arguments.
let lintArgs = [ "--report=json" ];
let lintArgs = [ "--report=json", "-q" ];
if (settings.standard) {
lintArgs.push(`--standard=${settings.standard}`);
}
Expand Down

0 comments on commit 31ab0ee

Please sign in to comment.