File tree 7 files changed +22
-7
lines changed
src/main/java/org/sonar/plugins/javascript/bridge
sonar-javascript-plugin/src
main/java/org/sonar/plugins/javascript
test/java/org/sonar/plugins/javascript
7 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 75
75
<dependency >
76
76
<groupId >org.java-websocket</groupId >
77
77
<artifactId >Java-WebSocket</artifactId >
78
- <version >1.5.4 </version >
78
+ <version >1.5.7 </version >
79
79
</dependency >
80
80
</dependencies >
81
81
<build >
209
209
</plugin >
210
210
</plugins >
211
211
</build >
212
+ <repositories >
213
+ <repository >
214
+ <id >maven_central</id >
215
+ <name >Maven Central</name >
216
+ <url >https://repo.maven.apache.org/maven2/</url >
217
+ </repository >
218
+ </repositories >
212
219
</project >
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class JdkHttp implements Http {
43
43
private final HttpClient client ;
44
44
45
45
JdkHttp () {
46
- this .client = HttpClient .newBuilder ().build ();
46
+ this .client = HttpClient .newBuilder ().version ( HttpClient . Version . HTTP_1_1 ). build ();
47
47
}
48
48
49
49
@ Override
Original file line number Diff line number Diff line change 42
42
import org .sonar .plugins .javascript .bridge .BundleImpl ;
43
43
import org .sonar .plugins .javascript .bridge .EmbeddedNode ;
44
44
import org .sonar .plugins .javascript .bridge .Environment ;
45
+ import org .sonar .plugins .javascript .bridge .JSWebSocketClient ;
45
46
import org .sonar .plugins .javascript .bridge .NodeDeprecationWarning ;
46
47
import org .sonar .plugins .javascript .bridge .RulesBundles ;
47
48
import org .sonar .plugins .javascript .external .TslintReportSensor ;
@@ -165,7 +166,8 @@ public void define(Context context) {
165
166
YamlSensor .class ,
166
167
HtmlSensor .class ,
167
168
EmbeddedNode .class ,
168
- Environment .class
169
+ Environment .class ,
170
+ JSWebSocketClient .class
169
171
);
170
172
171
173
context .addExtensions (
Original file line number Diff line number Diff line change 36
36
37
37
class JavaScriptPluginTest {
38
38
39
- private static final int BASE_EXTENSIONS = 35 ;
39
+ private static final int BASE_EXTENSIONS = 36 ;
40
40
private static final int SCANNER_EXTENSIONS = 10 ;
41
41
private static final int SONARLINT_ADDITIONAL_EXTENSIONS = 3 ;
42
42
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ void test_no_file_to_analyze() {
252
252
}
253
253
254
254
@ Test
255
- void failed_server_should_log_error_with_css () throws IOException {
255
+ void failed_server_should_log_error_with_css () throws IOException , InterruptedException {
256
256
doThrow (new NodeCommandException ("Exception Message" ))
257
257
.when (bridgeServerMock )
258
258
.startServerLazily (any ());
Original file line number Diff line number Diff line change 27
27
import static org .mockito .Mockito .times ;
28
28
import static org .mockito .Mockito .verify ;
29
29
import static org .mockito .Mockito .when ;
30
- import static org .sonar .plugins .javascript .analysis .JsTsSensorTest .PLUGIN_VERSION ;
30
+
31
+ //import static org.sonar.plugins.javascript.analysis.JsTsSensorTest.PLUGIN_VERSION;
31
32
32
33
import com .google .gson .Gson ;
33
34
import java .io .File ;
@@ -135,7 +136,7 @@ void setUp() throws Exception {
135
136
// reset is required as this static value might be set by another test
136
137
PluginInfo .setUcfgPluginVersion (null );
137
138
// this is required to avoid the test to use real plugin version from the manifest
138
- PluginInfo .setVersion (PLUGIN_VERSION );
139
+ // PluginInfo.setVersion(PLUGIN_VERSION);
139
140
140
141
// Avoid shortpaths on windows
141
142
baseDir = baseDir .toRealPath ();
Original file line number Diff line number Diff line change 17
17
<groupId >${project.groupId} </groupId >
18
18
<artifactId >bridge</artifactId >
19
19
</dependency >
20
+ <dependency >
21
+ <groupId >org.java-websocket</groupId >
22
+ <artifactId >Java-WebSocket</artifactId >
23
+ <version >1.5.7</version >
24
+ </dependency >
20
25
<dependency >
21
26
<groupId >org.sonarsource.api.plugin</groupId >
22
27
<artifactId >sonar-plugin-api</artifactId >
You can’t perform that action at this time.
0 commit comments