From 080bf48f93ecd700e46e802b33b39061571c9e46 Mon Sep 17 00:00:00 2001 From: Tibor Blenessy Date: Tue, 17 Oct 2023 08:28:10 +0200 Subject: [PATCH] Fix accidentally commented code (#4278) --- .../sonar/javascript/it/JsTsRulingTest.java | 100 +++++++++--------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/its/ruling/src/test/java/org/sonar/javascript/it/JsTsRulingTest.java b/its/ruling/src/test/java/org/sonar/javascript/it/JsTsRulingTest.java index e3b5441fefc..a4bd9fdd0f6 100644 --- a/its/ruling/src/test/java/org/sonar/javascript/it/JsTsRulingTest.java +++ b/its/ruling/src/test/java/org/sonar/javascript/it/JsTsRulingTest.java @@ -88,55 +88,55 @@ class JsTsRulingTest { public static Stream ruling() { return Stream.of( - jsTsProject("amplify", "external/**", "test") - // jsTsProject("angular.js", "src/ngLocale/**, i18n/**", "test"), - // jsTsProject("backbone", "test"), - // jsTsProject("es5-shim", "tests"), - // jsTsProject("fireact"), - // jsTsProject("ace"), - // jsTsProject("ecmascript6-today"), - // jsTsProject("expressionist.js"), - // jsTsProject("Ghost"), - // jsTsProject("http"), - // jsTsProject("reddit-mobile"), - // jsTsProject("redux"), - // jsTsProject("router"), - // jsTsProject("snoode"), - // jsTsProject("sonar-web"), - // jsTsProject("templating"), - // jsTsProject("watchtower.js"), - // jsTsProject("jira-clone"), - // jsTsProject("jquery", "test"), - // jsTsProject("jshint", "tests"), - // jsTsProject("jStorage", "tests"), - // jsTsProject("knockout", "spec"), - // jsTsProject("mootools-core", "Specs"), - // jsTsProject("ocanvas", "build/**", ""), - // jsTsProject("p5.js", "test"), - // jsTsProject("paper.js", "gulp/jsdoc/**, packages/**", "test"), - // jsTsProject("prototype", "test"), - // jsTsProject("qunit", "test"), - // jsTsProject("react-cloud-music"), - // jsTsProject("sizzle", "external/**", "test"), - // jsTsProject("underscore", "test"), - // jsTsProject("ag-grid", "spec"), - // jsTsProject("ant-design", "tests"), // todo: many dirs **/__tests__ - // jsTsProject("console"), // todo: many dirs **/__tests__ - // jsTsProject("courselit", ".yarn/**", ""), - // jsTsProject("desktop", "app/test"), - // jsTsProject("eigen"), // todo - // jsTsProject("fireface"), - // jsTsProject("ionic2-auth"), - // jsTsProject("Joust"), // todo: files **/*.spec.ts - // jsTsProject("moose"), - // jsTsProject("postgraphql"), // todo: many dirs **/__tests__ - // jsTsProject("prettier-vscode"), - // jsTsProject("rxjs", "spec"), - // jsTsProject("searchkit"), // todo - // jsTsProject("TypeScript", "src/harness/unittests"), - // jsTsProject("vuetify"), - // jsTsProject("yaml", "../sources/yaml", "", ""), - // jsTsProject("file-for-rules", "../sources/jsts/custom", "", "tests") + jsTsProject("amplify", "external/**", "test"), + jsTsProject("angular.js", "src/ngLocale/**, i18n/**", "test"), + jsTsProject("backbone", "test"), + jsTsProject("es5-shim", "tests"), + jsTsProject("fireact"), + jsTsProject("ace"), + jsTsProject("ecmascript6-today"), + jsTsProject("expressionist.js"), + jsTsProject("Ghost"), + jsTsProject("http"), + jsTsProject("reddit-mobile"), + jsTsProject("redux"), + jsTsProject("router"), + jsTsProject("snoode"), + jsTsProject("sonar-web"), + jsTsProject("templating"), + jsTsProject("watchtower.js"), + jsTsProject("jira-clone"), + jsTsProject("jquery", "test"), + jsTsProject("jshint", "tests"), + jsTsProject("jStorage", "tests"), + jsTsProject("knockout", "spec"), + jsTsProject("mootools-core", "Specs"), + jsTsProject("ocanvas", "build/**", ""), + jsTsProject("p5.js", "test"), + jsTsProject("paper.js", "gulp/jsdoc/**, packages/**", "test"), + jsTsProject("prototype", "test"), + jsTsProject("qunit", "test"), + jsTsProject("react-cloud-music"), + jsTsProject("sizzle", "external/**", "test"), + jsTsProject("underscore", "test"), + jsTsProject("ag-grid", "spec"), + jsTsProject("ant-design", "tests"), // todo: many dirs **/__tests__ + jsTsProject("console"), // todo: many dirs **/__tests__ + jsTsProject("courselit", ".yarn/**", ""), + jsTsProject("desktop", "app/test"), + jsTsProject("eigen"), // todo + jsTsProject("fireface"), + jsTsProject("ionic2-auth"), + jsTsProject("Joust"), // todo: files **/*.spec.ts + jsTsProject("moose"), + jsTsProject("postgraphql"), // todo: many dirs **/__tests__ + jsTsProject("prettier-vscode"), + jsTsProject("rxjs", "spec"), + jsTsProject("searchkit"), // todo + jsTsProject("TypeScript", "src/harness/unittests"), + jsTsProject("vuetify"), + jsTsProject("yaml", "../sources/yaml", "", ""), + jsTsProject("file-for-rules", "../sources/jsts/custom", "", "tests") ); } @@ -300,7 +300,7 @@ static void runRulingTest(String projectKey, String sources, String exclusions, ) .setProperty("sonar.lits.differences", differencesPath.toString()) .setProperty("sonar.exclusions", actualExclusions) - .setProperty("sonar.javascript.node.maxspace", "4096") + .setProperty("sonar.javascript.node.maxspace", "2048") .setProperty("sonar.javascript.maxFileSize", "4000") .setProperty("sonar.cpd.exclusions", "**/*") .setProperty("sonar.internal.analysis.failFast", "true");