Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
build_and_deploy_script:
- source cirrus-env BUILD
- node --version
- npm ci
- regular_mvn_build_deploy_analyze -T1C -Dsonar.skip=true -DartifactoryToken=$ARTIFACTORY_ACCESS_TOKEN

analyze_task:
Expand Down Expand Up @@ -203,6 +204,7 @@
<<: *NPMRC_SCRIPT_DEFINITION
build_script:
- source cirrus-env BUILD
- npm ci
- mvn clean install -e

ws_scan_task:
Expand Down Expand Up @@ -415,7 +417,7 @@
diff_artifacts:
path: '**/target/actual/**/*'

promote_task:

Check warning on line 420 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L420

task "promote" depends on task "ws_scan", but their only_if conditions are different

Check warning on line 420 in .cirrus.yml

View check run for this annotation

Cirrus CI / Build Parsing Results

.cirrus.yml#L420

task "promote" depends on task "ws_scan", but their only_if conditions are different
depends_on:
- ws_scan
- build_win
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S100/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'original';
export const eslintId = 'function-name';
export * from './config.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S100/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { Rule } from 'eslint';
import estree from 'estree';
import { functionLike, generateMeta, last } from '../helpers/index.js';
import { FromSchema } from 'json-schema-to-ts';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

interface FunctionKnowledge {
node: estree.Identifier;
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S101/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'original';
export const eslintId = 'class-name';
export * from './config.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S101/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import estree from 'estree';
import type { TSESTree } from '@typescript-eslint/utils';
import { generateMeta } from '../helpers/index.js';
import { FromSchema } from 'json-schema-to-ts';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

type ClassOrInterfaceDeclaration = TSESTree.ClassDeclaration | TSESTree.TSInterfaceDeclaration;

Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S103/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'external';
export const eslintId = 'max-len';
export const externalPlugin = 'eslint';
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S104/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'original';
export const eslintId = 'max-lines';
export * from './config.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S104/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import estree from 'estree';
import { getCommentLineNumbers, getLocsNumber } from '../S138/rule.js';
import { generateMeta } from '../helpers/index.js';
import { FromSchema } from 'json-schema-to-ts';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

const DEFAULT = 1000;

Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S105/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'original';
export const eslintId = 'no-tab';
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S105/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import type { Rule } from 'eslint';
import { generateMeta } from '../helpers/index.js';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

export const rule: Rule.RuleModule = {
meta: generateMeta(meta, {
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S106/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'external';
export const eslintId = 'no-console';
export const externalPlugin = 'eslint';
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S1066/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'original';
export const eslintId = 'no-collapsible-if';
export const hasSecondaries = true;
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1066/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import type { Rule } from 'eslint';
import estree from 'estree';
import { generateMeta, report, toSecondaryLocation } from '../helpers/index.js';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

const message = 'Merge this if statement with the nested one.';

Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S1067/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'original';
export const eslintId = 'expression-complexity';
export * from './config.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1067/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import estree from 'estree';
import type { TSESTree } from '@typescript-eslint/utils';
import { generateMeta, report, toSecondaryLocation } from '../helpers/index.js';
import { FromSchema } from 'json-schema-to-ts';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

const DEFAULT = 3;

Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1068/decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import type { Rule } from 'eslint';
import estree from 'estree';
import { generateMeta, interceptReport } from '../helpers/index.js';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

// core implementation of this rule does not provide quick fixes
export function decorate(rule: Rule.RuleModule): Rule.RuleModule {
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S1068/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'decorated';
export const eslintId = 'no-unused-private-class-members';
export const externalRules = [
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S107/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'decorated';
export const eslintId = 'max-params';
export const externalRules = [{ externalPlugin: 'eslint', externalRule: 'max-params' }];
Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S107/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
mergeRules,
} from '../helpers/index.js';
import { FromSchema } from 'json-schema-to-ts';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

const eslintMaxParams = getESLintCoreRule('max-params');

Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1077/cb.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { check } from '../../../tests/tools/testers/comment-based/index.js';
import { rule } from './index.js';
import { describe } from 'node:test';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

describe('Rule S1077', () => {
check(meta, rule, import.meta.dirname);
Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1077/decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { Rule } from 'eslint';
import { Node } from 'estree';
import type { TSESTree } from '@typescript-eslint/utils';
import { generateMeta, interceptReport } from '../helpers/index.js';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

export function decorate(rule: Rule.RuleModule): Rule.RuleModule {
return interceptReport(
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S1077/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'decorated';
export const eslintId = 'alt-text';
export const externalRules = [{ externalPlugin: 'jsx-a11y', externalRule: 'alt-text' }];
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S108/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'external';
export const eslintId = 'no-empty';
export const externalPlugin = 'eslint';
Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1082/cb.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { check } from '../../../tests/tools/testers/comment-based/index.js';
import { rule } from './index.js';
import { describe } from 'node:test';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

describe('Rule S1082', () => {
check(meta, rule, import.meta.dirname);
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S1082/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'decorated';
export const eslintId = 'mouse-events-a11y';
export const externalRules = [
Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1082/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import type { Rule } from 'eslint';
import { generateMeta, mergeRules } from '../helpers/index.js';
import { rules } from '../external/a11y.js';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

const mouseEventsHaveKeyEvents = rules['mouse-events-have-key-events'];
const clickEventsHaveKeyEvents = rules['click-events-have-key-events'];
Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S109/cb.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { check } from '../../../tests/tools/testers/comment-based/index.js';
import { rule } from './index.js';
import { describe } from 'node:test';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

describe('Rule S109', () => {
check(meta, rule, import.meta.dirname);
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S109/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'decorated';
export const eslintId = 'no-magic-numbers';
export const externalRules = [
Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S109/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { Rule } from 'eslint';
import estree from 'estree';
import { rules as tsEslintRules } from '../external/typescript-eslint/index.js';
import { generateMeta, getNodeParent, isMethodInvocation } from '../helpers/index.js';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

const baseRuleModule = tsEslintRules['no-magic-numbers'];
export const rule: Rule.RuleModule = {
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S1090/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'external';
export const eslintId = 'iframe-has-title';
export const externalPlugin = 'jsx-a11y';
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1105/cb.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { check } from '../../../tests/tools/testers/comment-based/index.js';
import { rule } from './index.js';
import { describe } from 'node:test';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

describe('Rule S1105', () => {
check(meta, rule, import.meta.dirname);
Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1105/decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import type { Rule } from 'eslint';
import { generateMeta, interceptReport } from '../helpers/index.js';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

export function decorate(rule: Rule.RuleModule): Rule.RuleModule {
return interceptReport(
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S1105/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'decorated';
export const eslintId = 'brace-style';
export const externalRules = [{ externalPlugin: 'eslint', externalRule: 'brace-style' }];
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S1110/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'original';
export const eslintId = 'no-redundant-parentheses';
export const hasSecondaries = true;
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1110/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import { AST, Rule, SourceCode } from 'eslint';
import estree from 'estree';
import { generateMeta, getParent, report, toSecondaryLocation } from '../helpers/index.js';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

interface ParenthesesPair {
openingParenthesis: AST.Token;
Expand Down
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1116/decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { AST, Rule } from 'eslint';
import estree from 'estree';
import { generateMeta, interceptReport } from '../helpers/index.js';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

type NullableToken = AST.Token | null | undefined;
type NodeCondition = (context: Rule.RuleContext, node: estree.Node) => boolean;
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S1116/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'decorated';
export const eslintId = 'no-extra-semi';
export const externalRules = [
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S1117/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'external';
export const eslintId = 'no-shadow';
export const externalPlugin = 'typescript-eslint';
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S1119/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'original';
export const eslintId = 'no-labels';
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1119/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import type { Rule } from 'eslint';
import { generateMeta } from '../helpers/index.js';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

export const rule: Rule.RuleModule = {
meta: generateMeta(meta, {
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S1121/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'original';
export const eslintId = 'no-nested-assignment';
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1121/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import type { Rule } from 'eslint';
import estree from 'estree';
import { generateMeta, getParent } from '../helpers/index.js';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

export const rule: Rule.RuleModule = {
meta: generateMeta(meta, {
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S1125/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'original';
export const eslintId = 'no-redundant-boolean';
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1125/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { TSESTree } from '@typescript-eslint/utils';
import { generateMeta, isBooleanLiteral } from '../helpers/index.js';
import type { Rule } from 'eslint';
import estree from 'estree';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

export const rule: Rule.RuleModule = {
meta: generateMeta(meta, {
Expand Down
1 change: 0 additions & 1 deletion packages/jsts/src/rules/S1126/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
* You should have received a copy of the Sonar Source-Available License
* along with this program; if not, see https://sonarsource.com/license/ssal/
*/
export * from './generated-meta.js';
export const implementation = 'original';
export const eslintId = 'prefer-single-boolean-return';
2 changes: 1 addition & 1 deletion packages/jsts/src/rules/S1126/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import type { TSESTree } from '@typescript-eslint/utils';
import type { Rule } from 'eslint';
import estree from 'estree';
import { generateMeta } from '../helpers/index.js';
import * as meta from './meta.js';
import * as meta from './generated-meta.js';

export const rule: Rule.RuleModule = {
meta: generateMeta(meta, {
Expand Down
Loading