Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The condition complexity (cost '2') exceeded the defined limit (cost '3'). #542

Closed
alan-agius4 opened this issue Mar 12, 2018 · 1 comment

Comments

@alan-agius4
Copy link
Contributor

alan-agius4 commented Mar 12, 2018

template-conditional-complexity is giving an error when the template conditional complexity is returning the wrong error message

"template-conditional-complexity": {
	"severity": "warning",
	"options": [2]
},

Code example

*ngIf="!options?.hideShowMoreButton && options?.usePagination && eventTables[item.id]"

** Actual behaviour**
The condition complexity (cost '2') exceeded the defined limit (cost '3').

 *ngIf="participantIndex === 0 && showSetCount && !showSummaryOnly"

** Actual behaviour**
The condition complexity (cost '3') exceeded the defined limit (cost '3').

** Expected **
Proper error message

@alan-agius4
Copy link
Contributor Author

alan-agius4 commented Mar 12, 2018

Duplicate: #533

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

No branches or pull requests

1 participant