Skip to content
This repository has been archived by the owner on Dec 4, 2022. It is now read-only.

bug: "cyclomatic-complexity" is being ignored #34

Closed
robvaneck opened this issue Dec 24, 2018 · 1 comment
Closed

bug: "cyclomatic-complexity" is being ignored #34

robvaneck opened this issue Dec 24, 2018 · 1 comment
Labels

Comments

@robvaneck
Copy link

robvaneck commented Dec 24, 2018

Hi,

versions

    "angular-tslint-rules": "^1.12.1",
    "codelyzer": "^4.5.0",
    "ts-node": "~5.0.1",
    "tslint": "^5.12.0",
    "typescript": "^2.9.2" 

I have inside my tslint.json:

    "cyclomatic-complexity": false,

but while running 'npm run lint
im getting

ERROR: /app/shared/table/table/table.component.html:58:11 - The cyclomatic complexity exceeded the defined limit (cost '5'). Your template should be refactored.
@robvaneck
Copy link
Author

ah, found it. The template complexity is inside a different rule, namely:

"template-cyclomatic-complexity": [true, 6]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants