![JAR search and dependency download from the Maven repository](/logo.png)
org.sonar.l10n.javascript.rules.eslint.sonarjs.json Maven / Gradle / Ivy
[
{
"key": "sonarjs/cognitive-complexity",
"name": "Cognitive Complexity of functions should not be too high",
"description": "See description of ESLint rule sonarjs/cognitive-complexity
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/elseif-without-else",
"name": "\"if ... else if\" constructs should end with \"else\" clauses",
"description": "See description of ESLint rule sonarjs/elseif-without-else
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/max-switch-cases",
"name": "\"switch\" statements should not have too many \"case\" clauses",
"description": "See description of ESLint rule sonarjs/max-switch-cases
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-all-duplicated-branches",
"name": "All branches in a conditional structure should not have exactly the same implementation",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/no-all-duplicated-branches
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-collapsible-if",
"name": "Collapsible \"if\" statements should be merged",
"description": "See description of ESLint rule sonarjs/no-collapsible-if
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-collection-size-mischeck",
"name": "Collection sizes and array length comparisons should make sense",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/no-collection-size-mischeck
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-duplicate-string",
"name": "String literals should not be duplicated",
"description": "See description of ESLint rule sonarjs/no-duplicate-string
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-duplicated-branches",
"name": "Two branches in a conditional structure should not have exactly the same implementation",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/no-duplicated-branches
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-element-overwrite",
"name": "Collection elements should not be replaced unconditionally",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/no-element-overwrite
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-empty-collection",
"name": "Empty collections should not be accessed or iterated",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/no-empty-collection
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-extra-arguments",
"name": "Function calls should not pass extra arguments",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/no-extra-arguments
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-gratuitous-expressions",
"name": "Boolean expressions should not be gratuitous",
"description": "See description of ESLint rule sonarjs/no-gratuitous-expressions
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-identical-conditions",
"name": "Related \"if-else-if\" and \"switch-case\" statements should not have the same condition",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/no-identical-conditions
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-identical-expressions",
"name": "Identical expressions should not be used on both sides of a binary operator",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/no-identical-expressions
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-identical-functions",
"name": "Functions should not have identical implementations",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/no-identical-functions
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-ignored-return",
"name": "Return values from functions without side effects should not be ignored",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/no-ignored-return
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-inverted-boolean-check",
"name": "Boolean checks should not be inverted",
"description": "See description of ESLint rule sonarjs/no-inverted-boolean-check
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-nested-switch",
"name": "\"switch\" statements should not be nested",
"description": "See description of ESLint rule sonarjs/no-nested-switch
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-nested-template-literals",
"name": "Template literals should not be nested",
"description": "See description of ESLint rule sonarjs/no-nested-template-literals
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-one-iteration-loop",
"name": "Loops with at most one iteration should be refactored",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/no-one-iteration-loop
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-redundant-boolean",
"name": "Boolean literals should not be redundant",
"description": "See description of ESLint rule sonarjs/no-redundant-boolean
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-redundant-jump",
"name": "Jump statements should not be redundant",
"description": "See description of ESLint rule sonarjs/no-redundant-jump
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-same-line-conditional",
"name": "Conditionals should start on new lines",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/no-same-line-conditional
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-small-switch",
"name": "\"switch\" statements should have at least 3 \"case\" clauses",
"description": "See description of ESLint rule sonarjs/no-small-switch
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-unused-collection",
"name": "Collection and array contents should be used",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/no-unused-collection
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-use-of-empty-return-value",
"name": "The output of functions that don't return anything should not be used",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/no-use-of-empty-return-value
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/no-useless-catch",
"name": "\"catch\" clauses should do more than rethrow",
"description": "See description of ESLint rule sonarjs/no-useless-catch
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/non-existent-operator",
"name": "Non-existent operators \"=+\", \"=-\" and \"=!\" should not be used",
"type": "BUG",
"description": "See description of ESLint rule sonarjs/non-existent-operator
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/prefer-immediate-return",
"name": "Local variables should not be declared and then immediately returned or thrown",
"description": "See description of ESLint rule sonarjs/prefer-immediate-return
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/prefer-object-literal",
"name": "Object literal syntax should be used",
"description": "See description of ESLint rule sonarjs/prefer-object-literal
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/prefer-single-boolean-return",
"name": "Return of boolean expressions should not be wrapped into an \"if-then-else\" statement",
"description": "See description of ESLint rule sonarjs/prefer-single-boolean-return
at the eslint-plugin-sonarjs website"
},
{
"key": "sonarjs/prefer-while",
"name": "A \"while\" loop should be used instead of a \"for\" loop",
"description": "See description of ESLint rule sonarjs/prefer-while
at the eslint-plugin-sonarjs website"
}
]
© 2015 - 2025 Weber Informatics LLC | Privacy Policy