Commit 5d0eeb3
fix: SonarQube 26.2 compatibility (Jackson 3 / BSL LS 0.29.0-rc.1) (#417)
* fix: SonarQube 26.2 compatibility (Jackson 3 / BSL LS 0.29.0-rc.1)
- Update bsl-language-server dependency from 0.28.5 to 0.29.0-rc.1
- Fix shadow JAR merging of AutoConfiguration.imports to include
JacksonAutoConfiguration (required for JsonMapper bean)
- Update SDBLLexer token references for bsl-parser 0.31.0 API changes
- Add new tokens ADD (keyword) and UNIQUE (function) to highlighter
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: handle tokens with trailing line terminators in highlighter
Tokens from bsl-parser 0.31.0 may include trailing CR/LF characters
in their text. When computing the highlight range end offset, this
caused the offset to exceed the line length, resulting in
IllegalArgumentException from SonarQube.
Truncate token text at the first newline/CR to compute correct
single-line highlight ranges.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: merge LanguageTool language-module.properties in shadow JAR
DuplicatesStrategy.INCLUDE caused multiple language-module.properties
entries in the shadow JAR. Java classloader picked only the last one
(Russian), so TypoDiagnostic failed with 'en-US is not a language code
known to LanguageTool'.
Add PropertiesFileTransformer with Append merge strategy to properly
combine all LanguageTool language classes into a single properties file.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f117178 commit 5d0eeb3
3 files changed
Lines changed: 58 additions & 44 deletions
File tree
- src
- main/java/com/github/_1c_syntax/bsl/sonar
- test/java/com/github/_1c_syntax/bsl/sonar
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
146 | 156 | | |
147 | 157 | | |
148 | 158 | | |
Lines changed: 22 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
536 | | - | |
| 536 | + | |
| 537 | + | |
537 | 538 | | |
538 | 539 | | |
539 | 540 | | |
540 | 541 | | |
541 | 542 | | |
542 | | - | |
| 543 | + | |
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
546 | 547 | | |
547 | 548 | | |
548 | 549 | | |
549 | | - | |
| 550 | + | |
550 | 551 | | |
551 | 552 | | |
552 | 553 | | |
| |||
556 | 557 | | |
557 | 558 | | |
558 | 559 | | |
559 | | - | |
| 560 | + | |
560 | 561 | | |
561 | | - | |
562 | | - | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
563 | 566 | | |
564 | 567 | | |
565 | | - | |
| 568 | + | |
566 | 569 | | |
567 | | - | |
568 | | - | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
569 | 573 | | |
570 | 574 | | |
571 | 575 | | |
572 | 576 | | |
573 | 577 | | |
| 578 | + | |
| 579 | + | |
574 | 580 | | |
575 | 581 | | |
576 | 582 | | |
577 | | - | |
578 | | - | |
| 583 | + | |
579 | 584 | | |
580 | | - | |
| 585 | + | |
581 | 586 | | |
582 | | - | |
583 | 587 | | |
584 | | - | |
585 | 588 | | |
586 | 589 | | |
| 590 | + | |
| 591 | + | |
587 | 592 | | |
588 | | - | |
589 | 593 | | |
590 | 594 | | |
591 | 595 | | |
592 | 596 | | |
593 | | - | |
| 597 | + | |
594 | 598 | | |
595 | 599 | | |
596 | 600 | | |
597 | | - | |
598 | | - | |
| 601 | + | |
599 | 602 | | |
600 | 603 | | |
601 | 604 | | |
| |||
Lines changed: 24 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | | - | |
313 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
314 | 316 | | |
315 | | - | |
316 | 317 | | |
317 | 318 | | |
318 | | - | |
| 319 | + | |
319 | 320 | | |
320 | | - | |
321 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
322 | 324 | | |
323 | 325 | | |
324 | 326 | | |
325 | 327 | | |
326 | 328 | | |
| 329 | + | |
| 330 | + | |
327 | 331 | | |
328 | 332 | | |
329 | 333 | | |
330 | | - | |
| 334 | + | |
331 | 335 | | |
332 | | - | |
| 336 | + | |
333 | 337 | | |
334 | | - | |
335 | | - | |
| 338 | + | |
| 339 | + | |
336 | 340 | | |
| 341 | + | |
| 342 | + | |
337 | 343 | | |
338 | | - | |
339 | 344 | | |
340 | 345 | | |
341 | 346 | | |
342 | 347 | | |
| 348 | + | |
343 | 349 | | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
| 350 | + | |
349 | 351 | | |
350 | 352 | | |
351 | 353 | | |
| |||
405 | 407 | | |
406 | 408 | | |
407 | 409 | | |
408 | | - | |
| 410 | + | |
| 411 | + | |
409 | 412 | | |
410 | 413 | | |
411 | 414 | | |
| |||
479 | 482 | | |
480 | 483 | | |
481 | 484 | | |
482 | | - | |
483 | | - | |
484 | | - | |
| 485 | + | |
485 | 486 | | |
486 | 487 | | |
487 | 488 | | |
| |||
0 commit comments