aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/analysis-tool.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/analysis-tool.ts')
-rw-r--r--lib/compilers/analysis-tool.ts15
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/compilers/analysis-tool.ts b/lib/compilers/analysis-tool.ts
index dba1ff037..5b089aa74 100644
--- a/lib/compilers/analysis-tool.ts
+++ b/lib/compilers/analysis-tool.ts
@@ -22,7 +22,7 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
-import {CompilerInfo} from '../../types/compiler.interfaces';
+import {PreliminaryCompilerInfo} from '../../types/compiler.interfaces';
import {BaseCompiler} from '../base-compiler';
// Plain compiler, which just runs the tool and returns whatever the output was
@@ -31,10 +31,15 @@ export class AnalysisTool extends BaseCompiler {
return 'analysis-tool';
}
- constructor(info: CompilerInfo, env) {
- // Default is to disable all "cosmetic" filters
- if (!info.disabledFilters) info.disabledFilters = ['labels', 'directives', 'commentOnly', 'trim'];
- super(info, env);
+ constructor(info: PreliminaryCompilerInfo, env) {
+ super(
+ {
+ // Default is to disable all "cosmetic" filters
+ disabledFilters: ['labels', 'directives', 'commentOnly', 'trim'],
+ ...info,
+ },
+ env,
+ );
}
override getDefaultFilters() {