You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rule944.json 774B

1234567891011121314
  1. {
  2. "id": 944,
  3. "key": "S1125",
  4. "language": "java",
  5. "name": "Boolean expressions should not be compared to true or false",
  6. "description": "<p> Boolean expressions should not be compared against boolean literals, as their value can be directly used. </p> <p>The following code:</p> <pre> if (booleanVariable == true) { /* ... */ } // Non-Compliant if (booleanVariable != true) { /* ... */ } // Non-Compliant </pre> <p>should be refactored into:</p> <pre> if (booleanVariable) { /* ... */ } // Compliant if (!booleanVariable) { /* ... */ } // Compliant </pre>",
  7. "parentKey": null,
  8. "repositoryKey": "squid",
  9. "severity": "MAJOR",
  10. "status": "READY",
  11. "cardinality": "SINGLE",
  12. "createdAt": "2013-07-26T07:40:51.977Z",
  13. "updatedAt": "2014-01-10T15:38:27.386Z"
  14. }