All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.javascript.rules.eslint.sonarjs.json Maven / Gradle / Ivy

There is a newer version: 10.17.0.28100
Show newest version
[
  {
    "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-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-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-identical-conditions",
    "name": "Related \"if/else if\" 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-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-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/cognitive-complexity",
    "name": "Cognitive Complexity of functions should not be too high",
    "type": "CODE_SMELL",
    "description": "See description of ESLint rule sonarjs/cognitive-complexity at the eslint-plugin-sonarjs website."
  },
  {
    "key": "sonarjs/max-switch-cases",
    "name": "\"switch\" statements should not have too many \"case\" clauses",
    "type": "CODE_SMELL",
    "description": "See description of ESLint rule sonarjs/max-switch-cases at the eslint-plugin-sonarjs website."
  },
  {
    "key": "sonarjs/no-duplicate-string",
    "name": "String literals should not be duplicated",
    "type": "CODE_SMELL",
    "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": "CODE_SMELL",
    "description": "See description of ESLint rule sonarjs/no-duplicated-branches at the eslint-plugin-sonarjs website."
  },
  {
    "key": "sonarjs/no-identical-functions",
    "name": "Functions should not have identical implementations",
    "type": "CODE_SMELL",
    "description": "See description of ESLint rule sonarjs/no-identical-functions at the eslint-plugin-sonarjs website."
  },
  {
    "key": "sonarjs/no-inverted-boolean-check",
    "name": "Boolean checks should not be inverted",
    "type": "CODE_SMELL",
    "description": "See description of ESLint rule sonarjs/no-inverted-boolean-check at the eslint-plugin-sonarjs website."
  },
  {
    "key": "sonarjs/no-redundant-boolean",
    "name": "Boolean literals should not be redundant",
    "type": "CODE_SMELL",
    "description": "See description of ESLint rule sonarjs/no-redundant-boolean at the eslint-plugin-sonarjs website."
  },
  {
    "key": "sonarjs/no-small-switch",
    "name": "\"switch\" statements should have at least 3 \"case\" clauses",
    "type": "CODE_SMELL",
    "description": "See description of ESLint rule sonarjs/no-small-switch at the eslint-plugin-sonarjs website."
  },
  {
    "key": "sonarjs/no-useless-catch",
    "name": "\"catch\" clauses should do more than rethrow",
    "type": "CODE_SMELL",
    "description": "See description of ESLint rule sonarjs/no-useless-catch at the eslint-plugin-sonarjs website."
  },
  {
    "key": "sonarjs/prefer-immediate-return",
    "name": "Local variables should not be declared and then immediately returned or thrown",
    "type": "CODE_SMELL",
    "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",
    "type": "CODE_SMELL",
    "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",
    "type": "CODE_SMELL",
    "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",
    "type": "CODE_SMELL",
    "description": "See description of ESLint rule sonarjs/prefer-while at the eslint-plugin-sonarjs website."
  }
]




© 2015 - 2024 Weber Informatics LLC | Privacy Policy