diff --git a/phpcs-server/src/linter.ts b/phpcs-server/src/linter.ts index 4abf699..6992538 100644 --- a/phpcs-server/src/linter.ts +++ b/phpcs-server/src/linter.ts @@ -132,7 +132,10 @@ export class PhpcsLinter { return []; } } - + + // Check for Drupal and PHP related files. + lintArgs.push('--extensions=inc,install,module,php,profile,theme'); + lintArgs.push(`--error-severity=${settings.errorSeverity}`); let warningSeverity = settings.warningSeverity;