Skip to content

Commit d916eb3

Browse files
ayazhafizmgechev
authored andcommitted
fix(angular): update function call broken by Angular changes (#857)
* fix(angular): update function call broken by Angular changes angular/angular#31391 introduces a breaking change to `parseAction`, which now requires at least three parameters. This provides a fix-forward for when the change lands. * fixup! fix(angular): update function call broken by Angular changes * fixup! fix(angular): update function call broken by Angular changes * build: update package-lock.json
1 parent 8ca34b1 commit d916eb3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
},
6363
"homepage": "https://github.com/mgechev/codelyzer#readme",
6464
"devDependencies": {
65-
"@angular/compiler": "8.1.3",
66-
"@angular/core": "8.1.3",
65+
"@angular/compiler": "8.2.0",
66+
"@angular/core": "8.2.0",
6767
"@commitlint/cli": "8.1.0",
6868
"@commitlint/config-angular": "8.1.0",
6969
"@types/chai": "4.2.2",

src/templateConditionalComplexityRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const getFailureMessage = (totalComplexity: number, maxComplexity = Rule.
5454
const getTotalComplexity = (ast: AST): number => {
5555
const expr = ((ast as ASTWithSource).source || '').replace(/\s/g, '');
5656
const expressionParser = new Parser(new Lexer());
57-
const astWithSource = expressionParser.parseAction(expr, null);
57+
const astWithSource = expressionParser.parseAction(expr, null, 0);
5858
const conditions: Binary[] = [];
5959
let totalComplexity = 0;
6060
let condition = astWithSource.ast as Binary;

0 commit comments

Comments
 (0)