Skip to content

Commit 27eb40d

Browse files
committed
bug: make Linter class args readonly
1 parent d3c8b47 commit 27eb40d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib/linters.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,28 @@ abstract class Linter {
1414
/**
1515
* Linter name
1616
*/
17-
public name: string,
17+
public readonly name: string,
1818
/**
1919
* Regular expression to match compiler messages
2020
*/
21-
public regex: RegExp,
21+
public readonly regex: RegExp,
2222
/**
2323
* Keywords used to identify message severity
2424
*/
25-
public severity: LinterSeverityKeywords,
25+
public readonly severity: LinterSeverityKeywords,
2626
/**
2727
* Mandatory linter arguments. These are always present
2828
*/
29-
public args: string[],
29+
public readonly args: string[],
3030
/**
3131
* Command line arguments to pass to the linter, these get overwritten in
3232
* case the user has set arguments in the settings
3333
*/
34-
public argsDefault?: string[],
34+
public readonly argsDefault?: string[],
3535
/**
3636
* Compiler flag used to change the directory output for modules
3737
*/
38-
public modFlag?: string
38+
public readonly modFlag?: string
3939
) {}
4040

4141
public getSeverityLevel(msg_type: string): vscode.DiagnosticSeverity {

0 commit comments

Comments
 (0)