Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable type-checking for Vue.js #4595

Merged
merged 12 commits into from
Mar 20, 2024
Merged
6 changes: 2 additions & 4 deletions its/plugin/sonarlint-tests/src/test/java/SonarLintTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void should_analyze_css() throws IOException {
}

@Test
void should_analyze_js_with_typed_rules() throws IOException {
void should_analyze_js_with_typed_rules_except_vue() throws IOException {
String fileName;
String content;
List<Issue> issues;
Expand All @@ -175,9 +175,7 @@ void should_analyze_js_with_typed_rules() throws IOException {
fileName = "file.vue";
content = Files.readString(TestUtils.projectDir("js-sonarlint-project").resolve(fileName));
issues = analyze(fileName, content);
assertThat(issues)
.extracting(Issue::getRuleKey)
.contains("javascript:S2870", "javascript:S3504");
assertThat(issues).extracting(Issue::getRuleKey).containsExactly("javascript:S3504");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"it-tools:src/ui/c-collapse/c-collapse.demo.vue": [
3
]
}
14 changes: 14 additions & 0 deletions its/ruling/src/test/expected/jsts/it-tools/javascript-S106.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"it-tools:scripts/build-locales-files.mjs": [
39,
43
],
"it-tools:scripts/create-tool.mjs": [
20,
25,
104
],
"it-tools:scripts/getLatestChangelog.mjs": [
6
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"it-tools:scripts/create-tool.mjs": [
102
],
"it-tools:scripts/shared/commits.mjs": [
29
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"it-tools:scripts/build-locales-files.mjs": [
6
]
}
38 changes: 38 additions & 0 deletions its/ruling/src/test/expected/jsts/it-tools/javascript-S1451.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"it-tools:scripts/build-locales-files.mjs": [
0
],
"it-tools:scripts/create-tool.mjs": [
0
],
"it-tools:scripts/getLatestChangelog.mjs": [
0
],
"it-tools:scripts/release.mjs": [
0
],
"it-tools:scripts/shared/changelog.mjs": [
0
],
"it-tools:scripts/shared/commits.mjs": [
0
],
"it-tools:src/tools/text-diff/text-diff.vue": [
0
],
"it-tools:src/ui/c-card/c-card.demo.vue": [
0
],
"it-tools:src/ui/c-collapse/c-collapse.demo.vue": [
0
],
"it-tools:src/ui/c-file-upload/c-file-upload.demo.vue": [
0
],
"it-tools:src/ui/c-modal-value/c-modal-value.demo.vue": [
0
],
"it-tools:src/ui/c-text-copyable/c-text-copyable.demo.vue": [
0
]
}
24 changes: 24 additions & 0 deletions its/ruling/src/test/expected/jsts/it-tools/javascript-S1537.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"it-tools:scripts/build-locales-files.mjs": [
30,
32,
51,
52,
60
],
"it-tools:scripts/create-tool.mjs": [
43,
61,
74,
96
],
"it-tools:scripts/release.mjs": [
31,
32
],
"it-tools:scripts/shared/commits.mjs": [
15,
32,
39
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"it-tools:scripts/shared/commits.mjs": [
21,
39
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"it-tools:scripts/shared/commits.mjs": [
28
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"it-tools:scripts/create-tool.mjs": [
15,
100
],
"it-tools:scripts/shared/commits.mjs": [
20
]
}
15 changes: 15 additions & 0 deletions its/ruling/src/test/expected/jsts/it-tools/javascript-S3798.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"it-tools:scripts/build-locales-files.mjs": [
5,
19,
24
],
"it-tools:scripts/shared/changelog.mjs": [
5
],
"it-tools:scripts/shared/commits.mjs": [
23,
36,
43
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"it-tools:scripts/shared/commits.mjs": [
26
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"it-tools:scripts/create-tool.mjs": [
9
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"it-tools:scripts/shared/commits.mjs": [
26
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"it-tools:scripts/build-locales-files.mjs": [
40
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"it-tools:src/tools/json-diff/diff-viewer/diff-viewer.models.tsx": [
13
],
"it-tools:src/tools/uuid-generator/uuid-generator.vue": [
27
]
}
64 changes: 64 additions & 0 deletions its/ruling/src/test/expected/jsts/it-tools/typescript-S103.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"it-tools:src/modules/command-palette/command-palette.vue": [
134
],
"it-tools:src/tools/ascii-text-drawer/ascii-text-drawer.vue": [
40
],
"it-tools:src/tools/date-time-converter/date-time-converter.models.ts": [
18
],
"it-tools:src/tools/emoji-picker/emoji-card.vue": [
33,
36
],
"it-tools:src/tools/mac-address-generator/mac-adress-generator.models.ts": [
11
],
"it-tools:src/tools/otp-code-generator-and-validator/token-display.vue": [
33
],
"it-tools:src/tools/password-strength-analyser/index.ts": [
9
],
"it-tools:src/tools/password-strength-analyser/password-strength-analyser.vue": [
59
],
"it-tools:src/tools/safelink-decoder/safelink-decoder.service.test.ts": [
8,
12
],
"it-tools:src/tools/text-to-binary/text-to-binary.vue": [
24,
25,
34,
35
],
"it-tools:src/tools/text-to-unicode/text-to-unicode.service.test.ts": [
8,
16
],
"it-tools:src/tools/text-to-unicode/text-to-unicode.vue": [
16,
17,
27
],
"it-tools:src/ui/c-input-text/c-input-text.demo.vue": [
6,
22,
64,
70
],
"it-tools:src/ui/c-input-text/c-input-text.vue": [
67
],
"it-tools:src/ui/c-select/c-select.vue": [
154
],
"it-tools:src/ui/c-table/c-table.vue": [
5
],
"it-tools:unocss.config.ts": [
22
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"it-tools:src/tools/json-diff/diff-viewer/diff-viewer.models.tsx": [
115
]
}
Loading
Loading