Skip to content

Commit

Permalink
Merge branch 'master' into remove-decorated-eslint
Browse files Browse the repository at this point in the history
# Conflicts:
#	packages/jsts/src/rules/README.md
#	packages/jsts/src/rules/S2068/meta.ts
#	packages/jsts/src/rules/original.ts
#	packages/jsts/src/rules/plugin.ts
  • Loading branch information
vdiez committed Nov 27, 2024
1 parent edb8cb2 commit d167687
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/jsts/src/rules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 || | | | |
Expand Down Expand Up @@ -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 || | | 💭 | |
Expand Down
4 changes: 2 additions & 2 deletions packages/jsts/src/rules/S2068/generated-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -37,7 +37,7 @@ export const schema = {
{
type: 'object',
properties: {
credentialWords: {
passwordWords: {
type: 'array',
items: {
type: 'string',
Expand Down
30 changes: 30 additions & 0 deletions packages/jsts/src/rules/S6418/generated-meta.ts
Original file line number Diff line number Diff line change
@@ -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';
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"type": "object",
"properties": {
"credentialWords": {
"passwordWords": {
"type": "array",
"items": {
"type": "string"
Expand Down

0 comments on commit d167687

Please sign in to comment.