diff --git a/packages/jsts/src/rules/README.md b/packages/jsts/src/rules/README.md index 42529948794..ddba069811e 100644 --- a/packages/jsts/src/rules/README.md +++ b/packages/jsts/src/rules/README.md @@ -215,7 +215,7 @@ If you are a [SonarQube](https://www.sonarqube.org) or [SonarCloud](https://sona | [no-global-this](https://sonarsource.github.io/rspec/#/rspec/S2990/javascript) | The global "this" object should not be used | ✅ | | 💡 | | | | [no-globals-shadowing](https://sonarsource.github.io/rspec/#/rspec/S2137/javascript) | Special identifiers should not be bound or assigned | ✅ | | | | | | [no-gratuitous-expressions](https://sonarsource.github.io/rspec/#/rspec/S2589/javascript) | Boolean expressions should not be gratuitous | ✅ | | | | | -| [no-hardcoded-credentials](https://sonarsource.github.io/rspec/#/rspec/S2068/javascript) | Hard-coded credentials are security-sensitive | ✅ | | | | | +| [no-hardcoded-credentials](https://sonarsource.github.io/rspec/#/rspec/S2068/javascript) | Hard-coded passwords are security-sensitive | ✅ | | | | | | [no-hardcoded-ip](https://sonarsource.github.io/rspec/#/rspec/S1313/javascript) | Using hardcoded IP addresses is security-sensitive | ✅ | | | | | | [no-hook-setter-in-body](https://sonarsource.github.io/rspec/#/rspec/S6442/javascript) | React's useState hook should not be used directly in the render function or body of a component | ✅ | | | | | | [no-identical-conditions](https://sonarsource.github.io/rspec/#/rspec/S1862/javascript) | "if/else if" chains and "switch" cases should not have the same condition | ✅ | | | | | @@ -267,6 +267,7 @@ If you are a [SonarQube](https://www.sonarqube.org) or [SonarCloud](https://sona | [no-selector-parameter](https://sonarsource.github.io/rspec/#/rspec/S2301/javascript) | Methods should not contain selector parameters | ✅ | | | 💭 | | | [no-skipped-tests](https://sonarsource.github.io/rspec/#/rspec/S1607/javascript) | Tests should not be skipped without providing a reason | ✅ | | | | | | [no-small-switch](https://sonarsource.github.io/rspec/#/rspec/S1301/javascript) | "if" statements should be preferred over "switch" when simpler | ✅ | | | | | +| [no-sonar-comments](https://sonarsource.github.io/rspec/#/rspec/S1291/javascript) | Track uses of "NOSONAR" comments | | | | | | | [no-tab](https://sonarsource.github.io/rspec/#/rspec/S105/javascript) | Tabulation characters should not be used | | | | | ❌ | | [no-table-as-layout](https://sonarsource.github.io/rspec/#/rspec/S5257/javascript) | HTML "<table>" should not be used for layout purposes | ✅ | | | | | | [no-try-promise](https://sonarsource.github.io/rspec/#/rspec/S4822/javascript) | Promise rejections should not be caught by "try" blocks | ✅ | | | 💭 | | diff --git a/packages/jsts/src/rules/S2068/generated-meta.ts b/packages/jsts/src/rules/S2068/generated-meta.ts index e71bc529bb9..cba4367003f 100644 --- a/packages/jsts/src/rules/S2068/generated-meta.ts +++ b/packages/jsts/src/rules/S2068/generated-meta.ts @@ -20,7 +20,7 @@ export const meta = { type: 'problem', docs: { - description: 'Hard-coded credentials are security-sensitive', + description: 'Hard-coded passwords are security-sensitive', recommended: true, url: 'https://sonarsource.github.io/rspec/#/rspec/S2068/javascript', requiresTypeChecking: false, @@ -37,7 +37,7 @@ export const schema = { { type: 'object', properties: { - credentialWords: { + passwordWords: { type: 'array', items: { type: 'string', diff --git a/packages/jsts/src/rules/S6418/generated-meta.ts b/packages/jsts/src/rules/S6418/generated-meta.ts new file mode 100644 index 00000000000..b0061bec0c7 --- /dev/null +++ b/packages/jsts/src/rules/S6418/generated-meta.ts @@ -0,0 +1,30 @@ +/* + * SonarQube JavaScript Plugin + * Copyright (C) 2011-2024 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the Sonar Source-Available License Version 1, as published by SonarSource SA. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the Sonar Source-Available License for more details. + * + * You should have received a copy of the Sonar Source-Available License + * along with this program; if not, see https://sonarsource.com/license/ssal/ + */ + +// DO NOT EDIT! This file is autogenerated by "npm run generate-meta" + +export const meta = { + type: 'problem', + docs: { + description: 'Hard-coded secrets are security-sensitive', + recommended: true, + url: 'https://sonarsource.github.io/rspec/#/rspec/S6418/javascript', + requiresTypeChecking: false, + }, +}; + +export const sonarKey = 'S6418'; diff --git a/sonar-plugin/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/schemas/S2068-schema.json b/sonar-plugin/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/schemas/S2068-schema.json index f0a231e8ec2..9670466bfde 100644 --- a/sonar-plugin/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/schemas/S2068-schema.json +++ b/sonar-plugin/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/schemas/S2068-schema.json @@ -6,7 +6,7 @@ { "type": "object", "properties": { - "credentialWords": { + "passwordWords": { "type": "array", "items": { "type": "string"