From 5e393b28a6e2a7dbd190514fde6264c6d8ffc871 Mon Sep 17 00:00:00 2001 From: yassin-kammoun-sonarsource Date: Mon, 12 Feb 2024 11:36:38 +0100 Subject: [PATCH 1/2] Update S3776 expectations --- .../it/plugin/TypeScriptAnalysisTest.java | 2 +- .../expected/jsts/Ghost/javascript-S3776.json | 80 +--- .../expected/jsts/Joust/typescript-S3776.json | 21 +- .../jsts/TypeScript/javascript-S3776.json | 443 +++++++++++------- .../jsts/TypeScript/typescript-S3776.json | 331 +++++++++---- .../expected/jsts/ace/javascript-S3776.json | 348 +++++++------- .../jsts/ag-grid/typescript-S3776.json | 21 +- .../jsts/amplify/javascript-S3776.json | 3 +- .../jsts/angular.js/javascript-S3776.json | 186 ++------ .../jsts/ant-design/javascript-S3776.json | 15 +- .../jsts/ant-design/typescript-S3776.json | 63 +-- .../jsts/backbone/javascript-S3776.json | 8 +- .../jsts/console/javascript-S3776.json | 5 - .../jsts/console/typescript-S3776.json | 10 - .../jsts/desktop/javascript-S3776.json | 8 - .../jsts/desktop/typescript-S3776.json | 33 +- .../expected/jsts/eigen/javascript-S3776.json | 5 - .../expected/jsts/eigen/typescript-S3776.json | 56 +-- .../jsts/es5-shim/javascript-S3776.json | 14 +- .../expressionist.js/javascript-S3776.json | 3 +- .../jsts/fireact/javascript-S3776.json | 22 +- .../jsts/jira-clone/javascript-S3776.json | 5 - .../jsts/jquery/javascript-S3776.json | 49 +- .../jsts/jshint/javascript-S3776.json | 52 +- .../jsts/knockout/javascript-S3776.json | 43 +- .../expected/jsts/moose/typescript-S3776.json | 8 - .../jsts/mootools-core/javascript-S3776.json | 26 +- .../jsts/ocanvas/javascript-S3776.json | 51 +- .../expected/jsts/p5.js/javascript-S3776.json | 113 ++--- .../jsts/paper.js/javascript-S3776.json | 58 +-- .../jsts/postgraphql/javascript-S3776.json | 5 +- .../jsts/postgraphql/typescript-S3776.json | 9 - .../jsts/prototype/javascript-S3776.json | 20 +- .../expected/jsts/qunit/javascript-S3776.json | 23 +- .../react-cloud-music/javascript-S3776.json | 18 - .../react-cloud-music/typescript-S3776.json | 5 - .../jsts/reddit-mobile/javascript-S3776.json | 6 - .../expected/jsts/redux/javascript-S3776.json | 5 - .../jsts/router/javascript-S3776.json | 21 +- .../expected/jsts/rxjs/typescript-S3776.json | 16 +- .../jsts/searchkit/typescript-S3776.json | 3 - .../jsts/sizzle/javascript-S3776.json | 17 +- .../jsts/snoode/javascript-S3776.json | 5 +- .../jsts/sonar-web/javascript-S3776.json | 17 +- .../jsts/underscore/javascript-S3776.json | 5 +- .../jsts/vuetify/javascript-S3776.json | 8 +- .../jsts/vuetify/typescript-S3776.json | 92 +--- .../jsts/watchtower.js/javascript-S3776.json | 3 - packages/jsts/tests/analysis/analyzer.test.ts | 2 +- 49 files changed, 908 insertions(+), 1454 deletions(-) delete mode 100644 its/ruling/src/test/expected/jsts/console/javascript-S3776.json delete mode 100644 its/ruling/src/test/expected/jsts/desktop/javascript-S3776.json delete mode 100644 its/ruling/src/test/expected/jsts/eigen/javascript-S3776.json delete mode 100644 its/ruling/src/test/expected/jsts/jira-clone/javascript-S3776.json delete mode 100644 its/ruling/src/test/expected/jsts/moose/typescript-S3776.json delete mode 100644 its/ruling/src/test/expected/jsts/react-cloud-music/typescript-S3776.json delete mode 100644 its/ruling/src/test/expected/jsts/redux/javascript-S3776.json diff --git a/its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/TypeScriptAnalysisTest.java b/its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/TypeScriptAnalysisTest.java index ed302c4a69a..7cc4e932ac8 100644 --- a/its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/TypeScriptAnalysisTest.java +++ b/its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/TypeScriptAnalysisTest.java @@ -68,7 +68,7 @@ void test() throws Exception { assertThat(OrchestratorStarter.getMeasureAsInt(sampleFileKey, "comment_lines")).isEqualTo(1); assertThat(OrchestratorStarter.getMeasureAsInt(sampleFileKey, "complexity")).isEqualTo(2); assertThat(OrchestratorStarter.getMeasureAsInt(sampleFileKey, "cognitive_complexity")) - .isEqualTo(2); + .isEqualTo(0); assertThat(OrchestratorStarter.getMeasureAsDouble(projectKey, "duplicated_lines")) .isEqualTo(111.0); diff --git a/its/ruling/src/test/expected/jsts/Ghost/javascript-S3776.json b/its/ruling/src/test/expected/jsts/Ghost/javascript-S3776.json index b9b20642b5b..a0c05c08749 100644 --- a/its/ruling/src/test/expected/jsts/Ghost/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/Ghost/javascript-S3776.json @@ -1,40 +1,18 @@ { -"Ghost:core/client/app/controllers/post-settings-menu.js": [ -227 -], -"Ghost:core/client/app/controllers/setup/three.js": [ -152 -], -"Ghost:core/client/app/mixins/editor-base-controller.js": [ -281 -], "Ghost:core/client/app/utils/ajax.js": [ 7 ], -"Ghost:core/client/tests/acceptance/team-test.js": [ -64 -], "Ghost:core/server/api/settings.js": [ 38 ], -"Ghost:core/server/api/users.js": [ -151 -], "Ghost:core/server/config/index.js": [ 112 ], "Ghost:core/server/config/url.js": [ 149 ], -"Ghost:core/server/controllers/frontend/index.js": [ -131 -], -"Ghost:core/server/data/import/data-importer.js": [ -86 -], "Ghost:core/server/data/import/index.js": [ -16, -96 +16 ], "Ghost:core/server/data/meta/title.js": [ 4 @@ -43,70 +21,18 @@ 10 ], "Ghost:core/server/data/validation/index.js": [ -37 +41 ], "Ghost:core/server/errors/index.js": [ -93, -246, -336 +93 ], "Ghost:core/server/helpers/body_class.js": [ 15 ], -"Ghost:core/server/helpers/foreach.js": [ -13 -], -"Ghost:core/server/helpers/ghost_head.js": [ -74 -], -"Ghost:core/server/mail/index.js": [ -63 -], -"Ghost:core/server/middleware/auth.js": [ -72 -], -"Ghost:core/server/middleware/serve-shared-file.js": [ -8 -], -"Ghost:core/server/models/base/index.js": [ -398 -], -"Ghost:core/server/models/plugins/filter.js": [ -17 -], -"Ghost:core/server/models/post.js": [ -93, -171, -412 -], -"Ghost:core/server/models/settings.js": [ -111 -], "Ghost:core/server/models/user.js": [ 436 ], -"Ghost:core/server/permissions/index.js": [ -123 -], -"Ghost:core/server/update-check.js": [ -54 -], "Ghost:core/server/utils/downzero.js": [ 18 -], -"Ghost:core/shared/ghost-url.js": [ -1 -], -"Ghost:core/test/functional/routes/api/posts_spec.js": [ -34, -173, -462, -929 -], -"Ghost:core/test/functional/routes/api/users_spec.js": [ -105 -], -"Ghost:core/test/utils/fork.js": [ -51 ] } diff --git a/its/ruling/src/test/expected/jsts/Joust/typescript-S3776.json b/its/ruling/src/test/expected/jsts/Joust/typescript-S3776.json index 35478bb78cc..26d825a8e99 100644 --- a/its/ruling/src/test/expected/jsts/Joust/typescript-S3776.json +++ b/its/ruling/src/test/expected/jsts/Joust/typescript-S3776.json @@ -1,20 +1,11 @@ { -"Joust:ts/Launcher.tsx": [ -285 -], "Joust:ts/components/EventLog.tsx": [ 59, -164, -208, 279 ], "Joust:ts/components/EventLogLine.tsx": [ -53, 135 ], -"Joust:ts/components/GameWidget.tsx": [ -214 -], "Joust:ts/components/Scrubber.tsx": [ 112 ], @@ -23,20 +14,14 @@ ], "Joust:ts/components/game/Card.tsx": [ 42, -265, -339 +347 ], "Joust:ts/components/game/EntityInPlay.tsx": [ 25 ], -"Joust:ts/components/game/Hero.tsx": [ -26 -], -"Joust:ts/components/game/Minion.tsx": [ -20 -], "Joust:ts/components/game/Player.tsx": [ -43 +43, +60 ], "Joust:ts/components/game/visuals/HeroArt.tsx": [ 26 diff --git a/its/ruling/src/test/expected/jsts/TypeScript/javascript-S3776.json b/its/ruling/src/test/expected/jsts/TypeScript/javascript-S3776.json index 1dbc9184b5b..51398f16c3c 100644 --- a/its/ruling/src/test/expected/jsts/TypeScript/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/TypeScript/javascript-S3776.json @@ -4,235 +4,316 @@ 800 ], "TypeScript:lib/tsc.js": [ -90, -147, -2055, -3447, -3496, +534, +659, +798, +822, +928, +1181, +1598, 3607, -3683, -3699, 3732, -3870, -3882, -4890, -4903, -4984, -5088, -5329, +4032, +4242, +4629, +4682, 5421, -5531, -5653, 5705, -5763, -5799, 5909, -6041, 6083, -6122, -6187, -6211, -6254, 6321, -6395, -6417, -6476, -6505, -6547, -6605, -6707, -6759, -6867, -6983, -7094, 7114, -7139, -7210, +7228, 7276, 7302, 7345, -7415, 7616, -7679, -7799, -8553, -8573, -8589, -8605, -8652, -8729, -9589, 10490, -10689, -10799, -10828, -10852, -10874, -10976, 11091, -11186, -11252, -11273, -11298, -11322, -11344, 11386, -11429, -11498, -11524, -11583, -11633, -11653, -11682, -11698, -11718, 11754, -11795, -11810, 11862, -11968, -12027, 12038, -12462, -17017, -17303, -17349, -19398, -19437, -19512, +12952, +13338, +14150, +14721, +16118, +16517, +16674, +16838, +17275, +17443, +17513, +17563, +17592, +18105, +18227, +18291, +18519, +18577, +18809, 19555, -19585, -19607, 19709, -19979, -20012, 20043, 20128, -20155, 20224, 20285, -20347, -20393, 20436, -20470, -20484, -20504, -20521, -20541, -20603, -20626, -20648, -20698, -20735, -39401, +21072, +21130, +21270, +21350, +21544, +21720, +21850, +21912, +22269, +22320, +22430, +22636, +22694, +22796, +22828, +22882, +23029, +23115, +23162, +23233, +23772, +23864, +23936, +24052, +24105, +24162, +24400, +24462, +24492, +24539, +24606, +24798, +24901, +24925, +25022, +25191, +25266, +25314, +25324, +25495, +25568, +25589, +25747, +26052, +26269, +26365, +26416, +26522, +26595, +26669, +27089, +27163, +27299, +27474, +27514, +27607, +27712, +27769, +27844, +27898, +28010, +28040, +28138, +28223, +28329, +28387, +28512, +28520, +28539, +28650, +28838, +29066, +29262, +29635, +29726, +29808, +29883, +29923, +29956, +30002, +30057, +30177, +30374, +30456, +30574, +30615, +30654, +30995, +31087, +31260, +31436, +31457, +31499, +31726, +31842, +32061, +32136, +32177, +32218, +32425, +32530, +32589, +32643, +32690, +32838, +32945, +33033, +33173, +33206, +33250, +33491, +33546, +33688, +33870, +34196, +34271, +34336, +34437, +34485, +34563, +34714, +34765, +34880, +34991, +35036, +35133, +35189, +35326, +35502, +35539, +35585, +35746, +35828, +35886, +35944, +36013, +36078, +36165, +36238, +36281, +36328, +36433, +36562, +36624, +36800, +36983, +37007, +37038, +37083, +37317, +37409, +37537, +37614, +37700, +37859, +37894, +38037, +38281, +38333, +38399, +38673, +38795, +38871, +38964, +39003, +39085, +39147, 39425, -39499, -39760, 40198, 40234, -40294, -40351, 40372, 40416, -40486, -40527, -40553, -42085, -42133, -42350, -42374, -42896, -43334, -43396, -45246, -45325, -46946, -47619, -48443, -48525, -48556, -48760, -49007, -49028, -49368, -50880, -50910, -51044, -53172, -53194, -53226, -53339, -53355, -53378, +43630, +43766, +43830, +44156, +44259, +44400, +44548, +46125, +46776, +46795, +47148, +47294, +47730, +47802, +48389, +49050, +49503, +49873, +50175, +50366, +50389, +50482, +50517, +50591, +50638, +50726, +51006, +52140, +52563, +52684, +53033, 53397, -54538, -55203, -55228, -55248, -55368, -55379, -55517, +53527, +53600, +53912, +54082, +54128, +54176, +54252, +54299, +54365, +55259, +55321, +55406, +55458, 55534, -55674, -55710, -55725, +55621, 55770, -55810, 55829, -55865, -55878, -55923, 55969, 56044, -56290, 56386 ], "TypeScript:lib/typingsInstaller.js": [ -100, -157, -2065, -3457, -3506, +544, +669, +808, +832, +938, +1191, +1608, 3617, -3693, -3709, 3742, -3880, -3892, -5565, -5585, -5705, -5716, +4042, +4252, +4639, +4692, +5596, +5658, +5743, +5795, 5871, -6047, -6062, +5958, 6107, 6166, -6202, -6246, -6469, -6502, +6258, 6533, 6618, -6645, 6714, 6775, -6837, -6883, 6926, -6960, -6974, -6994, -7011, -7031, -7093, -7116, -7138, -7188, -7205, -7581 -], -"TypeScript:scripts/mocha-parallel.js": [ -48 +7325, +7376 ] } diff --git a/its/ruling/src/test/expected/jsts/TypeScript/typescript-S3776.json b/its/ruling/src/test/expected/jsts/TypeScript/typescript-S3776.json index 6cc5bb764e5..ff17b2eab6c 100644 --- a/its/ruling/src/test/expected/jsts/TypeScript/typescript-S3776.json +++ b/its/ruling/src/test/expected/jsts/TypeScript/typescript-S3776.json @@ -3,26 +3,16 @@ 195, 599 ], -"TypeScript:scripts/authors.ts": [ -112 -], -"TypeScript:scripts/bisect-test.ts": [ -17 -], "TypeScript:scripts/buildProtocol.ts": [ 71 ], -"TypeScript:scripts/errorCheck.ts": [ -6 -], "TypeScript:scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.ts": [ -105 +119 ], "TypeScript:scripts/word2md.ts": [ 262 ], "TypeScript:src/compiler/binder.ts": [ -19, 229, 318, 415, @@ -37,12 +27,182 @@ 3286 ], "TypeScript:src/compiler/checker.ts": [ -30 +523, +564, +732, +856, +1161, +1394, +1560, +1636, +2108, +2184, +2334, +2570, +2632, +2772, +2810, +2878, +3072, +3168, +3223, +3307, +3931, +4046, +4154, +4321, +4389, +4456, +4747, +4826, +4858, +4910, +4985, +5200, +5309, +5341, +5458, +5665, +5770, +5834, +5845, +6053, +6146, +6172, +6359, +6730, +7020, +7125, +7181, +7313, +7388, +7486, +7968, +8060, +8253, +8481, +8510, +8639, +8754, +8817, +8898, +8957, +9095, +9127, +9239, +9354, +9492, +9566, +9728, +9737, +9765, +9910, +10116, +10390, +10644, +11089, +11200, +11301, +11402, +11443, +11477, +11533, +11609, +11776, +12068, +12176, +12390, +12441, +12491, +12943, +13085, +13311, +13609, +13644, +13708, +13997, +14074, +14190, +14310, +14609, +14717, +14792, +14856, +15223, +15416, +15484, +15566, +15642, +15869, +16006, +16136, +16313, +16360, +16420, +16726, +16789, +16959, +17177, +17617, +17710, +17794, +17918, +17982, +18089, +18280, +18345, +18489, +18651, +18768, +18944, +18990, +19059, +19236, +19452, +19534, +19598, +19807, +19938, +20061, +20158, +20255, +20339, +20447, +20558, +20607, +20671, +20792, +20971, +21051, +21261, +21494, +21520, +21556, +21613, +21879, +22017, +22185, +22282, +22391, +22621, +22669, +22870, +23151, +23213, +23285, +23581, +23720, +23813, +23927, +23980, +24079, +24157 ], "TypeScript:src/compiler/commandLineParser.ts": [ 757, 828, -898, +933, +993, 1134, 1485, 1586 @@ -54,19 +214,27 @@ 500, 546, 679, -827, 858, 884, 1018, 1328, 1842, -1949 +1971 ], "TypeScript:src/compiler/declarationEmitter.ts": [ -43 +216, +659, +998, +1229, +1260, +1373, +1413, +1495, +1562, +1667 ], "TypeScript:src/compiler/emitter.ts": [ -13, +145, 1564, 2115, 2258, @@ -82,10 +250,8 @@ "TypeScript:src/compiler/moduleNameResolver.ts": [ 152, 257, -336, 408, 550, -627, 744 ], "TypeScript:src/compiler/parser.ts": [ @@ -95,14 +261,23 @@ 3072, 4015, 5829, -6335, -7025, -7274, -7454 +6355, +6541, +6736, +7477 ], "TypeScript:src/compiler/program.ts": [ 270, -389 +389, +582, +724, +1172, +1383, +1446, +1499, +1601, +1662, +1746 ], "TypeScript:src/compiler/scanner.ts": [ 445, @@ -112,12 +287,6 @@ 1640, 1708 ], -"TypeScript:src/compiler/sys.ts": [ -99 -], -"TypeScript:src/compiler/transformer.ts": [ -93 -], "TypeScript:src/compiler/transformers/destructuring.ts": [ 35, 257, @@ -132,11 +301,7 @@ 2257, 2631 ], -"TypeScript:src/compiler/transformers/es5.ts": [ -11 -], "TypeScript:src/compiler/transformers/generators.ts": [ -971, 1700, 2850, 2871 @@ -152,7 +317,6 @@ ], "TypeScript:src/compiler/tsc.ts": [ 99, -408, 536 ], "TypeScript:src/compiler/utilities.ts": [ @@ -160,56 +324,39 @@ 965, 1219, 1407, -1545, 1681, 2654, -2767, +2785, 2837, 2870, 2935, -3280, -4598 +3280 ], "TypeScript:src/compiler/visitor.ts": [ 84 ], -"TypeScript:src/harness/compilerRunner.ts": [ -57 -], "TypeScript:src/harness/fourslash.ts": [ -256, 816, 1043, -1188, -1468, 1688, 1953, 2738, -2770, 2906, 3109 ], "TypeScript:src/harness/harness.ts": [ 422, 880, -1195, -1303, -1398, -1558, 1745 ], -"TypeScript:src/harness/harnessLanguageService.ts": [ -249 -], "TypeScript:src/harness/projectsRunner.ts": [ -60 +247 ], "TypeScript:src/harness/rwcRunner.ts": [ -30 +71 ], "TypeScript:src/harness/sourceMapRecorder.ts": [ -64, -330 +64 ], "TypeScript:src/harness/typeWriter.ts": [ 39 @@ -226,11 +373,7 @@ 1505, 1573 ], -"TypeScript:src/server/lsHost.ts": [ -60 -], "TypeScript:src/server/project.ts": [ -454, 547, 680 ], @@ -245,41 +388,42 @@ 651 ], "TypeScript:src/server/session.ts": [ -822, 1134, -1398, 1891 ], "TypeScript:src/server/typingsInstaller/typingsInstaller.ts": [ 176, -229, -293 +229 ], "TypeScript:src/services/breakpoints.ts": [ -11 +71 ], "TypeScript:src/services/classifier.ts": [ 128, +282, 548, 643, -716, 873 ], -"TypeScript:src/services/codefixes/fixAddMissingMember.ts": [ -9 -], "TypeScript:src/services/codefixes/helpers.ts": [ 58 ], "TypeScript:src/services/codefixes/importFixes.ts": [ -125 +125, +420, +485 ], "TypeScript:src/services/codefixes/unusedIdentifierFixes.ts": [ -8 +43 ], "TypeScript:src/services/completions.ts": [ 7, -348 +348, +828, +931, +1031, +1066, +1147 ], "TypeScript:src/services/documentHighlights.ts": [ 57, @@ -290,32 +434,31 @@ 576, 805, 983, -1112, -1210, -1332, -1412, -1462 +1126, +1332 ], "TypeScript:src/services/formatting/formatting.ts": [ -353, +615, +693, +749, +871, 1168 ], "TypeScript:src/services/formatting/formattingScanner.ts": [ -33 +161 ], "TypeScript:src/services/formatting/smartIndenter.ts": [ 23, 128 ], "TypeScript:src/services/goToDefinition.ts": [ -3, -153 +3 ], "TypeScript:src/services/importTracker.ts": [ -40, -178, -332, -396 +74, +192, +260, +399 ], "TypeScript:src/services/jsDoc.ts": [ 155 @@ -324,7 +467,7 @@ 54 ], "TypeScript:src/services/navigateTo.ts": [ -5 +17 ], "TypeScript:src/services/navigationBar.ts": [ 149 @@ -336,8 +479,7 @@ 72, 147, 193, -241, -410 +241 ], "TypeScript:src/services/patternMatcher.ts": [ 198, @@ -345,16 +487,21 @@ 689 ], "TypeScript:src/services/preProcess.ts": [ -2 +2, +95, +176, +245 ], "TypeScript:src/services/rename.ts": [ 22 ], "TypeScript:src/services/services.ts": [ -135, 614, 940, -1043 +1082, +1352, +1650, +1808 ], "TypeScript:src/services/signatureHelp.ts": [ 58, diff --git a/its/ruling/src/test/expected/jsts/ace/javascript-S3776.json b/its/ruling/src/test/expected/jsts/ace/javascript-S3776.json index 9a1cf410274..64ff9f7adac 100644 --- a/its/ruling/src/test/expected/jsts/ace/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/ace/javascript-S3776.json @@ -1,137 +1,181 @@ { "ace:Makefile.dryice.js": [ -88, -331, -721 -], -"ace:doc/site/js/main.js": [ -3 +346 ], "ace:doc/template/resources/javascripts/jquery-scrollspy.js": [ -11 +37 ], "ace:doc/template/resources/javascripts/jquery.cookie.js": [ 56 ], -"ace:doc/template/resources/javascripts/ux.js": [ -43 -], "ace:lib/ace/loader_build.js": [ 33 ], "ace:lib/ace/mode/css/csslint.js": [ -26 +844, +1340, +1997, +2073, +2638, +2749, +3072, +4069, +4681, +5194, +5327, +5382, +5610, +7218, +7516, +8313, +8582, +9121, +9451, +9519, +9943 ], "ace:lib/ace/mode/html/saxparser.js": [ -2, -3, -300, -488, -603, -786, -2353, -5882, -6581, -9075, -9448, -10040, -10371 +325, +1507, +2007, +2532, +4840, +5226, +5333, +9249, +9660, +9817, +10087, +10147, +10219 ], "ace:lib/ace/mode/javascript/jshint.js": [ -2, -63, -160, -1920, -2384, -4430, -11200, -13779, -15105, -16157, -16364, -16510, -17863, -18256, -18846, -19149 +161, +1002, +2361, +2394, +2756, +3415, +3660, +4107, +4580, +4652, +4989, +5274, +5380, +5489, +6006, +6270, +6348, +6525, +7150, +7315, +7480, +7554, +7673, +7799, +7902, +8016, +8254, +8489, +8674, +8682, +8715, +8857, +9049, +9138, +9207, +9244, +9391, +9546, +9831, +9937, +9994, +10067, +10175, +10427, +10516, +10744, +10856, +11427, +11606, +11639, +11962, +12334, +12443, +12579, +12600, +13243, +13249, +15405, +15606, +15847, +18037, +18086, +18468, +18625, +18893, +18951, +19026 ], "ace:lib/ace/mode/javascript_worker.js": [ -77 +105 ], "ace:lib/ace/mode/json/json_parse.js": [ 106, -147, -313 -], -"ace:lib/ace/mode/jsoniq.js": [ -23 +147 ], "ace:lib/ace/mode/php/php.js": [ -173, 1094, 1301 ], "ace:lib/ace/mode/xml/dom-parser.js": [ -37 +47 ], "ace:lib/ace/mode/xml/dom.js": [ -1 +914 ], "ace:lib/ace/mode/xml/sax.js": [ -1 -], -"ace:lib/ace/mode/xquery.js": [ -51 +37, +190, +350, +459 ], "ace:lib/ace/mode/xquery/jsoniq_lexer.js": [ -2, -25, -4366 +1508, +4400 ], "ace:lib/ace/mode/xquery/xquery_lexer.js": [ -2, -25, -4198 +1508, +4232 ], "ace:lib/ace/mode/yaml/yaml-lint.js": [ -1, -140, -1014, -2614, -2692, -2925, -2988, -3165, -3283, -3458, -3552, -3704, -3856, -3946 -], -"ace:lib/ace/worker/mirror.js": [ -7 -], -"ace:lib/ace/worker/worker.js": [ -2 -], -"ace:lib/ace/worker/worker_client.js": [ -81 -], -"ace:lib/ace/worker/worker_client_v2.js": [ -125 -], -"ace:lib/ace/worker/worker_v2.js": [ -2 +397, +720, +794, +832, +921, +1102, +1351, +1422, +1576, +1655, +1760, +1903, +1965, +2120, +2271, +2425, +3303, +3712, +3947, +4667, +4906 ], "ace:src/autocomplete.js": [ 139, -240, 506 ], -"ace:src/autocomplete/popup.js": [ -38 -], "ace:src/bidihandler.js": [ 107, 305 @@ -139,11 +183,7 @@ "ace:src/commands/default_commands.js": [ 796 ], -"ace:src/document.js": [ -37 -], "ace:src/edit_session.js": [ -831, 1001, 1178, 1243, @@ -174,29 +214,24 @@ ], "ace:src/editor.js": [ 136, -491, +499, 851, 895, 1332, -1684, 1856, -2160, -2663 +2160 ], "ace:src/ext/beautify.js": [ 20 ], "ace:src/ext/code_lens.js": [ -15, -120 +15 ], "ace:src/ext/emmet.js": [ -237, 319 ], "ace:src/ext/error_marker.js": [ -25, -61 +25 ], "ace:src/ext/hardwrap.js": [ 5 @@ -205,19 +240,11 @@ 248 ], "ace:src/ext/prompt.js": [ -37, -219, -312 +37 ], "ace:src/ext/searchbox.js": [ 256 ], -"ace:src/ext/spellcheck.js": [ -4 -], -"ace:src/ext/static_highlight.js": [ -66 -], "ace:src/ext/whitespace.js": [ 6, 94 @@ -232,7 +259,9 @@ 5 ], "ace:src/keyboard/textinput.js": [ -19 +151, +262, +651 ], "ace:src/keyboard/textinput_test.js": [ 27 @@ -240,14 +269,12 @@ "ace:src/keyboard/vim.js": [ 189, 322, -734, 819, +828, 1351, -1645, 1681, -1746, -2257, -2387, +2292, +2396, 2436, 2694, 2781, @@ -259,39 +286,33 @@ 3610, 3774, 3825, -4096, 4198, 4323, 4491, 4557, 4629, 4739, -4803, -4945, +4829, +4877, +5042, 5167, 5296, 5338, 5455, -5534, -5593, -5628, +5595, 5732, 5893, 5996, 6082, -6176, +6084, 6240, 6346, -6421, 6665, -6784, -6918, 6997 ], "ace:src/keyboard/vim_test.js": [ -42, -265, -5371 +5449, +5508 ], "ace:src/layer/cursor.js": [ 172 @@ -313,8 +334,7 @@ 440, 522, 558, -649, -689 +649 ], "ace:src/lib/bidiutil.js": [ 72, @@ -326,7 +346,7 @@ 176 ], "ace:src/lib/event.js": [ -123, +132, 180 ], "ace:src/line_widgets.js": [ @@ -336,8 +356,6 @@ 308 ], "ace:src/mode/_test/highlight_rules_test.js": [ -30, -151, 305 ], "ace:src/mode/behaviour/cstyle.js": [ @@ -394,30 +412,20 @@ "ace:src/mode/folding/velocity.js": [ 48 ], -"ace:src/mode/javascript_highlight_rules.js": [ -10 -], "ace:src/mode/scheme.js": [ 30 ], -"ace:src/mode/swift_highlight_rules.js": [ -28 -], "ace:src/mode/text.js": [ -34, 157, 307 ], "ace:src/mode/text_highlight_rules.js": [ 22, -90 +93 ], "ace:src/mode/vbscript.js": [ 34 ], -"ace:src/mode/velocity_highlight_rules.js": [ -8 -], "ace:src/mouse/default_handlers.js": [ 110, 202 @@ -425,23 +433,17 @@ "ace:src/mouse/dragdrop_handler.js": [ 345 ], -"ace:src/mouse/mouse_handler.js": [ -12, -103 -], "ace:src/mouse/multi_select_handler.js": [ 9 ], "ace:src/mouse/touch_handler.js": [ -23, 144, 240 ], "ace:src/multi_select.js": [ 233, 432, -689, -765 +689 ], "ace:src/placeholder.js": [ 119 @@ -461,37 +463,22 @@ 715 ], "ace:src/snippets.js": [ -102, -247, +254, 295, -352, 567, -587, +616, 685, -773, -878 -], -"ace:src/test/asyncjs/async.js": [ -96, -158, -191, -272, -388 -], -"ace:src/test/asyncjs/test.js": [ -87 +773 ], "ace:src/test/mockdom.js": [ 341, -475, 574 ], "ace:src/test/user.js": [ -72 +110 ], "ace:src/tokenizer.js": [ 17, -156, 199 ], "ace:src/tokenizer_dev.js": [ @@ -508,22 +495,17 @@ 616, 807, 996, -1223, -1366, -1656 +1223 ], "ace:tool/lib.js": [ -42 +46 ], "ace:tool/regexp_tokenizer.js": [ 36 ], "ace:tool/tmlanguage.js": [ -40, -108, 275, -363, -507 +363 ], "ace:tool/tmtheme.js": [ 105 diff --git a/its/ruling/src/test/expected/jsts/ag-grid/typescript-S3776.json b/its/ruling/src/test/expected/jsts/ag-grid/typescript-S3776.json index 8c4298e67b4..b184460e0c4 100644 --- a/its/ruling/src/test/expected/jsts/ag-grid/typescript-S3776.json +++ b/its/ruling/src/test/expected/jsts/ag-grid/typescript-S3776.json @@ -6,15 +6,9 @@ 760, 1861 ], -"ag-grid:src/ts/components/componentUtil.ts": [ -135 -], "ag-grid:src/ts/entities/rowNode.ts": [ 330, -428 -], -"ag-grid:src/ts/focusedCellController.ts": [ -73 +441 ], "ag-grid:src/ts/gridOptionsWrapper.ts": [ 467 @@ -25,11 +19,7 @@ "ag-grid:src/ts/gridSerializer.ts": [ 186 ], -"ag-grid:src/ts/misc/focusService.ts": [ -50 -], "ag-grid:src/ts/rendering/renderedCell.ts": [ -989, 1076 ], "ag-grid:src/ts/rendering/renderedRow.ts": [ @@ -46,17 +36,8 @@ "ag-grid:src/ts/rowModels/inMemory/inMemoryRowModel.ts": [ 333 ], -"ag-grid:src/ts/rowNodes/filterService.ts": [ -13 -], -"ag-grid:src/ts/sortController.ts": [ -118 -], "ag-grid:src/ts/utils.ts": [ 687, 1003 -], -"ag-grid:src/ts/widgets/popupService.ts": [ -205 ] } diff --git a/its/ruling/src/test/expected/jsts/amplify/javascript-S3776.json b/its/ruling/src/test/expected/jsts/amplify/javascript-S3776.json index 4d6beefb1c9..fe6fa14be41 100644 --- a/its/ruling/src/test/expected/jsts/amplify/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/amplify/javascript-S3776.json @@ -1,5 +1,6 @@ { "amplify:src/store.js": [ -1 +31, +163 ] } diff --git a/its/ruling/src/test/expected/jsts/angular.js/javascript-S3776.json b/its/ruling/src/test/expected/jsts/angular.js/javascript-S3776.json index f929b68d716..3edd5ed9182 100644 --- a/its/ruling/src/test/expected/jsts/angular.js/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/angular.js/javascript-S3776.json @@ -1,204 +1,100 @@ { -"angular.js:docs/config/processors/keywords.js": [ -28 -], -"angular.js:lib/grunt/utils.js": [ -244 -], -"angular.js:lib/grunt/validate-angular-files.js": [ -11 -], -"angular.js:scripts/code.angularjs.org-firebase/functions/index.js": [ -12 -], "angular.js:src/Angular.js": [ 235, 324, -870, +901, 1083 ], "angular.js:src/auto/injector.js": [ -93, -820, -874 +93 ], "angular.js:src/jqLite.js": [ -336, 405, 477, 680, 762 ], -"angular.js:src/loader.js": [ -26 -], -"angular.js:src/ng/anchorScroll.js": [ -174 -], -"angular.js:src/ng/animate.js": [ -67, -314 -], -"angular.js:src/ng/animateCss.js": [ -18 -], -"angular.js:src/ng/animateRunner.js": [ -36 -], "angular.js:src/ng/browser.js": [ -34 -], -"angular.js:src/ng/cacheFactory.js": [ -87 +95 ], "angular.js:src/ng/compile.js": [ -1511, -1638, 1997, -4280, -4296 +2192, +2477, +2531, +2652, +2793, +2884, +3208, +3387, +3492, +3603, +3772, +3937, +4032 ], "angular.js:src/ng/controller.js": [ -57 -], -"angular.js:src/ng/directive/form.js": [ -540 +84 ], "angular.js:src/ng/directive/input.js": [ -1291, 1444, -1502, -1724, 1789 ], -"angular.js:src/ng/directive/ngClass.js": [ -13 -], -"angular.js:src/ng/directive/ngIf.js": [ -89 -], -"angular.js:src/ng/directive/ngInclude.js": [ -195 -], -"angular.js:src/ng/directive/ngList.js": [ -98 -], -"angular.js:src/ng/directive/ngModel.js": [ -601, -727 -], -"angular.js:src/ng/directive/ngOptions.js": [ -253, -416 -], -"angular.js:src/ng/directive/ngPluralize.js": [ -183 -], -"angular.js:src/ng/directive/ngRef.js": [ -249 -], "angular.js:src/ng/directive/ngRepeat.js": [ -472 -], -"angular.js:src/ng/directive/ngTransclude.js": [ -165 -], -"angular.js:src/ng/directive/select.js": [ -382, -755 -], -"angular.js:src/ng/directive/validators.js": [ -180 +531 ], "angular.js:src/ng/filter/filter.js": [ -177, 214 ], "angular.js:src/ng/filter/filters.js": [ 217, -292, -611 +292 ], "angular.js:src/ng/filter/orderBy.js": [ -615, 674 ], "angular.js:src/ng/http.js": [ -105, 136, -432 +1350 ], "angular.js:src/ng/httpBackend.js": [ 59 ], "angular.js:src/ng/interpolate.js": [ -98 -], -"angular.js:src/ng/intervalFactory.js": [ -6 +240 ], "angular.js:src/ng/location.js": [ -204, -841 -], -"angular.js:src/ng/log.js": [ -77 +894 ], "angular.js:src/ng/parse.js": [ 70, 180, 513, 654, -906, -1312, -1781 +906 ], "angular.js:src/ng/rootScope.js": [ -101 -], -"angular.js:src/ng/sce.js": [ -250 -], -"angular.js:src/ng/sniffer.js": [ -21 -], -"angular.js:src/ng/testability.js": [ -6 -], -"angular.js:src/ng/timeout.js": [ -8 +606, +688, +771, +1379 ], "angular.js:src/ngAnimate/animateCss.js": [ -328 -], -"angular.js:src/ngAnimate/animateCssDriver.js": [ -17 +417, +865 ], "angular.js:src/ngAnimate/animateJs.js": [ -9 -], -"angular.js:src/ngAnimate/animateJsDriver.js": [ -5 +13 ], "angular.js:src/ngAnimate/animateQueue.js": [ -115 -], -"angular.js:src/ngAnimate/animation.js": [ -26 +326, +638 ], "angular.js:src/ngAria/aria.js": [ -261, -371 -], -"angular.js:src/ngMessages/messages.js": [ -376, -732 +267 ], "angular.js:src/ngMock/angular-mocks.js": [ -588, -1465, -1980, -3044 +1465 ], "angular.js:src/ngMock/browserTrigger.js": [ 59 @@ -208,22 +104,12 @@ 564 ], "angular.js:src/ngResource/resource.js": [ -583 -], -"angular.js:src/ngRoute/directive/ngView.js": [ -187 -], -"angular.js:src/ngRoute/route.js": [ -328 +724 ], "angular.js:src/ngSanitize/filter/linky.js": [ 141 ], "angular.js:src/ngSanitize/sanitize.js": [ -508, -609 -], -"angular.js:src/ngTouch/swipe.js": [ -108 +508 ] } diff --git a/its/ruling/src/test/expected/jsts/ant-design/javascript-S3776.json b/its/ruling/src/test/expected/jsts/ant-design/javascript-S3776.json index 5cd34b86451..cd554cf6d6b 100644 --- a/its/ruling/src/test/expected/jsts/ant-design/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/ant-design/javascript-S3776.json @@ -1,22 +1,11 @@ { -"ant-design:components/table/__tests__/Table.filter.test.js": [ -16 -], "ant-design:components/typography/__tests__/index.test.js": [ -88 +91, +244 ], "ant-design:scripts/print-changelog.js": [ 54 ], -"ant-design:site/theme/static/template.html": [ -118 -], -"ant-design:site/theme/template/Color/Palette.jsx": [ -31 -], -"ant-design:site/theme/template/Content/ComponentDoc.jsx": [ -99 -], "ant-design:site/theme/template/Content/Demo/index.jsx": [ 124 ] diff --git a/its/ruling/src/test/expected/jsts/ant-design/typescript-S3776.json b/its/ruling/src/test/expected/jsts/ant-design/typescript-S3776.json index e40d6071da4..25ccbdb8197 100644 --- a/its/ruling/src/test/expected/jsts/ant-design/typescript-S3776.json +++ b/its/ruling/src/test/expected/jsts/ant-design/typescript-S3776.json @@ -8,51 +8,21 @@ "ant-design:components/button/button.tsx": [ 142 ], -"ant-design:components/calendar/generateCalendar.tsx": [ -82 -], -"ant-design:components/card/Card.tsx": [ -55 -], -"ant-design:components/cascader/index.tsx": [ -118 -], "ant-design:components/date-picker/generatePicker/index.tsx": [ 32 ], -"ant-design:components/drawer/index.tsx": [ -108 -], "ant-design:components/form/FormItem.tsx": [ 362 ], -"ant-design:components/grid/col.tsx": [ -48 -], -"ant-design:components/grid/row.tsx": [ -23 -], "ant-design:components/input-number/index.tsx": [ 32 ], -"ant-design:components/input/Input.tsx": [ -124 -], -"ant-design:components/input/Search.tsx": [ -25 -], "ant-design:components/input/TextArea.tsx": [ 80 ], -"ant-design:components/layout/Sider.tsx": [ -82 -], "ant-design:components/list/index.tsx": [ 73 ], -"ant-design:components/slider/index.tsx": [ -72 -], "ant-design:components/space/Item.tsx": [ 14 ], @@ -62,32 +32,9 @@ "ant-design:components/table/Table.tsx": [ 108 ], -"ant-design:components/table/hooks/useFilter/FilterDropdown.tsx": [ -122 -], -"ant-design:components/table/hooks/usePagination.ts": [ -45 -], "ant-design:components/table/hooks/useSelection.tsx": [ -266, -355 -], -"ant-design:components/table/hooks/useSorter.tsx": [ -116, -269, -352 -], -"ant-design:components/tag/index.tsx": [ -49 -], -"ant-design:components/tooltip/index.tsx": [ -130 -], -"ant-design:components/transfer/list.tsx": [ -304 -], -"ant-design:components/tree/utils/dictUtil.ts": [ -24 +355, +529 ], "ant-design:components/tree/utils/iconUtil.tsx": [ 11 @@ -95,12 +42,6 @@ "ant-design:components/typography/Base/Ellipsis.tsx": [ 110 ], -"ant-design:components/typography/Base/index.tsx": [ -118 -], -"ant-design:components/typography/__tests__/copy.test.tsx": [ -16 -], "ant-design:components/upload/UploadList/ListItem.tsx": [ 74 ], diff --git a/its/ruling/src/test/expected/jsts/backbone/javascript-S3776.json b/its/ruling/src/test/expected/jsts/backbone/javascript-S3776.json index 43d226406b1..c5e13be59f1 100644 --- a/its/ruling/src/test/expected/jsts/backbone/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/backbone/javascript-S3776.json @@ -1,5 +1,11 @@ { "backbone:backbone.js": [ -34 +221, +473, +834, +1198, +1556, +1831, +1974 ] } diff --git a/its/ruling/src/test/expected/jsts/console/javascript-S3776.json b/its/ruling/src/test/expected/jsts/console/javascript-S3776.json deleted file mode 100644 index adddf99c403..00000000000 --- a/its/ruling/src/test/expected/jsts/console/javascript-S3776.json +++ /dev/null @@ -1,5 +0,0 @@ -{ -"console:src/utils/smooth.js": [ -1 -] -} diff --git a/its/ruling/src/test/expected/jsts/console/typescript-S3776.json b/its/ruling/src/test/expected/jsts/console/typescript-S3776.json index 71619ae411c..98b01cbf642 100644 --- a/its/ruling/src/test/expected/jsts/console/typescript-S3776.json +++ b/its/ruling/src/test/expected/jsts/console/typescript-S3776.json @@ -1,11 +1,4 @@ { -"console:src/actions/databrowser/data.ts": [ -303 -], -"console:src/utils/polyfils.ts": [ -42, -134 -], "console:src/utils/valueparser.ts": [ 120 ], @@ -23,8 +16,5 @@ ], "console:src/views/models/FieldPopup/ConfirmFieldPopup.tsx": [ 30 -], -"console:src/views/models/utils.ts": [ -118 ] } diff --git a/its/ruling/src/test/expected/jsts/desktop/javascript-S3776.json b/its/ruling/src/test/expected/jsts/desktop/javascript-S3776.json deleted file mode 100644 index 683bc024ff9..00000000000 --- a/its/ruling/src/test/expected/jsts/desktop/javascript-S3776.json +++ /dev/null @@ -1,8 +0,0 @@ -{ -"desktop:eslint-rules/react-proper-lifecycle-methods.js": [ -199 -], -"desktop:eslint-rules/react-readonly-props-and-state.js": [ -31 -] -} diff --git a/its/ruling/src/test/expected/jsts/desktop/typescript-S3776.json b/its/ruling/src/test/expected/jsts/desktop/typescript-S3776.json index 796f3700a18..b335d1b88db 100644 --- a/its/ruling/src/test/expected/jsts/desktop/typescript-S3776.json +++ b/its/ruling/src/test/expected/jsts/desktop/typescript-S3776.json @@ -8,6 +8,7 @@ "desktop:app/src/lib/actions-log-parser/action-log-parser.ts": [ 174, 258, +293, 488 ], "desktop:app/src/lib/api.ts": [ @@ -25,9 +26,6 @@ "desktop:app/src/lib/git/reorder.ts": [ 28 ], -"desktop:app/src/lib/git/spawn.ts": [ -63 -], "desktop:app/src/lib/git/squash.ts": [ 33 ], @@ -38,11 +36,7 @@ 74 ], "desktop:app/src/lib/patch-formatter.ts": [ -129, -251 -], -"desktop:app/src/lib/progress/from-process.ts": [ -56 +143 ], "desktop:app/src/lib/progress/git.ts": [ 245 @@ -51,33 +45,23 @@ 165 ], "desktop:app/src/lib/stores/app-store.ts": [ -939, -2085, 2165, -2494, -2642, 2841 ], "desktop:app/src/lib/stores/git-store.ts": [ 742 ], -"desktop:app/src/lib/stores/helpers/branch-pruner.ts": [ -131 -], "desktop:app/src/lib/stores/pull-request-store.ts": [ 233 ], "desktop:app/src/lib/stores/sign-in-store.ts": [ 334 ], -"desktop:app/src/lib/stores/updates/changes-state.ts": [ -32 -], "desktop:app/src/lib/wrap-rich-text-commit-message.ts": [ 34 ], "desktop:app/src/main-process/main.ts": [ -298 +334 ], "desktop:app/src/main-process/menu/build-default-menu.ts": [ 35 @@ -99,9 +83,6 @@ 1357, 2515 ], -"desktop:app/src/ui/changes/changes-list.tsx": [ -488 -], "desktop:app/src/ui/changes/commit-message.tsx": [ 646 ], @@ -127,12 +108,8 @@ "desktop:app/src/ui/diff/text-diff.tsx": [ 525, 873, -957, 1255 ], -"desktop:app/src/ui/dispatcher/dispatcher.ts": [ -1782 -], "desktop:app/src/ui/history/commit-list-item.tsx": [ 265 ], @@ -160,7 +137,6 @@ 318 ], "desktop:app/src/ui/repositories-list/group-repositories.ts": [ -42, 128 ], "desktop:app/src/ui/repository-settings/repository-settings.tsx": [ @@ -169,9 +145,6 @@ "desktop:app/src/ui/toolbar/branch-dropdown.tsx": [ 119 ], -"desktop:script/build.ts": [ -142 -], "desktop:script/draft-release/run.ts": [ 117 ], diff --git a/its/ruling/src/test/expected/jsts/eigen/javascript-S3776.json b/its/ruling/src/test/expected/jsts/eigen/javascript-S3776.json deleted file mode 100644 index b2dcb98acac..00000000000 --- a/its/ruling/src/test/expected/jsts/eigen/javascript-S3776.json +++ /dev/null @@ -1,5 +0,0 @@ -{ -"eigen:scripts/generate-manifest.js": [ -18 -] -} diff --git a/its/ruling/src/test/expected/jsts/eigen/typescript-S3776.json b/its/ruling/src/test/expected/jsts/eigen/typescript-S3776.json index d72f837688c..28712a4bcfa 100644 --- a/its/ruling/src/test/expected/jsts/eigen/typescript-S3776.json +++ b/its/ruling/src/test/expected/jsts/eigen/typescript-S3776.json @@ -1,44 +1,25 @@ { -"eigen:src/app/Components/ArtsyWebView.tsx": [ -170 -], -"eigen:src/app/Components/ArtworkFilter/useArtworkFilters.ts": [ -35 -], -"eigen:src/app/Components/ArtworkGrids/InfiniteScrollArtworksGrid.tsx": [ -253 -], "eigen:src/app/Components/ArtworkGrids/LotCloseInfo.tsx": [ 26 ], -"eigen:src/app/Components/FancyModal/FancyModalCard.tsx": [ -45 +"eigen:src/app/Components/Bidding/Screens/ConfirmBid/index.tsx": [ +459 ], -"eigen:src/app/Components/Home/ArtistRails/ArtistRail.tsx": [ -47 -], -"eigen:src/app/Components/LocationMap/LocationMap.tsx": [ -77 +"eigen:src/app/Components/FancyModal/FancyModalCard.tsx": [ +80 ], "eigen:src/app/Components/ReadMore.tsx": [ -44, 143 ], "eigen:src/app/Scenes/Artwork/Artwork.tsx": [ 233 ], -"eigen:src/app/Scenes/Artwork/Components/ArtworkActions.tsx": [ -121 -], "eigen:src/app/Scenes/Artwork/Components/ContextCard.tsx": [ 112 ], "eigen:src/app/Scenes/Artwork/Components/ImageCarousel/FullScreen/DeepZoom/DeepZoomLevel.tsx": [ 169 ], -"eigen:src/app/Scenes/Artwork/Components/ImageCarousel/FullScreen/ImageZoomView.tsx": [ -119 -], "eigen:src/app/Scenes/Fair/Fair.tsx": [ 46 ], @@ -48,9 +29,6 @@ "eigen:src/app/Scenes/Inbox/Components/Conversations/ConversationCTA.tsx": [ 15 ], -"eigen:src/app/Scenes/Inbox/Components/Conversations/Messages.tsx": [ -45 -], "eigen:src/app/Scenes/Inbox/Components/Conversations/OpenInquiryModalButton.tsx": [ 21 ], @@ -63,53 +41,35 @@ "eigen:src/app/Scenes/MyAccount/MyAccount.tsx": [ 20 ], -"eigen:src/app/Scenes/MyAccount/updateMyUserProfile.ts": [ -12 -], "eigen:src/app/Scenes/MyCollection/Screens/ArtworkForm/MyCollectionArtworkForm.tsx": [ 283 ], -"eigen:src/app/Scenes/MyCollection/utils/localArtworkSortAndFilter.ts": [ -20 -], "eigen:src/app/navigation/navigate.ts": [ 42 ], "eigen:src/app/relay/middlewares/cacheMiddleware.ts": [ 8 ], -"eigen:src/app/relay/middlewares/checkAuthenticationMiddleware.ts": [ -9 -], "eigen:src/app/relay/middlewares/metaphysicsMiddleware.ts": [ -15 +17 ], "eigen:src/app/store/AuthModel.ts": [ 310, -482, -589, -657 +658 ], "eigen:src/app/tests/createMockNetworkLayer/index.ts": [ -64, -198 +64 ], "eigen:src/app/utils/PushNotification.ts": [ 47 ], "eigen:src/app/utils/renderWithPlaceholder.tsx": [ -14 +39 ], "eigen:src/app/utils/saleTime.ts": [ 28 ], "eigen:src/palette/elements/Button/Button.tsx": [ 241 -], -"eigen:src/palette/elements/Input/Input.tsx": [ -110 -], -"eigen:src/palette/elements/Input/PhoneInput/PhoneInput.tsx": [ -35 ] } diff --git a/its/ruling/src/test/expected/jsts/es5-shim/javascript-S3776.json b/its/ruling/src/test/expected/jsts/es5-shim/javascript-S3776.json index 2a92e069327..d5e5bb715f9 100644 --- a/its/ruling/src/test/expected/jsts/es5-shim/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/es5-shim/javascript-S3776.json @@ -1,8 +1,18 @@ { "es5-shim:es5-sham.js": [ -30 +30, +112, +370 ], "es5-shim:es5-shim.js": [ -30 +30, +600, +653, +818, +1091, +1459, +1559, +1692, +1823 ] } diff --git a/its/ruling/src/test/expected/jsts/expressionist.js/javascript-S3776.json b/its/ruling/src/test/expected/jsts/expressionist.js/javascript-S3776.json index 7983375cd9f..7bfbd5a4ae4 100644 --- a/its/ruling/src/test/expected/jsts/expressionist.js/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/expressionist.js/javascript-S3776.json @@ -1,6 +1,5 @@ { "expressionist.js:test/parser.spec.js": [ -20, -363 +393 ] } diff --git a/its/ruling/src/test/expected/jsts/fireact/javascript-S3776.json b/its/ruling/src/test/expected/jsts/fireact/javascript-S3776.json index 808d8de6490..198053cbee9 100644 --- a/its/ruling/src/test/expected/jsts/fireact/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/fireact/javascript-S3776.json @@ -8,27 +8,7 @@ "fireact:src/components/Pagination/index.js": [ 4 ], -"fireact:src/components/templates/AccountTemplate/index.js": [ -22 -], -"fireact:src/pages/auth/accounts/PaymentList/index.js": [ -29 -], "fireact:src/pages/auth/accounts/Plans/index.js": [ -11, -103, -185 -], -"fireact:src/pages/auth/accounts/images/ImageList.js": [ -36 -], -"fireact:src/pages/auth/user/UpdateEmail/index.js": [ -45 -], -"fireact:src/pages/auth/user/UpdatePassword/index.js": [ -52 -], -"fireact:src/serviceWorker.js": [ -60 +11 ] } diff --git a/its/ruling/src/test/expected/jsts/jira-clone/javascript-S3776.json b/its/ruling/src/test/expected/jsts/jira-clone/javascript-S3776.json deleted file mode 100644 index 05d6d2aa704..00000000000 --- a/its/ruling/src/test/expected/jsts/jira-clone/javascript-S3776.json +++ /dev/null @@ -1,5 +0,0 @@ -{ -"jira-clone:client/src/shared/hooks/api/query.js": [ -8 -] -} diff --git a/its/ruling/src/test/expected/jsts/jquery/javascript-S3776.json b/its/ruling/src/test/expected/jsts/jquery/javascript-S3776.json index 405f506a9d3..4a5126fd57d 100644 --- a/its/ruling/src/test/expected/jsts/jquery/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/jquery/javascript-S3776.json @@ -1,28 +1,18 @@ { "jquery:build/tasks/build.js": [ -59 +59, +118 ], "jquery:src/ajax.js": [ 134, 192, -382 -], -"jquery:src/ajax/jsonp.js": [ -21 -], -"jquery:src/ajax/xhr.js": [ -20 +382, +714 ], "jquery:src/attributes/classes.js": [ 23, 60, -105 -], -"jquery:src/attributes/val.js": [ -10 -], -"jquery:src/callbacks.js": [ -36 +122 ], "jquery:src/core.js": [ 118 @@ -50,28 +40,18 @@ "jquery:src/data/Data.js": [ 104 ], -"jquery:src/deferred.js": [ -45, -343 -], -"jquery:src/dimensions.js": [ -10 -], "jquery:src/effects.js": [ 80, 249, -286, 448, -520, -572 +536 ], "jquery:src/event.js": [ 37, 106, 221, 294, -359, -519 +359 ], "jquery:src/event/trigger.js": [ 17 @@ -84,14 +64,15 @@ "jquery:src/manipulation/buildFragment.js": [ 12 ], -"jquery:src/offset.js": [ -173 -], "jquery:src/selector.js": [ -20 -], -"jquery:src/serialize.js": [ -15 +152, +681, +1045, +1147, +1240, +1332, +1397, +1557 ], "jquery:src/traversing.js": [ 38 diff --git a/its/ruling/src/test/expected/jsts/jshint/javascript-S3776.json b/its/ruling/src/test/expected/jsts/jshint/javascript-S3776.json index 34b4b448a95..6e8be44ef2b 100644 --- a/its/ruling/src/test/expected/jsts/jshint/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/jshint/javascript-S3776.json @@ -1,88 +1,54 @@ { -"jshint:src/cli.js": [ -260, -340, -451, -602 -], "jshint:src/jshint.js": [ 150, 218, -463, +552, 831, 929, -1494, 1539, -1721, -1757, 1811, -1845, 1878, -1977, -2000, 2055, -2374, -2499, -2529, 2658, -2727, -2773, 2809, -2938, 2974, 3007, 3124, 3241, -3290, 3344, 3417, 3464, -3641, 3700, -3821, -3877, -3916, -3944, +3945, 4128, -4293, +4136, +4169, 4311, 4507, 4599, -4669, 4702, -4751, 4843, 4998, -5238, -5262, 5288, -5334, 5395, 5451, 5500, 5604, -5756, -5777, 5827, -5882, 5916, -6042, -6143, -6256, -6528 +6144, +6256 ], "jshint:src/lex.js": [ 227, 391, -597, +424, 747, 1080, 1189, 1325, -1935 -], -"jshint:src/reporters/checkstyle.js": [ -5 +1935, +1941 ], "jshint:src/scope-manager.js": [ 295, diff --git a/its/ruling/src/test/expected/jsts/knockout/javascript-S3776.json b/its/ruling/src/test/expected/jsts/knockout/javascript-S3776.json index 6761e6a44d9..c803cee59e2 100644 --- a/its/ruling/src/test/expected/jsts/knockout/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/knockout/javascript-S3776.json @@ -1,26 +1,21 @@ { "knockout:src/binding/bindingAttributeSyntax.js": [ -30, -355, 388 ], "knockout:src/binding/defaultBindings/attr.js": [ 5 ], "knockout:src/binding/defaultBindings/checked.js": [ -5 -], -"knockout:src/binding/defaultBindings/event.js": [ 19 ], "knockout:src/binding/defaultBindings/ifIfnotWith.js": [ -4 +18 ], "knockout:src/binding/defaultBindings/options.js": [ 15 ], "knockout:src/binding/defaultBindings/textInput.js": [ -1 +50 ], "knockout:src/binding/defaultBindings/value.js": [ 2 @@ -32,53 +27,31 @@ 37 ], "knockout:src/binding/expressionRewriting.js": [ -46, -113 +46 ], "knockout:src/binding/selectExtensions.js": [ 23 ], -"knockout:src/components/componentBinding.js": [ -5 -], -"knockout:src/components/customElements.js": [ -1 -], -"knockout:src/components/loaderRegistry.js": [ -88 -], "knockout:src/subscribables/dependentObservable.js": [ 3, 426 ], "knockout:src/subscribables/observableArray.changeTracking.js": [ -2 +105 ], -"knockout:src/subscribables/subscribable.js": [ -108 +"knockout:src/subscribables/observableArray.js": [ +13 ], "knockout:src/tasks.js": [ -1 -], -"knockout:src/templating/jquery.tmpl/jqueryTmplTemplateEngine.js": [ -1 +35 ], "knockout:src/templating/templateSources.js": [ 83 ], "knockout:src/templating/templating.js": [ -17, -134, -172, 289 ], -"knockout:src/utils.domData.js": [ -2 -], -"knockout:src/utils.js": [ -1 -], "knockout:src/virtualElements.js": [ -1 +188 ] } diff --git a/its/ruling/src/test/expected/jsts/moose/typescript-S3776.json b/its/ruling/src/test/expected/jsts/moose/typescript-S3776.json deleted file mode 100644 index 88c62a22b51..00000000000 --- a/its/ruling/src/test/expected/jsts/moose/typescript-S3776.json +++ /dev/null @@ -1,8 +0,0 @@ -{ -"moose:renderer/components/FilesList/FilesList.tsx": [ -34 -], -"moose:renderer/components/Player/Player.tsx": [ -26 -] -} diff --git a/its/ruling/src/test/expected/jsts/mootools-core/javascript-S3776.json b/its/ruling/src/test/expected/jsts/mootools-core/javascript-S3776.json index 4144cc27e73..527eb567d3a 100644 --- a/its/ruling/src/test/expected/jsts/mootools-core/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/mootools-core/javascript-S3776.json @@ -1,25 +1,23 @@ { "mootools-core:Grunt/plugins/eslint/rules/mootools-indent.js": [ -62 +335, +450 ], "mootools-core:Source/Element/Element.js": [ 17, -187, -262 -], -"mootools-core:Source/Fx/Fx.CSS.js": [ -100 -], -"mootools-core:Source/Fx/Fx.Tween.js": [ -70 +232, +262, +949 ], "mootools-core:Source/Slick/Slick.Finder.js": [ -10 +27, +257, +512, +559, +595, +625 ], "mootools-core:Source/Slick/Slick.Parser.js": [ -9 -], -"mootools-core:Source/Utilities/JSON.js": [ -30 +106 ] } diff --git a/its/ruling/src/test/expected/jsts/ocanvas/javascript-S3776.json b/its/ruling/src/test/expected/jsts/ocanvas/javascript-S3776.json index f40935e1b85..62bd43a3ae9 100644 --- a/its/ruling/src/test/expected/jsts/ocanvas/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/ocanvas/javascript-S3776.json @@ -1,59 +1,54 @@ { "ocanvas:src/animation.js": [ -5 +202 ], "ocanvas:src/background.js": [ -4 +20 ], "ocanvas:src/core.js": [ 22 ], "ocanvas:src/displayobject.js": [ -4 -], -"ocanvas:src/displayobjects/ellipse.js": [ -4 +708, +826 ], "ocanvas:src/displayobjects/image.js": [ -4 -], -"ocanvas:src/displayobjects/line.js": [ -4 +73 ], "ocanvas:src/displayobjects/rectangle.js": [ -4 +172 ], "ocanvas:src/displayobjects/sprite.js": [ -4 -], -"ocanvas:src/displayobjects/text.js": [ -6 +52, +99 ], "ocanvas:src/draw.js": [ -4 +93 ], "ocanvas:src/events.js": [ -4 -], -"ocanvas:src/keyboard.js": [ -4 +98, +299 ], "ocanvas:src/mouse.js": [ -4 -], -"ocanvas:src/scenes.js": [ -4 +134 ], "ocanvas:src/style.js": [ -4 +11, +127, +313, +554, +617, +710 ], "ocanvas:src/tools.js": [ -4 +10, +94 ], "ocanvas:src/touch.js": [ -4 +96, +171 ], "ocanvas:src/utils.js": [ -1 +4 ] } diff --git a/its/ruling/src/test/expected/jsts/p5.js/javascript-S3776.json b/its/ruling/src/test/expected/jsts/p5.js/javascript-S3776.json index cdcf32d9cd8..970354539ad 100644 --- a/its/ruling/src/test/expected/jsts/p5.js/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/p5.js/javascript-S3776.json @@ -1,73 +1,43 @@ { -"p5.js:docs/preprocessor.js": [ -49 -], "p5.js:docs/yuidoc-p5-theme/assets/js/reference.js": [ 73, -461, -2189, -2312, -2542, -4119, -4402, -4534, -4623, -4863 -], -"p5.js:docs/yuidoc-p5-theme/assets/js/render.js": [ -1 +2340, +2755, +2827, +2988, +3153, +3257, +3457, +3579, +3931, +4136, +4716 ], "p5.js:lib/addons/p5.sound.js": [ -80, -268, -365, -742, -812, -1208, -1546, -1639, -3177, -3456, -4137, -4455, -4627, -4883, -5364, -5881, -6084, -6310, -7112, -7291, -7437, -7957, -8354, -8496, -8826, -9018, -9250, -9469, -9746, -10267, -10374, -10457, -10942, -11200, -11412, -12358, -12749 +379, +428, +759, +1353, +1943, +2495, +2589, +4327, +5958, +5993, +8142, +10320 ], "p5.js:src/color/p5.Color.js": [ 85, 805 ], "p5.js:src/core/error_helpers.js": [ -248, -399, -555, -631 +300 ], "p5.js:src/core/main.js": [ -36 +36, +230, +431 ], "p5.js:src/core/p5.Renderer.js": [ 211 @@ -81,13 +51,7 @@ "p5.js:src/core/rendering.js": [ 51 ], -"p5.js:src/core/shim.js": [ -47 -], "p5.js:src/dom/dom.js": [ -648, -768, -1288, 1775, 2021 ], @@ -102,18 +66,13 @@ 387, 522 ], -"p5.js:src/image/loading_displaying.js": [ -75, -153 -], "p5.js:src/io/files.js": [ -119, 391, +442, 1038, 1689 ], "p5.js:src/typography/p5.Font.js": [ -214, 382, 704, 804, @@ -123,13 +82,7 @@ 205 ], "p5.js:src/webgl/3d_primitives.js": [ -48, -126, 308, -745, -881, -1065, -1181, 1400, 1491, 1580 @@ -141,7 +94,6 @@ 621 ], "p5.js:src/webgl/loading.js": [ -101, 181, 351, 445 @@ -158,14 +110,7 @@ ], "p5.js:src/webgl/text.js": [ 61, -167, -624 -], -"p5.js:tasks/release/release-bower.js": [ -10 -], -"p5.js:test/test-reference.html": [ -98 +167 ], "p5.js:utils/sample-linter.js": [ 134 diff --git a/its/ruling/src/test/expected/jsts/paper.js/javascript-S3776.json b/its/ruling/src/test/expected/jsts/paper.js/javascript-S3776.json index 2e15af11721..c9baec54cfc 100644 --- a/its/ruling/src/test/expected/jsts/paper.js/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/paper.js/javascript-S3776.json @@ -1,10 +1,4 @@ { -"paper.js:gulp/typescript/typescript-definition-generator.js": [ -131 -], -"paper.js:src/anim/Tween.js": [ -218 -], "paper.js:src/basic/Line.js": [ 133 ], @@ -17,22 +11,16 @@ "paper.js:src/basic/Size.js": [ 95 ], -"paper.js:src/canvas/BlendMode.js": [ -13 -], "paper.js:src/core/Base.js": [ -25, 122, 180, 438, -520, -585 -], -"paper.js:src/core/PaperScope.js": [ -45 +520 ], "paper.js:src/core/PaperScript.js": [ -17 +134, +192, +454 ], "paper.js:src/event/Key.js": [ 92 @@ -60,15 +48,10 @@ 298, 349 ], -"paper.js:src/node/extend.js": [ -16 -], "paper.js:src/path/Curve.js": [ 701, -732, -848, 1433, -1524, +1561, 1733, 1768, 2027, @@ -77,19 +60,15 @@ 2262 ], "paper.js:src/path/CurveLocation.js": [ -401, -532 +401 ], "paper.js:src/path/Path.js": [ -302, +315, 384, -734, 1175, 1288, -1460, 1573, 1656, -2227, 2290, 2453, 2920 @@ -99,8 +78,10 @@ 309, 395, 536, +567, 779, 872, +916, 1239, 1382 ], @@ -116,29 +97,25 @@ "paper.js:src/style/Color.js": [ 63, 205, -265, 541, -857, -880, -902, -1210 +902 ], "paper.js:src/style/Style.js": [ -146 +163, +207 ], "paper.js:src/svg/SvgExport.js": [ 21, 202, -278 +286 ], "paper.js:src/svg/SvgImport.js": [ 62, 323, -572, -654 +572 ], "paper.js:src/tool/Tool.js": [ -286 +304 ], "paper.js:src/util/CollisionDetection.js": [ 143 @@ -148,7 +125,8 @@ 341 ], "paper.js:src/view/View.js": [ -25, -1033 +1133, +1219, +1313 ] } diff --git a/its/ruling/src/test/expected/jsts/postgraphql/javascript-S3776.json b/its/ruling/src/test/expected/jsts/postgraphql/javascript-S3776.json index 6353eac2b3a..83ab8729fdc 100644 --- a/its/ruling/src/test/expected/jsts/postgraphql/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/postgraphql/javascript-S3776.json @@ -1,8 +1,5 @@ { -"postgraphql:src/postgraphql/graphiql/src/components/PostGraphiQL.js": [ -108 -], "postgraphql:src/postgraphql/http/createPostGraphQLHttpRequestHandler.js": [ -67 +120 ] } diff --git a/its/ruling/src/test/expected/jsts/postgraphql/typescript-S3776.json b/its/ruling/src/test/expected/jsts/postgraphql/typescript-S3776.json index 9a18b9042ac..19370b2a476 100644 --- a/its/ruling/src/test/expected/jsts/postgraphql/typescript-S3776.json +++ b/its/ruling/src/test/expected/jsts/postgraphql/typescript-S3776.json @@ -1,19 +1,10 @@ { -"postgraphql:src/graphql/schema/connection/createConnectionGqlField.ts": [ -20 -], -"postgraphql:src/postgraphql/postgraphql.ts": [ -39 -], "postgraphql:src/postgraphql/schema/createPostGraphQLSchema.ts": [ 20 ], "postgraphql:src/postgraphql/withPostGraphQLContext.ts": [ 93 ], -"postgraphql:src/postgres/inventory/addPgCatalogToInventory.ts": [ -10 -], "postgraphql:src/postgres/inventory/paginator/PgPaginatorOrderingAttributes.ts": [ 41 ], diff --git a/its/ruling/src/test/expected/jsts/prototype/javascript-S3776.json b/its/ruling/src/test/expected/jsts/prototype/javascript-S3776.json index f1593acd37f..14407ecfd84 100644 --- a/its/ruling/src/test/expected/jsts/prototype/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/prototype/javascript-S3776.json @@ -3,28 +3,10 @@ 230 ], "prototype:src/prototype/dom/dom.js": [ -1 -], -"prototype:src/prototype/dom/event.js": [ -1 -], -"prototype:src/prototype/dom/form.js": [ -102 +2181 ], "prototype:src/prototype/dom/layout.js": [ 52, 1407 -], -"prototype:src/prototype/lang/array.js": [ -184 -], -"prototype:src/prototype/lang/function.js": [ -6 -], -"prototype:src/prototype/lang/string.js": [ -488 -], -"prototype:src/prototype/lang/template.js": [ -143 ] } diff --git a/its/ruling/src/test/expected/jsts/qunit/javascript-S3776.json b/its/ruling/src/test/expected/jsts/qunit/javascript-S3776.json index 0b83b4f42b6..4aa25515c46 100644 --- a/its/ruling/src/test/expected/jsts/qunit/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/qunit/javascript-S3776.json @@ -1,32 +1,21 @@ { "qunit:reporter/diff.js": [ 115, -407, 581, 739, 1021 ], "qunit:reporter/html.js": [ -39 -], -"qunit:reporter/urlparams.js": [ -4 +126, +192, +651, +795, +886 ], "qunit:src/assert.js": [ -266, -337 -], -"qunit:src/cli/run.js": [ -18 -], -"qunit:src/core/processing-queue.js": [ -160 +266 ], "qunit:src/core/stacktrace.js": [ 7 -], -"qunit:src/test.js": [ -266, -553 ] } diff --git a/its/ruling/src/test/expected/jsts/react-cloud-music/javascript-S3776.json b/its/ruling/src/test/expected/jsts/react-cloud-music/javascript-S3776.json index 1ea9577afb0..5ba0b762f40 100644 --- a/its/ruling/src/test/expected/jsts/react-cloud-music/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/react-cloud-music/javascript-S3776.json @@ -2,25 +2,7 @@ "react-cloud-music:config/webpack.config.js": [ 48 ], -"react-cloud-music:scripts/build.js": [ -122 -], -"react-cloud-music:src/application/SongList/index.jsx": [ -8 -], -"react-cloud-music:src/baseUI/scroll/index.jsx": [ -80 -], -"react-cloud-music:src/serviceWorker.js": [ -60 -], "react-cloud-music:ts-music/config/webpack.config.js": [ 55 -], -"react-cloud-music:ts-music/scripts/build.js": [ -132 -], -"react-cloud-music:ts-music/src/serviceWorker.js": [ -60 ] } diff --git a/its/ruling/src/test/expected/jsts/react-cloud-music/typescript-S3776.json b/its/ruling/src/test/expected/jsts/react-cloud-music/typescript-S3776.json deleted file mode 100644 index dbf39be8d9e..00000000000 --- a/its/ruling/src/test/expected/jsts/react-cloud-music/typescript-S3776.json +++ /dev/null @@ -1,5 +0,0 @@ -{ -"react-cloud-music:ts-music/src/baseUI/scroll/index.tsx": [ -64 -] -} diff --git a/its/ruling/src/test/expected/jsts/reddit-mobile/javascript-S3776.json b/its/ruling/src/test/expected/jsts/reddit-mobile/javascript-S3776.json index 058f79da027..dc9bc263d4e 100644 --- a/its/ruling/src/test/expected/jsts/reddit-mobile/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/reddit-mobile/javascript-S3776.json @@ -1,11 +1,5 @@ { -"reddit-mobile:assets/js/client.es6.js": [ -223 -], "reddit-mobile:index.js": [ 179 -], -"reddit-mobile:src/server/oauth.es6.js": [ -18 ] } diff --git a/its/ruling/src/test/expected/jsts/redux/javascript-S3776.json b/its/ruling/src/test/expected/jsts/redux/javascript-S3776.json deleted file mode 100644 index 3c68c1d2fc2..00000000000 --- a/its/ruling/src/test/expected/jsts/redux/javascript-S3776.json +++ /dev/null @@ -1,5 +0,0 @@ -{ -"redux:test/utils/combineReducers.spec.js": [ -6 -] -} diff --git a/its/ruling/src/test/expected/jsts/router/javascript-S3776.json b/its/ruling/src/test/expected/jsts/router/javascript-S3776.json index d9166b91eff..14bdecaacc1 100644 --- a/its/ruling/src/test/expected/jsts/router/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/router/javascript-S3776.json @@ -6,31 +6,18 @@ 5 ], "router:third_party/brick/brick-1.0.1.byob.js": [ -6, -96, -393, 685, 718, 761, -858, -891, +979, +1136, +1205, 1963, -2094, 2148, 2217, -2253, -2287, 2321, 2498, -2548, -2885, -3036, -3222, -3367, -3421, -3518, -3843, -4009 +3222 ], "router:third_party/route-recognizer.js": [ 445 diff --git a/its/ruling/src/test/expected/jsts/rxjs/typescript-S3776.json b/its/ruling/src/test/expected/jsts/rxjs/typescript-S3776.json index c75809a0545..31327ad7bf5 100644 --- a/its/ruling/src/test/expected/jsts/rxjs/typescript-S3776.json +++ b/its/ruling/src/test/expected/jsts/rxjs/typescript-S3776.json @@ -2,25 +2,11 @@ "rxjs:src/Subscription.ts": [ 63 ], -"rxjs:src/observable/BoundCallbackObservable.ts": [ -192, -231 -], -"rxjs:src/observable/BoundNodeCallbackObservable.ts": [ -171, -221 -], "rxjs:src/observable/GenerateObservable.ts": [ 203 ], -"rxjs:src/observable/PromiseObservable.ts": [ -50 -], "rxjs:src/observable/dom/AjaxObservable.ts": [ -301 -], -"rxjs:src/observable/dom/WebSocketSubject.ts": [ -156 +343 ], "rxjs:src/operator/groupBy.ts": [ 141 diff --git a/its/ruling/src/test/expected/jsts/searchkit/typescript-S3776.json b/its/ruling/src/test/expected/jsts/searchkit/typescript-S3776.json index 3215fb5eafe..08bea326ddb 100644 --- a/its/ruling/src/test/expected/jsts/searchkit/typescript-S3776.json +++ b/its/ruling/src/test/expected/jsts/searchkit/typescript-S3776.json @@ -1,7 +1,4 @@ { -"searchkit:packages/searchkit-client/src/components.tsx": [ -34 -], "searchkit:packages/searchkit-elastic-ui/src/Facets/RangeSliderFacet/index.tsx": [ 7 ], diff --git a/its/ruling/src/test/expected/jsts/sizzle/javascript-S3776.json b/its/ruling/src/test/expected/jsts/sizzle/javascript-S3776.json index e0287ffec0b..beea2d1a3fe 100644 --- a/its/ruling/src/test/expected/jsts/sizzle/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/sizzle/javascript-S3776.json @@ -1,8 +1,21 @@ { "sizzle:speed/speed.js": [ -9 +500 ], "sizzle:src/sizzle.js": [ -11 +11, +236, +606, +712, +956, +1012, +1366, +1405, +1794, +1894, +1992, +2085, +2151, +2316 ] } diff --git a/its/ruling/src/test/expected/jsts/snoode/javascript-S3776.json b/its/ruling/src/test/expected/jsts/snoode/javascript-S3776.json index e7d217d79e6..e586a764f86 100644 --- a/its/ruling/src/test/expected/jsts/snoode/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/snoode/javascript-S3776.json @@ -1,9 +1,6 @@ { "snoode:src/endpoints/v1.es6.js": [ -51, -221, -564, -1147, +248, 1199 ] } diff --git a/its/ruling/src/test/expected/jsts/sonar-web/javascript-S3776.json b/its/ruling/src/test/expected/jsts/sonar-web/javascript-S3776.json index ecc94136800..394d8ad8e8e 100644 --- a/its/ruling/src/test/expected/jsts/sonar-web/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/sonar-web/javascript-S3776.json @@ -1,20 +1,5 @@ { -"sonar-web:src/main/js/components/navigator/filters/ajax-select-filters.js": [ -239 -], -"sonar-web:src/main/js/components/navigator/filters/choice-filters.js": [ -273 -], -"sonar-web:src/main/js/components/source-viewer/source.js": [ -41 -], -"sonar-web:src/main/js/components/widgets/barchart.js": [ -31 -], -"sonar-web:src/main/js/widgets/old/base.js": [ -3 -], "sonar-web:src/main/js/widgets/old/widget.js": [ -40 +44 ] } diff --git a/its/ruling/src/test/expected/jsts/underscore/javascript-S3776.json b/its/ruling/src/test/expected/jsts/underscore/javascript-S3776.json index 0abc5eaba23..9370dae2636 100644 --- a/its/ruling/src/test/expected/jsts/underscore/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/underscore/javascript-S3776.json @@ -1,5 +1,8 @@ { "underscore:underscore.js": [ -6 +6, +570, +692, +1206 ] } diff --git a/its/ruling/src/test/expected/jsts/vuetify/javascript-S3776.json b/its/ruling/src/test/expected/jsts/vuetify/javascript-S3776.json index d53c694203b..c5b4faf8e3b 100644 --- a/its/ruling/src/test/expected/jsts/vuetify/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/vuetify/javascript-S3776.json @@ -1,14 +1,8 @@ { -"vuetify:eslint-local-rules.js": [ -9 -], "vuetify:packages/docs/src/components/app/Markdown.vue": [ 19 ], -"vuetify:packages/docs/src/examples/v-data-table/misc-server-side-paginate-and-sort.vue": [ -66 -], "vuetify:scripts/rules/jsx-curly-spacing.js": [ -124 +372 ] } diff --git a/its/ruling/src/test/expected/jsts/vuetify/typescript-S3776.json b/its/ruling/src/test/expected/jsts/vuetify/typescript-S3776.json index 1ca03495f03..8d64bc91397 100644 --- a/its/ruling/src/test/expected/jsts/vuetify/typescript-S3776.json +++ b/its/ruling/src/test/expected/jsts/vuetify/typescript-S3776.json @@ -3,34 +3,16 @@ 44 ], "vuetify:packages/api-generator/src/types.ts": [ -248, 307 ], -"vuetify:packages/docs/src/plugins/pwa.ts": [ -8 -], "vuetify:packages/docs/src/store/user.ts": [ 51 ], "vuetify:packages/docs/src/util/helpers.ts": [ -46, -124 -], -"vuetify:packages/docs/vite.config.ts": [ -30 -], -"vuetify:packages/vuetify/src/components/VAutocomplete/VAutocomplete.tsx": [ -259 -], -"vuetify:packages/vuetify/src/components/VBtn/VBtn.tsx": [ -132 -], -"vuetify:packages/vuetify/src/components/VCalendar/VCalendar.ts": [ -297 +46 ], "vuetify:packages/vuetify/src/components/VCalendar/mixins/calendar-with-events.ts": [ -159, -445 +159 ], "vuetify:packages/vuetify/src/components/VCalendar/mixins/mouse.ts": [ 42 @@ -51,56 +33,33 @@ 150 ], "vuetify:packages/vuetify/src/components/VCombobox/VCombobox.tsx": [ -107 +205 ], "vuetify:packages/vuetify/src/components/VDatePicker/VDatePickerDateTable.ts": [ 89 ], -"vuetify:packages/vuetify/src/components/VDialog/VDialog.tsx": [ -45 -], -"vuetify:packages/vuetify/src/components/VFileInput/VFileInput.tsx": [ -157 -], -"vuetify:packages/vuetify/src/components/VImg/VImg.tsx": [ -86 -], "vuetify:packages/vuetify/src/components/VList/VList.tsx": [ 194 ], "vuetify:packages/vuetify/src/components/VList/VListChildren.tsx": [ 37 ], -"vuetify:packages/vuetify/src/components/VNavigationDrawer/VNavigationDrawer.tsx": [ -94 -], "vuetify:packages/vuetify/src/components/VNavigationDrawer/touch.ts": [ 59, 97 ], "vuetify:packages/vuetify/src/components/VOverlay/locationStrategies.ts": [ -149 +218, +325 ], "vuetify:packages/vuetify/src/components/VOverlay/util/point.ts": [ 37 ], -"vuetify:packages/vuetify/src/components/VRangeSlider/VRangeSlider.tsx": [ -111 -], -"vuetify:packages/vuetify/src/components/VRating/VRating.tsx": [ -120 -], -"vuetify:packages/vuetify/src/components/VSelect/VSelect.tsx": [ -216 -], "vuetify:packages/vuetify/src/components/VSlideGroup/VSlideGroup.tsx": [ -82 +225 ], "vuetify:packages/vuetify/src/components/VSlider/VSliderThumb.tsx": [ -56 -], -"vuetify:packages/vuetify/src/components/VSlider/VSliderTrack.tsx": [ -35 +87 ], "vuetify:packages/vuetify/src/components/VTabs/VTab.tsx": [ 64 @@ -112,14 +71,8 @@ 204, 350 ], -"vuetify:packages/vuetify/src/components/VWindow/VWindowItem.tsx": [ -42 -], -"vuetify:packages/vuetify/src/components/transitions/createTransition.ts": [ -30 -], "vuetify:packages/vuetify/src/composables/display.ts": [ -145 +163 ], "vuetify:packages/vuetify/src/composables/filter.ts": [ 51 @@ -130,27 +83,11 @@ "vuetify:packages/vuetify/src/composables/group.ts": [ 217 ], -"vuetify:packages/vuetify/src/composables/icons.tsx": [ -179 -], "vuetify:packages/vuetify/src/composables/layout.ts": [ -267 -], -"vuetify:packages/vuetify/src/composables/location.ts": [ -31 -], -"vuetify:packages/vuetify/src/composables/nested/selectStrategies.ts": [ -138 -], -"vuetify:packages/vuetify/src/composables/router.tsx": [ -88 +283 ], "vuetify:packages/vuetify/src/composables/theme.ts": [ -208, -309 -], -"vuetify:packages/vuetify/src/composables/touch.ts": [ -72 +208 ], "vuetify:packages/vuetify/src/labs/VDataTable/composables/headers.ts": [ 37 @@ -158,16 +95,7 @@ "vuetify:packages/vuetify/src/labs/VDataTable/composables/sort.ts": [ 99 ], -"vuetify:packages/vuetify/src/services/goto/index.ts": [ -19 -], "vuetify:packages/vuetify/src/util/colorUtils.ts": [ 22 -], -"vuetify:packages/vuetify/src/util/console.ts": [ -83 -], -"vuetify:packages/vuetify/src/util/defineComponent.tsx": [ -43 ] } diff --git a/its/ruling/src/test/expected/jsts/watchtower.js/javascript-S3776.json b/its/ruling/src/test/expected/jsts/watchtower.js/javascript-S3776.json index 9348072993e..eeab766fa4b 100644 --- a/its/ruling/src/test/expected/jsts/watchtower.js/javascript-S3776.json +++ b/its/ruling/src/test/expected/jsts/watchtower.js/javascript-S3776.json @@ -3,8 +3,5 @@ 88, 253, 522 -], -"watchtower.js:test/watchgroup.spec.js": [ -74 ] } diff --git a/packages/jsts/tests/analysis/analyzer.test.ts b/packages/jsts/tests/analysis/analyzer.test.ts index d736b2c1ce7..f86e5f2dd35 100644 --- a/packages/jsts/tests/analysis/analyzer.test.ts +++ b/packages/jsts/tests/analysis/analyzer.test.ts @@ -589,7 +589,7 @@ describe('analyzeJSTS', () => { ], metrics: { classes: 1, - cognitiveComplexity: 1, + cognitiveComplexity: 0, commentLines: [2], complexity: 2, executableLines: [4], From 7681c83cc5d2414031980d80b2020ced7a940b54 Mon Sep 17 00:00:00 2001 From: yassin-kammoun-sonarsource Date: Mon, 12 Feb 2024 11:37:06 +0100 Subject: [PATCH 2/2] Update eslint-plugin-sonarjs to 0.24.0 --- package-lock.json | 16 ++++++++-------- package.json | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 379fa8653bc..bb31c549d8e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -68,7 +68,7 @@ "eslint-plugin-jsx-a11y": "6.8.0", "eslint-plugin-react": "7.33.2", "eslint-plugin-react-hooks": "4.6.0", - "eslint-plugin-sonarjs": "0.23.0", + "eslint-plugin-sonarjs": "0.24.0", "express": "4.18.2", "functional-red-black-tree": "1.0.1", "htmlparser2": "9.0.0", @@ -5629,12 +5629,12 @@ } }, "node_modules/eslint-plugin-sonarjs": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.23.0.tgz", - "integrity": "sha1-AmW62AHqIQlRZy7jyvvPXUVq2pY=", + "version": "0.24.0", + "resolved": "https://repox.jfrog.io/repox/api/npm/npm/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.24.0.tgz", + "integrity": "sha1-tZTMubHWEj7dPD/jpFtDkuFJMtc=", "inBundle": true, "engines": { - "node": ">=14" + "node": ">=16" }, "peerDependencies": { "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" @@ -16655,9 +16655,9 @@ "requires": {} }, "eslint-plugin-sonarjs": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.23.0.tgz", - "integrity": "sha1-AmW62AHqIQlRZy7jyvvPXUVq2pY=", + "version": "0.24.0", + "resolved": "https://repox.jfrog.io/repox/api/npm/npm/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.24.0.tgz", + "integrity": "sha1-tZTMubHWEj7dPD/jpFtDkuFJMtc=", "requires": {} }, "eslint-scope": { diff --git a/package.json b/package.json index 1ab28a4a8f4..f5dd395c6a6 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "eslint-plugin-jsx-a11y": "6.8.0", "eslint-plugin-react": "7.33.2", "eslint-plugin-react-hooks": "4.6.0", - "eslint-plugin-sonarjs": "0.23.0", + "eslint-plugin-sonarjs": "0.24.0", "express": "4.18.2", "functional-red-black-tree": "1.0.1", "htmlparser2": "9.0.0",