Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

SonarTS 1.2.0 RC

Pre-release
Pre-release

Choose a tag to compare

@vilchik-elena vilchik-elena released this 20 Nov 14:56
· 298 commits to master since this release

We are starting the feedback period for SonarTS 1.2.0.

In this version we added a rule based on 💥symbolic execution💥 :
Conditions should not always evaluate to "true" or to "false"

screen shot 2017-11-20 at 15 35 53

On top of that, as usual there are new everyone-must-enable rules: (see some examples at the bottom)

  • Type aliases should be used
  • Redundant pairs of parentheses should be removed
  • Redundant casts and not-null assertions should be avoided
  • Map values should not be replaced unconditionally
  • Method parameters, caught exceptions and foreach variables' initial values should not be ignored

Finally, this version improves the configuration options available for SonarQube projects:

  • global TypeScript can be used now (#258)
  • you can configure the path to the nodejs executable (#202)

If you want to try this release candidate with TSLint:

npm install --dev tslint-sonarts@1.2.0-0

If you want to try it with SonarQube install the attached jar.

Feedback period is open until Thursday, Nov 23.

Feel free to provide any kind of feedback 🙋, as usual just create a github issue.


screen shot 2017-11-20 at 15 39 26


screen shot 2017-11-20 at 15 38 21


screen shot 2017-11-20 at 15 41 49

screen shot 2017-11-20 at 15 44 38

screen shot 2017-11-20 at 15 44 54