About eslint plugin: sonarjs #14989
denisx
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I ran plugin at project, and seen many errors.
If maintainers approve adding this plugin, i would step by step make fixes at code, to make it simpler and more maintainible.
Some rules usually are off, such as 'no-duplicate-string' (at test folder), but some of them needed to fix
rule name // count of errors
'sonarjs/prefer-immediate-return': 'off', // 34
'sonarjs/cognitive-complexity': 'off', // 349
'sonarjs/no-duplicate-string': 'off', // 149
'sonarjs/no-duplicated-branches': 'off', // 6
'sonarjs/no-nested-template-literals': 'off', // 269
'sonarjs/no-collapsible-if': 'off', // 36
'sonarjs/no-identical-functions': 'off', // 63
'sonarjs/no-redundant-jump': 'off', // 5
'sonarjs/no-inverted-boolean-check': 'off', // 1
'sonarjs/no-unused-collection': 'off', // 3
'sonarjs/no-nested-switch': 'off', // 15
'sonarjs/no-small-switch': 'off', // 10
'sonarjs/no-redundant-boolean': 'off', // 3
'sonarjs/no-gratuitous-expressions': 'off' // 1
plugin homepage https://github.com/SonarSource/eslint-plugin-sonarjs
Beta Was this translation helpful? Give feedback.
All reactions