This repository was archived by the owner on Apr 27, 2021. It is now read-only.
SonarTS 1.6
·
169 commits
to master
since this release
We are happy to announce SonarTS 1.6
This version includes 9 new rules:
- String literals should not be duplicated (
no-duplicate-string) - Credentials should not be hard-coded (
no-hardcoded-credentials) - "switch" statements should have at least 3 "case" clauses (
no-small-switch) - Boolean literals should not be redundant (
no-redundant-boolean) - Extra semicolons should be removed (
no-extra-semicolon) - Increment (++) and decrement (--) operators should not be used in a method call or mixed with other operators in an expression (
no-nested-incdec) - Functions should not have too many lines of code (
no-big-function) - Statements should be on separate lines (
no-statements-same-line) - Functions should not have too many parameters (
parameters-max-number)
For SonarQube users the version contains even more rules:
- Private properties that are only assigned in the constructor or at declaration should be "readonly"
- Assignments should not be made from within conditions
- Unchanged variables should be marked "const"
- Comma operator should not be used
You can find the details of this release in this milestone: https://github.com/SonarSource/SonarTS/milestone/10?closed=1
You can provide any feedback, as usual, on GitHub Issues.