diff --git a/src/lint/provider.ts b/src/lint/provider.ts index cd3c1b74..d49a66fd 100644 --- a/src/lint/provider.ts +++ b/src/lint/provider.ts @@ -135,11 +135,12 @@ export class LinterSettings { public get fyppEnabled(): boolean { // FIXME: fypp currently works only with gfortran - if (this.compiler !== 'gfortran') { + const isEnabled = this.config.get('linter.fypp.enabled'); + if (this.compiler !== 'gfortran' && isEnabled) { this.logger.warn(`[lint] fypp currently only supports gfortran.`); return false; } - return this.config.get('linter.fypp.enabled'); + return isEnabled; } public get fyppPath(): string { return this.config.get('linter.fypp.path');