forked from konveyor/analyzer-lsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo-output.yaml
784 lines (783 loc) · 82 KB
/
demo-output.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
- name: konveyor-analysis
tags:
- Backend=Golang
- Infra=Kubernetes
- Java
- Language=Golang
- License=Apache
violations:
chain-pom-001:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>ch.qos.logback</groupId><artifactId>logback-classic</artifactId><version>1.1.7</version>
codeSnip: "108 \t\t\t<artifactId>hibernate-entitymanager</artifactId>\n109 \t\t\t<version>${hibernate.version}</version>\n110 \t\t</dependency>\n111 \t\t<dependency>\n112 \t\t\t<groupId>org.hibernate.validator</groupId>\n113 \t\t\t<artifactId>hibernate-validator</artifactId>\n114 \t\t\t<version>${hibernate-validator.version}</version>\n115 \t\t</dependency>\n116 \t\t<dependency>\n117 \t\t\t<groupId>ch.qos.logback</groupId>\n118 \t\t\t<artifactId>logback-classic</artifactId>\n119 \t\t\t<version>1.1.7</version>\n120 \t\t</dependency>\n121 \t\t<dependency>\n122 \t\t\t<groupId>com.oracle.database.jdbc</groupId>\n123 \t\t\t<artifactId>ojdbc8</artifactId>\n124 \t\t\t<version>21.1.0.0</version>\n125 \t\t</dependency>\n126 \t\t<dependency>\n127 \t\t\t<groupId>org.postgresql</groupId>\n128 \t\t\t<artifactId>postgresql</artifactId>"
lineNumber: 117
variables:
data: dependency
innerText: "\n\t\t\tch.qos.logback\n\t\t\tlogback-classic\n\t\t\t1.1.7\n\t\t"
matchingXML: <groupId>ch.qos.logback</groupId><artifactId>logback-classic</artifactId><version>1.1.7</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-core</artifactId>
codeSnip: "59 \t</dependencyManagement>\n60 \t<dependencies>\n61 \t\t<dependency>\n62 \t\t\t<groupId>org.apache.tomcat</groupId>\n63 \t\t\t<artifactId>tomcat-servlet-api</artifactId>\n64 \t\t\t<version>${tomcat.version}</version>\n65 \t\t\t<scope>provided</scope>\n66 \t\t</dependency>\n67 \t\t<dependency>\n68 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n69 \t\t\t<artifactId>jackson-core</artifactId>\n70 \t\t</dependency>\n71 \t\t<dependency>\n72 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n73 \t\t\t<artifactId>jackson-databind</artifactId>\n74 \t\t</dependency>\n75 \t\t<dependency>\n76 \t\t\t<groupId>org.springframework.data</groupId>\n77 \t\t\t<artifactId>spring-data-jpa</artifactId>\n78 \t\t</dependency>\n79 "
lineNumber: 68
variables:
data: dependency
innerText: "\n\t\t\tcom.fasterxml.jackson.core\n\t\t\tjackson-core\n\t\t"
matchingXML: <groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-core</artifactId>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-databind</artifactId>
codeSnip: "63 \t\t\t<artifactId>tomcat-servlet-api</artifactId>\n64 \t\t\t<version>${tomcat.version}</version>\n65 \t\t\t<scope>provided</scope>\n66 \t\t</dependency>\n67 \t\t<dependency>\n68 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n69 \t\t\t<artifactId>jackson-core</artifactId>\n70 \t\t</dependency>\n71 \t\t<dependency>\n72 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n73 \t\t\t<artifactId>jackson-databind</artifactId>\n74 \t\t</dependency>\n75 \t\t<dependency>\n76 \t\t\t<groupId>org.springframework.data</groupId>\n77 \t\t\t<artifactId>spring-data-jpa</artifactId>\n78 \t\t</dependency>\n79 \n80 \t\t<dependency>\n81 \t\t\t<groupId>org.springframework</groupId>\n82 \t\t\t<artifactId>spring-jdbc</artifactId>\n83 \t\t\t<version>${spring-framework.version}</version>"
lineNumber: 72
variables:
data: dependency
innerText: "\n\t\t\tcom.fasterxml.jackson.core\n\t\t\tjackson-databind\n\t\t"
matchingXML: <groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-databind</artifactId>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>com.fasterxml.jackson</groupId><artifactId>jackson-bom</artifactId><version>${jackson.version}</version><scope>import</scope><type>pom</type>
codeSnip: "36 \t\t\t<id>demo-config</id>\n37 \t\t\t<name>Azure DevOps</name>\n38 \t\t\t<url>https://pkgs.dev.azure.com/ShawnHurley21/demo-config-utils/_packaging/demo-config/maven/v1</url>\n39 \t\t</repository>\n40 \t</repositories>\n41 \n42 \t<dependencyManagement>\n43 \t\t<dependencies>\n44 \t\t\t<dependency>\n45 \t\t\t\t<groupId>com.fasterxml.jackson</groupId>\n46 \t\t\t\t<artifactId>jackson-bom</artifactId>\n47 \t\t\t\t<version>${jackson.version}</version>\n48 \t\t\t\t<scope>import</scope>\n49 \t\t\t\t<type>pom</type>\n50 \t\t\t</dependency>\n51 \t\t\t<dependency>\n52 \t\t\t\t<groupId>org.springframework.data</groupId>\n53 \t\t\t\t<artifactId>spring-data-bom</artifactId>\n54 \t\t\t\t<version>${spring-data.version}</version>\n55 \t\t\t\t<scope>import</scope>\n56 \t\t\t\t<type>pom</type>"
lineNumber: 45
variables:
data: dependency
innerText: "\n\t\t\t\tcom.fasterxml.jackson\n\t\t\t\tjackson-bom\n\t\t\t\t${jackson.version}\n\t\t\t\timport\n\t\t\t\tpom\n\t\t\t"
matchingXML: <groupId>com.fasterxml.jackson</groupId><artifactId>jackson-bom</artifactId><version>${jackson.version}</version><scope>import</scope><type>pom</type>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>com.oracle.database.jdbc</groupId><artifactId>ojdbc8</artifactId><version>21.1.0.0</version>
codeSnip: "113 \t\t\t<artifactId>hibernate-validator</artifactId>\n114 \t\t\t<version>${hibernate-validator.version}</version>\n115 \t\t</dependency>\n116 \t\t<dependency>\n117 \t\t\t<groupId>ch.qos.logback</groupId>\n118 \t\t\t<artifactId>logback-classic</artifactId>\n119 \t\t\t<version>1.1.7</version>\n120 \t\t</dependency>\n121 \t\t<dependency>\n122 \t\t\t<groupId>com.oracle.database.jdbc</groupId>\n123 \t\t\t<artifactId>ojdbc8</artifactId>\n124 \t\t\t<version>21.1.0.0</version>\n125 \t\t</dependency>\n126 \t\t<dependency>\n127 \t\t\t<groupId>org.postgresql</groupId>\n128 \t\t\t<artifactId>postgresql</artifactId>\n129 \t\t\t<version>42.2.23</version>\n130 \t\t</dependency>\n131 \t\t<!-- Corporate libraries -->\n132 \t\t<dependency>\n133 \t\t\t<groupId>io.konveyor.demo</groupId>"
lineNumber: 122
variables:
data: dependency
innerText: "\n\t\t\tcom.oracle.database.jdbc\n\t\t\tojdbc8\n\t\t\t21.1.0.0\n\t\t"
matchingXML: <groupId>com.oracle.database.jdbc</groupId><artifactId>ojdbc8</artifactId><version>21.1.0.0</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>io.konveyor.demo</groupId><artifactId>config-utils</artifactId><version>1.0.0</version>
codeSnip: "124 \t\t\t<version>21.1.0.0</version>\n125 \t\t</dependency>\n126 \t\t<dependency>\n127 \t\t\t<groupId>org.postgresql</groupId>\n128 \t\t\t<artifactId>postgresql</artifactId>\n129 \t\t\t<version>42.2.23</version>\n130 \t\t</dependency>\n131 \t\t<!-- Corporate libraries -->\n132 \t\t<dependency>\n133 \t\t\t<groupId>io.konveyor.demo</groupId>\n134 \t\t\t<artifactId>config-utils</artifactId>\n135 \t\t\t<version>1.0.0</version>\n136 \t\t</dependency>\n137 \n138 \t</dependencies>\n139 \t<build>\n140 \t\t<plugins>\n141 \t\t\t<plugin>\n142 \t\t\t\t<groupId>org.apache.maven.plugins</groupId>\n143 \t\t\t\t<artifactId>maven-compiler-plugin</artifactId>\n144 \t\t\t\t<version>${maven-compiler-plugin.version}</version>"
lineNumber: 133
variables:
data: dependency
innerText: "\n\t\t\tio.konveyor.demo\n\t\t\tconfig-utils\n\t\t\t1.0.0\n\t\t"
matchingXML: <groupId>io.konveyor.demo</groupId><artifactId>config-utils</artifactId><version>1.0.0</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>org.apache.tomcat</groupId><artifactId>tomcat-jdbc</artifactId><version>${tomcat.version}</version><scope>runtime</scope>
codeSnip: " 92 \t\t\t<artifactId>spring-web</artifactId>\n 93 \t\t\t<version>${spring-framework.version}</version>\n 94 \t\t</dependency>\n 95 \t\t<dependency>\n 96 \t\t\t<groupId>org.springframework.boot</groupId>\n 97 \t\t\t<artifactId>spring-boot-starter-actuator</artifactId>\n 98 \t\t\t<version>2.5.0</version>\n 99 \t\t</dependency>\n100 \t\t<dependency>\n101 \t\t\t<groupId>org.apache.tomcat</groupId>\n102 \t\t\t<artifactId>tomcat-jdbc</artifactId>\n103 \t\t\t<version>${tomcat.version}</version>\n104 \t\t\t<scope>runtime</scope>\n105 \t\t</dependency>\n106 \t\t<dependency>\n107 \t\t\t<groupId>org.hibernate</groupId>\n108 \t\t\t<artifactId>hibernate-entitymanager</artifactId>\n109 \t\t\t<version>${hibernate.version}</version>\n110 \t\t</dependency>\n111 \t\t<dependency>\n112 \t\t\t<groupId>org.hibernate.validator</groupId>"
lineNumber: 101
variables:
data: dependency
innerText: "\n\t\t\torg.apache.tomcat\n\t\t\ttomcat-jdbc\n\t\t\t${tomcat.version}\n\t\t\truntime\n\t\t"
matchingXML: <groupId>org.apache.tomcat</groupId><artifactId>tomcat-jdbc</artifactId><version>${tomcat.version}</version><scope>runtime</scope>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>org.apache.tomcat</groupId><artifactId>tomcat-servlet-api</artifactId><version>${tomcat.version}</version><scope>provided</scope>
codeSnip: "53 \t\t\t\t<artifactId>spring-data-bom</artifactId>\n54 \t\t\t\t<version>${spring-data.version}</version>\n55 \t\t\t\t<scope>import</scope>\n56 \t\t\t\t<type>pom</type>\n57 \t\t\t</dependency>\n58 \t\t</dependencies>\n59 \t</dependencyManagement>\n60 \t<dependencies>\n61 \t\t<dependency>\n62 \t\t\t<groupId>org.apache.tomcat</groupId>\n63 \t\t\t<artifactId>tomcat-servlet-api</artifactId>\n64 \t\t\t<version>${tomcat.version}</version>\n65 \t\t\t<scope>provided</scope>\n66 \t\t</dependency>\n67 \t\t<dependency>\n68 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n69 \t\t\t<artifactId>jackson-core</artifactId>\n70 \t\t</dependency>\n71 \t\t<dependency>\n72 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n73 \t\t\t<artifactId>jackson-databind</artifactId>"
lineNumber: 62
variables:
data: dependency
innerText: "\n\t\t\torg.apache.tomcat\n\t\t\ttomcat-servlet-api\n\t\t\t${tomcat.version}\n\t\t\tprovided\n\t\t"
matchingXML: <groupId>org.apache.tomcat</groupId><artifactId>tomcat-servlet-api</artifactId><version>${tomcat.version}</version><scope>provided</scope>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>org.hibernate.validator</groupId><artifactId>hibernate-validator</artifactId><version>${hibernate-validator.version}</version>
codeSnip: "103 \t\t\t<version>${tomcat.version}</version>\n104 \t\t\t<scope>runtime</scope>\n105 \t\t</dependency>\n106 \t\t<dependency>\n107 \t\t\t<groupId>org.hibernate</groupId>\n108 \t\t\t<artifactId>hibernate-entitymanager</artifactId>\n109 \t\t\t<version>${hibernate.version}</version>\n110 \t\t</dependency>\n111 \t\t<dependency>\n112 \t\t\t<groupId>org.hibernate.validator</groupId>\n113 \t\t\t<artifactId>hibernate-validator</artifactId>\n114 \t\t\t<version>${hibernate-validator.version}</version>\n115 \t\t</dependency>\n116 \t\t<dependency>\n117 \t\t\t<groupId>ch.qos.logback</groupId>\n118 \t\t\t<artifactId>logback-classic</artifactId>\n119 \t\t\t<version>1.1.7</version>\n120 \t\t</dependency>\n121 \t\t<dependency>\n122 \t\t\t<groupId>com.oracle.database.jdbc</groupId>\n123 \t\t\t<artifactId>ojdbc8</artifactId>"
lineNumber: 112
variables:
data: dependency
innerText: "\n\t\t\torg.hibernate.validator\n\t\t\thibernate-validator\n\t\t\t${hibernate-validator.version}\n\t\t"
matchingXML: <groupId>org.hibernate.validator</groupId><artifactId>hibernate-validator</artifactId><version>${hibernate-validator.version}</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>org.hibernate</groupId><artifactId>hibernate-entitymanager</artifactId><version>${hibernate.version}</version>
codeSnip: " 98 \t\t\t<version>2.5.0</version>\n 99 \t\t</dependency>\n100 \t\t<dependency>\n101 \t\t\t<groupId>org.apache.tomcat</groupId>\n102 \t\t\t<artifactId>tomcat-jdbc</artifactId>\n103 \t\t\t<version>${tomcat.version}</version>\n104 \t\t\t<scope>runtime</scope>\n105 \t\t</dependency>\n106 \t\t<dependency>\n107 \t\t\t<groupId>org.hibernate</groupId>\n108 \t\t\t<artifactId>hibernate-entitymanager</artifactId>\n109 \t\t\t<version>${hibernate.version}</version>\n110 \t\t</dependency>\n111 \t\t<dependency>\n112 \t\t\t<groupId>org.hibernate.validator</groupId>\n113 \t\t\t<artifactId>hibernate-validator</artifactId>\n114 \t\t\t<version>${hibernate-validator.version}</version>\n115 \t\t</dependency>\n116 \t\t<dependency>\n117 \t\t\t<groupId>ch.qos.logback</groupId>\n118 \t\t\t<artifactId>logback-classic</artifactId>"
lineNumber: 107
variables:
data: dependency
innerText: "\n\t\t\torg.hibernate\n\t\t\thibernate-entitymanager\n\t\t\t${hibernate.version}\n\t\t"
matchingXML: <groupId>org.hibernate</groupId><artifactId>hibernate-entitymanager</artifactId><version>${hibernate.version}</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>org.postgresql</groupId><artifactId>postgresql</artifactId><version>42.2.23</version>
codeSnip: "118 \t\t\t<artifactId>logback-classic</artifactId>\n119 \t\t\t<version>1.1.7</version>\n120 \t\t</dependency>\n121 \t\t<dependency>\n122 \t\t\t<groupId>com.oracle.database.jdbc</groupId>\n123 \t\t\t<artifactId>ojdbc8</artifactId>\n124 \t\t\t<version>21.1.0.0</version>\n125 \t\t</dependency>\n126 \t\t<dependency>\n127 \t\t\t<groupId>org.postgresql</groupId>\n128 \t\t\t<artifactId>postgresql</artifactId>\n129 \t\t\t<version>42.2.23</version>\n130 \t\t</dependency>\n131 \t\t<!-- Corporate libraries -->\n132 \t\t<dependency>\n133 \t\t\t<groupId>io.konveyor.demo</groupId>\n134 \t\t\t<artifactId>config-utils</artifactId>\n135 \t\t\t<version>1.0.0</version>\n136 \t\t</dependency>\n137 \n138 \t</dependencies>"
lineNumber: 127
variables:
data: dependency
innerText: "\n\t\t\torg.postgresql\n\t\t\tpostgresql\n\t\t\t42.2.23\n\t\t"
matchingXML: <groupId>org.postgresql</groupId><artifactId>postgresql</artifactId><version>42.2.23</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId><version>2.5.0</version>
codeSnip: " 87 \t\t\t<artifactId>spring-webmvc</artifactId>\n 88 \t\t\t<version>${spring-framework.version}</version>\n 89 \t\t</dependency>\n 90 \t\t<dependency>\n 91 \t\t\t<groupId>org.springframework</groupId>\n 92 \t\t\t<artifactId>spring-web</artifactId>\n 93 \t\t\t<version>${spring-framework.version}</version>\n 94 \t\t</dependency>\n 95 \t\t<dependency>\n 96 \t\t\t<groupId>org.springframework.boot</groupId>\n 97 \t\t\t<artifactId>spring-boot-starter-actuator</artifactId>\n 98 \t\t\t<version>2.5.0</version>\n 99 \t\t</dependency>\n100 \t\t<dependency>\n101 \t\t\t<groupId>org.apache.tomcat</groupId>\n102 \t\t\t<artifactId>tomcat-jdbc</artifactId>\n103 \t\t\t<version>${tomcat.version}</version>\n104 \t\t\t<scope>runtime</scope>\n105 \t\t</dependency>\n106 \t\t<dependency>\n107 \t\t\t<groupId>org.hibernate</groupId>"
lineNumber: 96
variables:
data: dependency
innerText: "\n\t\t\torg.springframework.boot\n\t\t\tspring-boot-starter-actuator\n\t\t\t2.5.0\n\t\t"
matchingXML: <groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId><version>2.5.0</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>org.springframework.data</groupId><artifactId>spring-data-bom</artifactId><version>${spring-data.version}</version><scope>import</scope><type>pom</type>
codeSnip: "43 \t\t<dependencies>\n44 \t\t\t<dependency>\n45 \t\t\t\t<groupId>com.fasterxml.jackson</groupId>\n46 \t\t\t\t<artifactId>jackson-bom</artifactId>\n47 \t\t\t\t<version>${jackson.version}</version>\n48 \t\t\t\t<scope>import</scope>\n49 \t\t\t\t<type>pom</type>\n50 \t\t\t</dependency>\n51 \t\t\t<dependency>\n52 \t\t\t\t<groupId>org.springframework.data</groupId>\n53 \t\t\t\t<artifactId>spring-data-bom</artifactId>\n54 \t\t\t\t<version>${spring-data.version}</version>\n55 \t\t\t\t<scope>import</scope>\n56 \t\t\t\t<type>pom</type>\n57 \t\t\t</dependency>\n58 \t\t</dependencies>\n59 \t</dependencyManagement>\n60 \t<dependencies>\n61 \t\t<dependency>\n62 \t\t\t<groupId>org.apache.tomcat</groupId>\n63 \t\t\t<artifactId>tomcat-servlet-api</artifactId>"
lineNumber: 52
variables:
data: dependency
innerText: "\n\t\t\t\torg.springframework.data\n\t\t\t\tspring-data-bom\n\t\t\t\t${spring-data.version}\n\t\t\t\timport\n\t\t\t\tpom\n\t\t\t"
matchingXML: <groupId>org.springframework.data</groupId><artifactId>spring-data-bom</artifactId><version>${spring-data.version}</version><scope>import</scope><type>pom</type>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>org.springframework.data</groupId><artifactId>spring-data-jpa</artifactId>
codeSnip: "67 \t\t<dependency>\n68 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n69 \t\t\t<artifactId>jackson-core</artifactId>\n70 \t\t</dependency>\n71 \t\t<dependency>\n72 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n73 \t\t\t<artifactId>jackson-databind</artifactId>\n74 \t\t</dependency>\n75 \t\t<dependency>\n76 \t\t\t<groupId>org.springframework.data</groupId>\n77 \t\t\t<artifactId>spring-data-jpa</artifactId>\n78 \t\t</dependency>\n79 \n80 \t\t<dependency>\n81 \t\t\t<groupId>org.springframework</groupId>\n82 \t\t\t<artifactId>spring-jdbc</artifactId>\n83 \t\t\t<version>${spring-framework.version}</version>\n84 \t\t</dependency>\n85 \t\t<dependency>\n86 \t\t\t<groupId>org.springframework</groupId>\n87 \t\t\t<artifactId>spring-webmvc</artifactId>"
lineNumber: 76
variables:
data: dependency
innerText: "\n\t\t\torg.springframework.data\n\t\t\tspring-data-jpa\n\t\t"
matchingXML: <groupId>org.springframework.data</groupId><artifactId>spring-data-jpa</artifactId>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>org.springframework</groupId><artifactId>spring-jdbc</artifactId><version>${spring-framework.version}</version>
codeSnip: "72 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n73 \t\t\t<artifactId>jackson-databind</artifactId>\n74 \t\t</dependency>\n75 \t\t<dependency>\n76 \t\t\t<groupId>org.springframework.data</groupId>\n77 \t\t\t<artifactId>spring-data-jpa</artifactId>\n78 \t\t</dependency>\n79 \n80 \t\t<dependency>\n81 \t\t\t<groupId>org.springframework</groupId>\n82 \t\t\t<artifactId>spring-jdbc</artifactId>\n83 \t\t\t<version>${spring-framework.version}</version>\n84 \t\t</dependency>\n85 \t\t<dependency>\n86 \t\t\t<groupId>org.springframework</groupId>\n87 \t\t\t<artifactId>spring-webmvc</artifactId>\n88 \t\t\t<version>${spring-framework.version}</version>\n89 \t\t</dependency>\n90 \t\t<dependency>\n91 \t\t\t<groupId>org.springframework</groupId>\n92 \t\t\t<artifactId>spring-web</artifactId>"
lineNumber: 81
variables:
data: dependency
innerText: "\n\t\t\torg.springframework\n\t\t\tspring-jdbc\n\t\t\t${spring-framework.version}\n\t\t"
matchingXML: <groupId>org.springframework</groupId><artifactId>spring-jdbc</artifactId><version>${spring-framework.version}</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>org.springframework</groupId><artifactId>spring-web</artifactId><version>${spring-framework.version}</version>
codeSnip: "77 \t\t\t<artifactId>spring-data-jpa</artifactId>\n78 \t\t</dependency>\n79 \n80 \t\t<dependency>\n81 \t\t\t<groupId>org.springframework</groupId>\n82 \t\t\t<artifactId>spring-jdbc</artifactId>\n83 \t\t\t<version>${spring-framework.version}</version>\n84 \t\t</dependency>\n85 \t\t<dependency>\n86 \t\t\t<groupId>org.springframework</groupId>\n87 \t\t\t<artifactId>spring-webmvc</artifactId>\n88 \t\t\t<version>${spring-framework.version}</version>\n89 \t\t</dependency>\n90 \t\t<dependency>\n91 \t\t\t<groupId>org.springframework</groupId>\n92 \t\t\t<artifactId>spring-web</artifactId>\n93 \t\t\t<version>${spring-framework.version}</version>\n94 \t\t</dependency>\n95 \t\t<dependency>\n96 \t\t\t<groupId>org.springframework.boot</groupId>\n97 \t\t\t<artifactId>spring-boot-starter-actuator</artifactId>"
lineNumber: 86
variables:
data: dependency
innerText: "\n\t\t\torg.springframework\n\t\t\tspring-web\n\t\t\t${spring-framework.version}\n\t\t"
matchingXML: <groupId>org.springframework</groupId><artifactId>spring-web</artifactId><version>${spring-framework.version}</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: <groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId><version>${spring-framework.version}</version>
codeSnip: "77 \t\t\t<artifactId>spring-data-jpa</artifactId>\n78 \t\t</dependency>\n79 \n80 \t\t<dependency>\n81 \t\t\t<groupId>org.springframework</groupId>\n82 \t\t\t<artifactId>spring-jdbc</artifactId>\n83 \t\t\t<version>${spring-framework.version}</version>\n84 \t\t</dependency>\n85 \t\t<dependency>\n86 \t\t\t<groupId>org.springframework</groupId>\n87 \t\t\t<artifactId>spring-webmvc</artifactId>\n88 \t\t\t<version>${spring-framework.version}</version>\n89 \t\t</dependency>\n90 \t\t<dependency>\n91 \t\t\t<groupId>org.springframework</groupId>\n92 \t\t\t<artifactId>spring-web</artifactId>\n93 \t\t\t<version>${spring-framework.version}</version>\n94 \t\t</dependency>\n95 \t\t<dependency>\n96 \t\t\t<groupId>org.springframework.boot</groupId>\n97 \t\t\t<artifactId>spring-boot-starter-actuator</artifactId>"
lineNumber: 86
variables:
data: dependency
innerText: "\n\t\t\torg.springframework\n\t\t\tspring-webmvc\n\t\t\t${spring-framework.version}\n\t\t"
matchingXML: <groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId><version>${spring-framework.version}</version>
- uri: file:///analyzer-lsp/examples/java/dummy/pom.xml
message: |-
<groupId>javax</groupId><artifactId>javaee-api</artifactId><!-- This leads to https://github.com/konveyor/analyzer-lsp/issues/390
as the property cannot be resolved here but only in the parent POM --><version>${javaee-api.version}</version><scope>provided</scope>
variables:
data: dependency
innerText: "\n javax\n javaee-api\n \n ${javaee-api.version}\n provided\n "
matchingXML: |-
<groupId>javax</groupId><artifactId>javaee-api</artifactId><!-- This leads to https://github.com/konveyor/analyzer-lsp/issues/390
as the property cannot be resolved here but only in the parent POM --><version>${javaee-api.version}</version><scope>provided</scope>
- uri: file:///analyzer-lsp/examples/java/example/pom.xml
message: |-
<groupId>javax</groupId><artifactId>javaee-api</artifactId><!-- This leads to https://github.com/konveyor/analyzer-lsp/issues/390
as the property cannot be resolved here but only in the parent POM --><version>${javaee-api.version}</version><scope>provided</scope>
variables:
data: dependency
innerText: "\n javax\n javaee-api\n \n ${javaee-api.version}\n provided\n "
matchingXML: |-
<groupId>javax</groupId><artifactId>javaee-api</artifactId><!-- This leads to https://github.com/konveyor/analyzer-lsp/issues/390
as the property cannot be resolved here but only in the parent POM --><version>${javaee-api.version}</version><scope>provided</scope>
- uri: file:///analyzer-lsp/examples/java/pom.xml
message: <groupId>io.fabric8</groupId><artifactId>kubernetes-client-api</artifactId><version>6.0.0</version>
codeSnip: |-
31 <version>4.11</version>
32 <scope>test</scope>
33 </dependency>
34 <dependency>
35 <groupId>io.fabric8</groupId>
36 <artifactId>kubernetes-client</artifactId>
37 <version>6.0.0</version>
38 </dependency>
39 <dependency>
40 <groupId>io.fabric8</groupId>
41 <artifactId>kubernetes-client-api</artifactId>
42 <version>6.0.0</version>
43 </dependency>
44 <dependency>
45 <groupId>javax</groupId>
46 <artifactId>javaee-api</artifactId>
47 <version>${javaee-api.version}</version>
48 <scope>provided</scope>
49 </dependency>
50 <!-- This currently leads to https://github.com/konveyor/analyzer-lsp/issues/392 -->
51 <dependency>
lineNumber: 40
variables:
data: dependency
innerText: "\n io.fabric8\n kubernetes-client-api\n 6.0.0\n "
matchingXML: <groupId>io.fabric8</groupId><artifactId>kubernetes-client-api</artifactId><version>6.0.0</version>
- uri: file:///analyzer-lsp/examples/java/pom.xml
message: <groupId>io.fabric8</groupId><artifactId>kubernetes-client</artifactId><version>6.0.0</version>
codeSnip: "26 \n27 <dependencies>\n28 <dependency>\n29 <groupId>junit</groupId>\n30 <artifactId>junit</artifactId>\n31 <version>4.11</version>\n32 <scope>test</scope>\n33 </dependency>\n34 <dependency>\n35 <groupId>io.fabric8</groupId>\n36 <artifactId>kubernetes-client</artifactId>\n37 <version>6.0.0</version>\n38 </dependency>\n39 <dependency>\n40 <groupId>io.fabric8</groupId>\n41 <artifactId>kubernetes-client-api</artifactId>\n42 <version>6.0.0</version>\n43 </dependency>\n44 <dependency>\n45 <groupId>javax</groupId>\n46 <artifactId>javaee-api</artifactId>"
lineNumber: 35
variables:
data: dependency
innerText: "\n io.fabric8\n kubernetes-client\n 6.0.0\n "
matchingXML: <groupId>io.fabric8</groupId><artifactId>kubernetes-client</artifactId><version>6.0.0</version>
- uri: file:///analyzer-lsp/examples/java/pom.xml
message: <groupId>io.netty</groupId><artifactId>netty-transport-native-epoll</artifactId><version>4.1.76.Final</version><classifier>linux-x86_64</classifier><scope>runtime</scope>
codeSnip: "43 </dependency>\n44 <dependency>\n45 <groupId>javax</groupId>\n46 <artifactId>javaee-api</artifactId>\n47 <version>${javaee-api.version}</version>\n48 <scope>provided</scope>\n49 </dependency>\n50 <!-- This currently leads to https://github.com/konveyor/analyzer-lsp/issues/392 -->\n51 <dependency>\n52 <groupId>io.netty</groupId>\n53 <artifactId>netty-transport-native-epoll</artifactId>\n54 <version>4.1.76.Final</version>\n55 <classifier>linux-x86_64</classifier>\n56 <scope>runtime</scope>\n57 </dependency>\n58 </dependencies>\n59 \n60 <build>\n61 <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->\n62 <plugins>\n63 <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->"
lineNumber: 52
variables:
data: dependency
innerText: "\n io.netty\n netty-transport-native-epoll\n 4.1.76.Final\n linux-x86_64\n runtime\n "
matchingXML: <groupId>io.netty</groupId><artifactId>netty-transport-native-epoll</artifactId><version>4.1.76.Final</version><classifier>linux-x86_64</classifier><scope>runtime</scope>
- uri: file:///analyzer-lsp/examples/java/pom.xml
message: <groupId>javax</groupId><artifactId>javaee-api</artifactId><version>${javaee-api.version}</version><scope>provided</scope>
codeSnip: |-
36 <artifactId>kubernetes-client</artifactId>
37 <version>6.0.0</version>
38 </dependency>
39 <dependency>
40 <groupId>io.fabric8</groupId>
41 <artifactId>kubernetes-client-api</artifactId>
42 <version>6.0.0</version>
43 </dependency>
44 <dependency>
45 <groupId>javax</groupId>
46 <artifactId>javaee-api</artifactId>
47 <version>${javaee-api.version}</version>
48 <scope>provided</scope>
49 </dependency>
50 <!-- This currently leads to https://github.com/konveyor/analyzer-lsp/issues/392 -->
51 <dependency>
52 <groupId>io.netty</groupId>
53 <artifactId>netty-transport-native-epoll</artifactId>
54 <version>4.1.76.Final</version>
55 <classifier>linux-x86_64</classifier>
56 <scope>runtime</scope>
lineNumber: 45
variables:
data: dependency
innerText: "\n javax\n javaee-api\n ${javaee-api.version}\n provided\n "
matchingXML: <groupId>javax</groupId><artifactId>javaee-api</artifactId><version>${javaee-api.version}</version><scope>provided</scope>
- uri: file:///analyzer-lsp/examples/java/pom.xml
message: <groupId>junit</groupId><artifactId>junit</artifactId><version>4.11</version><scope>test</scope>
codeSnip: "20 <properties>\n21 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\n22 <maven.compiler.source>1.7</maven.compiler.source>\n23 <maven.compiler.target>1.7</maven.compiler.target>\n24 <javaee-api.version>7.0</javaee-api.version>\n25 </properties>\n26 \n27 <dependencies>\n28 <dependency>\n29 <groupId>junit</groupId>\n30 <artifactId>junit</artifactId>\n31 <version>4.11</version>\n32 <scope>test</scope>\n33 </dependency>\n34 <dependency>\n35 <groupId>io.fabric8</groupId>\n36 <artifactId>kubernetes-client</artifactId>\n37 <version>6.0.0</version>\n38 </dependency>\n39 <dependency>\n40 <groupId>io.fabric8</groupId>"
lineNumber: 29
variables:
data: dependency
innerText: "\n junit\n junit\n 4.11\n test\n "
matchingXML: <groupId>junit</groupId><artifactId>junit</artifactId><version>4.11</version><scope>test</scope>
file-001:
description: Testing that we can get all the go files in the project
category: potential
labels:
- test
- testing
incidents:
- uri: file:///analyzer-lsp/examples/golang/dummy/test_functions.go
message: all go files
- uri: file:///analyzer-lsp/examples/golang/main.go
message: all go files
links:
- url: https://go.dev
title: Golang
effort: 3
filecontent-codesnip-test:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/Dockerfile
message: Found usage of openjdk base image
codeSnip: " 1 ########################################\n 2 # Build Image\n 3 ########################################\n 4 # FROM maven:3.6-jdk-8-slim as build\n 5 FROM maven:3.8-openjdk-11 as build\n 6 \n 7 WORKDIR /app\n 8 \n 9 # Establish the dependency layer\n10 COPY pom.xml .\n11 RUN mvn dependency:resolve\n12 \n13 # Add the source code and package\n14 COPY src ./src\n15 RUN mvn package\n16 "
lineNumber: 5
variables:
matchingText: FROM maven:3.8-openjdk-11 as build
go-lang-ref-001:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/golang/main.go
message: golang apiextensions/v1/customresourcedefinitions found file:///analyzer-lsp/examples/golang/main.go:11
codeSnip: " 2 \n 3 import (\n 4 \t\"fmt\"\n 5 \n 6 \t\"github.com/konveyor/analyzer-lsp/examples/golang/dummy\"\n 7 \t\"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1\"\n 8 )\n 9 \n10 func main() {\n11 \tfmt.Println(v1beta1.CustomResourceDefinition{})\n12 \n13 \tfmt.Println(dummy.HelloWorld())\n14 }\n"
lineNumber: 11
variables:
file: file:///analyzer-lsp/examples/golang/main.go
golang-gomod-dependencies:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/golang/go.mod
message: dependency golang.org/x/text with v0.3.7 is bad and you should feel bad for using it
variables:
name: golang.org/x/text
version: v0.3.7
- uri: file:///analyzer-lsp/examples/golang/go.mod
message: dependency k8s.io/apimachinery with v0.24.4 is bad and you should feel bad for using it
variables:
name: k8s.io/apimachinery
version: v0.24.4
- uri: file:///analyzer-lsp/examples/golang/go.mod
message: dependency sigs.k8s.io/structured-merge-diff/v4 with v4.2.1 is bad and you should feel bad for using it
variables:
name: sigs.k8s.io/structured-merge-diff/v4
version: v4.2.1
java-pomxml-dependencies:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/java/pom.xml
message: dependency io.fabric8.kubernetes-client with 6.0.0 is bad and you should feel bad for using it
codeSnip: "26 \n27 <dependencies>\n28 <dependency>\n29 <groupId>junit</groupId>\n30 <artifactId>junit</artifactId>\n31 <version>4.11</version>\n32 <scope>test</scope>\n33 </dependency>\n34 <dependency>\n35 <groupId>io.fabric8</groupId>\n36 <artifactId>kubernetes-client</artifactId>\n37 <version>6.0.0</version>\n38 </dependency>\n39 <dependency>\n40 <groupId>io.fabric8</groupId>\n41 <artifactId>kubernetes-client-api</artifactId>\n42 <version>6.0.0</version>\n43 </dependency>\n44 <dependency>\n45 <groupId>javax</groupId>\n46 <artifactId>javaee-api</artifactId>"
lineNumber: 35
variables:
name: io.fabric8.kubernetes-client
version: 6.0.0
- uri: file:///analyzer-lsp/examples/java/pom.xml
message: dependency junit.junit with 4.11 is bad and you should feel bad for using it
codeSnip: "20 <properties>\n21 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\n22 <maven.compiler.source>1.7</maven.compiler.source>\n23 <maven.compiler.target>1.7</maven.compiler.target>\n24 <javaee-api.version>7.0</javaee-api.version>\n25 </properties>\n26 \n27 <dependencies>\n28 <dependency>\n29 <groupId>junit</groupId>\n30 <artifactId>junit</artifactId>\n31 <version>4.11</version>\n32 <scope>test</scope>\n33 </dependency>\n34 <dependency>\n35 <groupId>io.fabric8</groupId>\n36 <artifactId>kubernetes-client</artifactId>\n37 <version>6.0.0</version>\n38 </dependency>\n39 <dependency>\n40 <groupId>io.fabric8</groupId>"
lineNumber: 29
variables:
name: junit.junit
version: "4.11"
jboss-eap5-7-xml-02000:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/java/jboss-app.xml
message: JBoss 5.x EAR descriptor (jboss-app.xml) was found with public-id
variables:
data: module
innerText: "\n jboss-example-service\n "
matchingXML: <service>jboss-example-service</service>
k8s-deprecated-api-001:
description: Check for usage of deprecated Kubernetes API versions
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/yaml/k8s.yaml
message: Deprecated/removed Kubernetes API version 'extensions/v1beta1' is used for 'Deployment'. Consider using 'apps/v1'.
lineNumber: 16
variables:
apiVersion: extensions/v1beta1
deprecated-in: v1.9.0
kind: Deployment
removed-in: v1.16.0
replacement-API: apps/v1
effort: 2
k8s-deprecated-api-002:
description: Check for usage of deprecated Kubernetes API versions
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/yaml/k8s.yaml
message: Deprecated Kubernetes API version 'apps/v1beta1' is used for 'StatefulSet'. Consider using 'apps/v1'.
lineNumber: 38
variables:
apiVersion: extensions/v1beta1
deprecated-in: v1.9.0
kind: ReplicaSet
removed-in: v1.16.0
replacement-API: apps/v1
effort: 2
lang-ref-001:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/golang/main.go
message: apiextensions/v1beta1/customresourcedefinitions is deprecated, apiextensions/v1/customresourcedefinitions should be used instead
codeSnip: " 2 \n 3 import (\n 4 \t\"fmt\"\n 5 \n 6 \t\"github.com/konveyor/analyzer-lsp/examples/golang/dummy\"\n 7 \t\"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1\"\n 8 )\n 9 \n10 func main() {\n11 \tfmt.Println(v1beta1.CustomResourceDefinition{})\n12 \n13 \tfmt.Println(dummy.HelloWorld())\n14 }\n"
lineNumber: 11
variables:
file: file:///analyzer-lsp/examples/golang/main.go
- uri: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/App.java
message: apiextensions/v1beta1/customresourcedefinitions is deprecated, apiextensions/v1/customresourcedefinitions should be used instead
codeSnip: " 1 package com.example.apps;\n 2 \n 3 import io.fabric8.kubernetes.api.model.apiextensions.v1beta1.CustomResourceDefinition;\n 4 \n 5 public class App \n 6 {\n 7 \n 8 /**\n 9 * {@link CustomResourceDefinition}\n10 * @param args\n11 */\n12 public static void main( String[] args )\n13 {"
lineNumber: 3
variables:
file: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/App.java
kind: Module
name: io.fabric8.kubernetes.api.model.apiextensions.v1beta1.CustomResourceDefinition
package: com.example.apps
- uri: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/App.java
message: apiextensions/v1beta1/customresourcedefinitions is deprecated, apiextensions/v1/customresourcedefinitions should be used instead
codeSnip: " 4 \n 5 public class App \n 6 {\n 7 \n 8 /**\n 9 * {@link CustomResourceDefinition}\n10 * @param args\n11 */\n12 public static void main( String[] args )\n13 {\n14 CustomResourceDefinition crd = new CustomResourceDefinition();\n15 System.out.println( crd );\n16 \n17 GenericClass<String> element = new GenericClass<String>(\"Hello world!\");\n18 element.get();\n19 }\n20 }\n"
lineNumber: 14
variables:
file: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/App.java
kind: Method
name: main
package: com.example.apps
lang-ref-003:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/App.java
message: java found apiextensions/v1/customresourcedefinitions found file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/App.java:14
codeSnip: " 4 \n 5 public class App \n 6 {\n 7 \n 8 /**\n 9 * {@link CustomResourceDefinition}\n10 * @param args\n11 */\n12 public static void main( String[] args )\n13 {\n14 CustomResourceDefinition crd = new CustomResourceDefinition();\n15 System.out.println( crd );\n16 \n17 GenericClass<String> element = new GenericClass<String>(\"Hello world!\");\n18 element.get();\n19 }\n20 }\n"
lineNumber: 14
variables:
file: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/App.java
kind: Method
name: main
package: com.example.apps
- uri: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/App.java
message: java found apiextensions/v1/customresourcedefinitions found file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/App.java:3
codeSnip: " 1 package com.example.apps;\n 2 \n 3 import io.fabric8.kubernetes.api.model.apiextensions.v1beta1.CustomResourceDefinition;\n 4 \n 5 public class App \n 6 {\n 7 \n 8 /**\n 9 * {@link CustomResourceDefinition}\n10 * @param args\n11 */\n12 public static void main( String[] args )\n13 {"
lineNumber: 3
variables:
file: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/App.java
kind: Module
name: io.fabric8.kubernetes.api.model.apiextensions.v1beta1.CustomResourceDefinition
package: com.example.apps
lang-ref-004:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/App.java
message: found generic call
codeSnip: " 8 /**\n 9 * {@link CustomResourceDefinition}\n10 * @param args\n11 */\n12 public static void main( String[] args )\n13 {\n14 CustomResourceDefinition crd = new CustomResourceDefinition();\n15 System.out.println( crd );\n16 \n17 GenericClass<String> element = new GenericClass<String>(\"Hello world!\");\n18 element.get();\n19 }\n20 }\n"
lineNumber: 18
variables:
VariableName: element
file: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/App.java
kind: Method
name: main
package: com.example.apps
multiple-actions-001:
description: ""
category: potential
incidents:
- uri: ""
message: Tags [Golang] found, creating message and new tag both
variables:
tags:
- Golang
python-sample-rule-001:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/python/file_a.py
message: python sample rule 001
codeSnip: " 1 import file_b\n 2 \n 3 print(file_b.hello_world())\n 4 \n 5 doggie = file_b.Dog()\n 6 print(doggie.speak())\n 7 \n 8 file_b.bad_method()\n"
lineNumber: 3
variables:
file: file:///analyzer-lsp/examples/python/file_a.py
python-sample-rule-002:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/python/file_a.py
message: python sample rule 002
codeSnip: " 1 import file_b\n 2 \n 3 print(file_b.hello_world())\n 4 \n 5 doggie = file_b.Dog()\n 6 print(doggie.speak())\n 7 \n 8 file_b.bad_method()\n"
lineNumber: 6
variables:
file: file:///analyzer-lsp/examples/python/file_a.py
python-sample-rule-003:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/python/main.py
message: python sample rule 003
codeSnip: "19 # Create an instance of the API class\n20 api_instance = kubernetes.client.ApiextensionsV1Api(api_client)\n21 body = kubernetes.client.V1CustomResourceDefinition() # V1CustomResourceDefinition | \n22 pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional)\n23 dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)\n24 field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)\n25 field_validation = 'field_validation_example' # str | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)\n26 \n27 try:\n28 api_response = api_instance.create_custom_resource_definition(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, field_validation=field_validation)\n29 pprint(api_response)\n30 except ApiException as e:\n31 print(\"Exception when calling ApiextensionsV1Api->create_custom_resource_definition: %s\\n\" % e)\n"
lineNumber: 28
variables:
file: file:///analyzer-lsp/examples/python/main.py
singleton-sessionbean-00001:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/Bean.java
message: condition entries should evaluate out of order
codeSnip: " 1 package com.example.apps;\n 2 \n 3 import javax.ejb.SessionBean;\n 4 import javax.ejb.Singleton;\n 5 \n 6 @Singleton\n 7 public abstract class Bean implements SessionBean {\n 8 }\n"
lineNumber: 6
variables:
file: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/Bean.java
kind: Class
name: Singleton
package: com.example.apps
- uri: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/Bean.java
message: condition entries should evaluate out of order
codeSnip: " 1 package com.example.apps;\n 2 \n 3 import javax.ejb.SessionBean;\n 4 import javax.ejb.Singleton;\n 5 \n 6 @Singleton\n 7 public abstract class Bean implements SessionBean {\n 8 }\n"
lineNumber: 7
variables:
file: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/Bean.java
kind: Class
name: Bean
package: com.example.apps
singleton-sessionbean-00002:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/Bean.java
message: condition entries should evaluate in order
codeSnip: " 1 package com.example.apps;\n 2 \n 3 import javax.ejb.SessionBean;\n 4 import javax.ejb.Singleton;\n 5 \n 6 @Singleton\n 7 public abstract class Bean implements SessionBean {\n 8 }\n"
lineNumber: 6
variables:
file: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/Bean.java
kind: Class
name: Singleton
package: com.example.apps
- uri: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/Bean.java
message: condition entries should evaluate in order
codeSnip: " 1 package com.example.apps;\n 2 \n 3 import javax.ejb.SessionBean;\n 4 import javax.ejb.Singleton;\n 5 \n 6 @Singleton\n 7 public abstract class Bean implements SessionBean {\n 8 }\n"
lineNumber: 7
variables:
file: file:///analyzer-lsp/examples/java/example/src/main/java/com/example/apps/Bean.java
kind: Class
name: Bean
package: com.example.apps
tech-tag-001:
description: ""
category: potential
incidents:
- uri: ""
message: Tags [Golang Kubernetes] found
variables:
tags:
- Golang
- Kubernetes
- uri: ""
message: Tags [Java] found
variables:
tags:
- Java
xml-pom-001:
description: ""
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>ch.qos.logback</groupId><artifactId>logback-classic</artifactId><version>1.1.7</version>'
codeSnip: "108 \t\t\t<artifactId>hibernate-entitymanager</artifactId>\n109 \t\t\t<version>${hibernate.version}</version>\n110 \t\t</dependency>\n111 \t\t<dependency>\n112 \t\t\t<groupId>org.hibernate.validator</groupId>\n113 \t\t\t<artifactId>hibernate-validator</artifactId>\n114 \t\t\t<version>${hibernate-validator.version}</version>\n115 \t\t</dependency>\n116 \t\t<dependency>\n117 \t\t\t<groupId>ch.qos.logback</groupId>\n118 \t\t\t<artifactId>logback-classic</artifactId>\n119 \t\t\t<version>1.1.7</version>\n120 \t\t</dependency>\n121 \t\t<dependency>\n122 \t\t\t<groupId>com.oracle.database.jdbc</groupId>\n123 \t\t\t<artifactId>ojdbc8</artifactId>\n124 \t\t\t<version>21.1.0.0</version>\n125 \t\t</dependency>\n126 \t\t<dependency>\n127 \t\t\t<groupId>org.postgresql</groupId>\n128 \t\t\t<artifactId>postgresql</artifactId>"
lineNumber: 117
variables:
data: dependency
innerText: "\n\t\t\tch.qos.logback\n\t\t\tlogback-classic\n\t\t\t1.1.7\n\t\t"
matchingXML: <groupId>ch.qos.logback</groupId><artifactId>logback-classic</artifactId><version>1.1.7</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-core</artifactId>'
codeSnip: "59 \t</dependencyManagement>\n60 \t<dependencies>\n61 \t\t<dependency>\n62 \t\t\t<groupId>org.apache.tomcat</groupId>\n63 \t\t\t<artifactId>tomcat-servlet-api</artifactId>\n64 \t\t\t<version>${tomcat.version}</version>\n65 \t\t\t<scope>provided</scope>\n66 \t\t</dependency>\n67 \t\t<dependency>\n68 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n69 \t\t\t<artifactId>jackson-core</artifactId>\n70 \t\t</dependency>\n71 \t\t<dependency>\n72 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n73 \t\t\t<artifactId>jackson-databind</artifactId>\n74 \t\t</dependency>\n75 \t\t<dependency>\n76 \t\t\t<groupId>org.springframework.data</groupId>\n77 \t\t\t<artifactId>spring-data-jpa</artifactId>\n78 \t\t</dependency>\n79 "
lineNumber: 68
variables:
data: dependency
innerText: "\n\t\t\tcom.fasterxml.jackson.core\n\t\t\tjackson-core\n\t\t"
matchingXML: <groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-core</artifactId>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-databind</artifactId>'
codeSnip: "63 \t\t\t<artifactId>tomcat-servlet-api</artifactId>\n64 \t\t\t<version>${tomcat.version}</version>\n65 \t\t\t<scope>provided</scope>\n66 \t\t</dependency>\n67 \t\t<dependency>\n68 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n69 \t\t\t<artifactId>jackson-core</artifactId>\n70 \t\t</dependency>\n71 \t\t<dependency>\n72 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n73 \t\t\t<artifactId>jackson-databind</artifactId>\n74 \t\t</dependency>\n75 \t\t<dependency>\n76 \t\t\t<groupId>org.springframework.data</groupId>\n77 \t\t\t<artifactId>spring-data-jpa</artifactId>\n78 \t\t</dependency>\n79 \n80 \t\t<dependency>\n81 \t\t\t<groupId>org.springframework</groupId>\n82 \t\t\t<artifactId>spring-jdbc</artifactId>\n83 \t\t\t<version>${spring-framework.version}</version>"
lineNumber: 72
variables:
data: dependency
innerText: "\n\t\t\tcom.fasterxml.jackson.core\n\t\t\tjackson-databind\n\t\t"
matchingXML: <groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-databind</artifactId>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>com.fasterxml.jackson</groupId><artifactId>jackson-bom</artifactId><version>${jackson.version}</version><scope>import</scope><type>pom</type>'
codeSnip: "36 \t\t\t<id>demo-config</id>\n37 \t\t\t<name>Azure DevOps</name>\n38 \t\t\t<url>https://pkgs.dev.azure.com/ShawnHurley21/demo-config-utils/_packaging/demo-config/maven/v1</url>\n39 \t\t</repository>\n40 \t</repositories>\n41 \n42 \t<dependencyManagement>\n43 \t\t<dependencies>\n44 \t\t\t<dependency>\n45 \t\t\t\t<groupId>com.fasterxml.jackson</groupId>\n46 \t\t\t\t<artifactId>jackson-bom</artifactId>\n47 \t\t\t\t<version>${jackson.version}</version>\n48 \t\t\t\t<scope>import</scope>\n49 \t\t\t\t<type>pom</type>\n50 \t\t\t</dependency>\n51 \t\t\t<dependency>\n52 \t\t\t\t<groupId>org.springframework.data</groupId>\n53 \t\t\t\t<artifactId>spring-data-bom</artifactId>\n54 \t\t\t\t<version>${spring-data.version}</version>\n55 \t\t\t\t<scope>import</scope>\n56 \t\t\t\t<type>pom</type>"
lineNumber: 45
variables:
data: dependency
innerText: "\n\t\t\t\tcom.fasterxml.jackson\n\t\t\t\tjackson-bom\n\t\t\t\t${jackson.version}\n\t\t\t\timport\n\t\t\t\tpom\n\t\t\t"
matchingXML: <groupId>com.fasterxml.jackson</groupId><artifactId>jackson-bom</artifactId><version>${jackson.version}</version><scope>import</scope><type>pom</type>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>com.oracle.database.jdbc</groupId><artifactId>ojdbc8</artifactId><version>21.1.0.0</version>'
codeSnip: "113 \t\t\t<artifactId>hibernate-validator</artifactId>\n114 \t\t\t<version>${hibernate-validator.version}</version>\n115 \t\t</dependency>\n116 \t\t<dependency>\n117 \t\t\t<groupId>ch.qos.logback</groupId>\n118 \t\t\t<artifactId>logback-classic</artifactId>\n119 \t\t\t<version>1.1.7</version>\n120 \t\t</dependency>\n121 \t\t<dependency>\n122 \t\t\t<groupId>com.oracle.database.jdbc</groupId>\n123 \t\t\t<artifactId>ojdbc8</artifactId>\n124 \t\t\t<version>21.1.0.0</version>\n125 \t\t</dependency>\n126 \t\t<dependency>\n127 \t\t\t<groupId>org.postgresql</groupId>\n128 \t\t\t<artifactId>postgresql</artifactId>\n129 \t\t\t<version>42.2.23</version>\n130 \t\t</dependency>\n131 \t\t<!-- Corporate libraries -->\n132 \t\t<dependency>\n133 \t\t\t<groupId>io.konveyor.demo</groupId>"
lineNumber: 122
variables:
data: dependency
innerText: "\n\t\t\tcom.oracle.database.jdbc\n\t\t\tojdbc8\n\t\t\t21.1.0.0\n\t\t"
matchingXML: <groupId>com.oracle.database.jdbc</groupId><artifactId>ojdbc8</artifactId><version>21.1.0.0</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>io.konveyor.demo</groupId><artifactId>config-utils</artifactId><version>1.0.0</version>'
codeSnip: "124 \t\t\t<version>21.1.0.0</version>\n125 \t\t</dependency>\n126 \t\t<dependency>\n127 \t\t\t<groupId>org.postgresql</groupId>\n128 \t\t\t<artifactId>postgresql</artifactId>\n129 \t\t\t<version>42.2.23</version>\n130 \t\t</dependency>\n131 \t\t<!-- Corporate libraries -->\n132 \t\t<dependency>\n133 \t\t\t<groupId>io.konveyor.demo</groupId>\n134 \t\t\t<artifactId>config-utils</artifactId>\n135 \t\t\t<version>1.0.0</version>\n136 \t\t</dependency>\n137 \n138 \t</dependencies>\n139 \t<build>\n140 \t\t<plugins>\n141 \t\t\t<plugin>\n142 \t\t\t\t<groupId>org.apache.maven.plugins</groupId>\n143 \t\t\t\t<artifactId>maven-compiler-plugin</artifactId>\n144 \t\t\t\t<version>${maven-compiler-plugin.version}</version>"
lineNumber: 133
variables:
data: dependency
innerText: "\n\t\t\tio.konveyor.demo\n\t\t\tconfig-utils\n\t\t\t1.0.0\n\t\t"
matchingXML: <groupId>io.konveyor.demo</groupId><artifactId>config-utils</artifactId><version>1.0.0</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>org.apache.tomcat</groupId><artifactId>tomcat-jdbc</artifactId><version>${tomcat.version}</version><scope>runtime</scope>'
codeSnip: " 92 \t\t\t<artifactId>spring-web</artifactId>\n 93 \t\t\t<version>${spring-framework.version}</version>\n 94 \t\t</dependency>\n 95 \t\t<dependency>\n 96 \t\t\t<groupId>org.springframework.boot</groupId>\n 97 \t\t\t<artifactId>spring-boot-starter-actuator</artifactId>\n 98 \t\t\t<version>2.5.0</version>\n 99 \t\t</dependency>\n100 \t\t<dependency>\n101 \t\t\t<groupId>org.apache.tomcat</groupId>\n102 \t\t\t<artifactId>tomcat-jdbc</artifactId>\n103 \t\t\t<version>${tomcat.version}</version>\n104 \t\t\t<scope>runtime</scope>\n105 \t\t</dependency>\n106 \t\t<dependency>\n107 \t\t\t<groupId>org.hibernate</groupId>\n108 \t\t\t<artifactId>hibernate-entitymanager</artifactId>\n109 \t\t\t<version>${hibernate.version}</version>\n110 \t\t</dependency>\n111 \t\t<dependency>\n112 \t\t\t<groupId>org.hibernate.validator</groupId>"
lineNumber: 101
variables:
data: dependency
innerText: "\n\t\t\torg.apache.tomcat\n\t\t\ttomcat-jdbc\n\t\t\t${tomcat.version}\n\t\t\truntime\n\t\t"
matchingXML: <groupId>org.apache.tomcat</groupId><artifactId>tomcat-jdbc</artifactId><version>${tomcat.version}</version><scope>runtime</scope>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>org.apache.tomcat</groupId><artifactId>tomcat-servlet-api</artifactId><version>${tomcat.version}</version><scope>provided</scope>'
codeSnip: "53 \t\t\t\t<artifactId>spring-data-bom</artifactId>\n54 \t\t\t\t<version>${spring-data.version}</version>\n55 \t\t\t\t<scope>import</scope>\n56 \t\t\t\t<type>pom</type>\n57 \t\t\t</dependency>\n58 \t\t</dependencies>\n59 \t</dependencyManagement>\n60 \t<dependencies>\n61 \t\t<dependency>\n62 \t\t\t<groupId>org.apache.tomcat</groupId>\n63 \t\t\t<artifactId>tomcat-servlet-api</artifactId>\n64 \t\t\t<version>${tomcat.version}</version>\n65 \t\t\t<scope>provided</scope>\n66 \t\t</dependency>\n67 \t\t<dependency>\n68 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n69 \t\t\t<artifactId>jackson-core</artifactId>\n70 \t\t</dependency>\n71 \t\t<dependency>\n72 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n73 \t\t\t<artifactId>jackson-databind</artifactId>"
lineNumber: 62
variables:
data: dependency
innerText: "\n\t\t\torg.apache.tomcat\n\t\t\ttomcat-servlet-api\n\t\t\t${tomcat.version}\n\t\t\tprovided\n\t\t"
matchingXML: <groupId>org.apache.tomcat</groupId><artifactId>tomcat-servlet-api</artifactId><version>${tomcat.version}</version><scope>provided</scope>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>org.hibernate.validator</groupId><artifactId>hibernate-validator</artifactId><version>${hibernate-validator.version}</version>'
codeSnip: "103 \t\t\t<version>${tomcat.version}</version>\n104 \t\t\t<scope>runtime</scope>\n105 \t\t</dependency>\n106 \t\t<dependency>\n107 \t\t\t<groupId>org.hibernate</groupId>\n108 \t\t\t<artifactId>hibernate-entitymanager</artifactId>\n109 \t\t\t<version>${hibernate.version}</version>\n110 \t\t</dependency>\n111 \t\t<dependency>\n112 \t\t\t<groupId>org.hibernate.validator</groupId>\n113 \t\t\t<artifactId>hibernate-validator</artifactId>\n114 \t\t\t<version>${hibernate-validator.version}</version>\n115 \t\t</dependency>\n116 \t\t<dependency>\n117 \t\t\t<groupId>ch.qos.logback</groupId>\n118 \t\t\t<artifactId>logback-classic</artifactId>\n119 \t\t\t<version>1.1.7</version>\n120 \t\t</dependency>\n121 \t\t<dependency>\n122 \t\t\t<groupId>com.oracle.database.jdbc</groupId>\n123 \t\t\t<artifactId>ojdbc8</artifactId>"
lineNumber: 112
variables:
data: dependency
innerText: "\n\t\t\torg.hibernate.validator\n\t\t\thibernate-validator\n\t\t\t${hibernate-validator.version}\n\t\t"
matchingXML: <groupId>org.hibernate.validator</groupId><artifactId>hibernate-validator</artifactId><version>${hibernate-validator.version}</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>org.hibernate</groupId><artifactId>hibernate-entitymanager</artifactId><version>${hibernate.version}</version>'
codeSnip: " 98 \t\t\t<version>2.5.0</version>\n 99 \t\t</dependency>\n100 \t\t<dependency>\n101 \t\t\t<groupId>org.apache.tomcat</groupId>\n102 \t\t\t<artifactId>tomcat-jdbc</artifactId>\n103 \t\t\t<version>${tomcat.version}</version>\n104 \t\t\t<scope>runtime</scope>\n105 \t\t</dependency>\n106 \t\t<dependency>\n107 \t\t\t<groupId>org.hibernate</groupId>\n108 \t\t\t<artifactId>hibernate-entitymanager</artifactId>\n109 \t\t\t<version>${hibernate.version}</version>\n110 \t\t</dependency>\n111 \t\t<dependency>\n112 \t\t\t<groupId>org.hibernate.validator</groupId>\n113 \t\t\t<artifactId>hibernate-validator</artifactId>\n114 \t\t\t<version>${hibernate-validator.version}</version>\n115 \t\t</dependency>\n116 \t\t<dependency>\n117 \t\t\t<groupId>ch.qos.logback</groupId>\n118 \t\t\t<artifactId>logback-classic</artifactId>"
lineNumber: 107
variables:
data: dependency
innerText: "\n\t\t\torg.hibernate\n\t\t\thibernate-entitymanager\n\t\t\t${hibernate.version}\n\t\t"
matchingXML: <groupId>org.hibernate</groupId><artifactId>hibernate-entitymanager</artifactId><version>${hibernate.version}</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>org.postgresql</groupId><artifactId>postgresql</artifactId><version>42.2.23</version>'
codeSnip: "118 \t\t\t<artifactId>logback-classic</artifactId>\n119 \t\t\t<version>1.1.7</version>\n120 \t\t</dependency>\n121 \t\t<dependency>\n122 \t\t\t<groupId>com.oracle.database.jdbc</groupId>\n123 \t\t\t<artifactId>ojdbc8</artifactId>\n124 \t\t\t<version>21.1.0.0</version>\n125 \t\t</dependency>\n126 \t\t<dependency>\n127 \t\t\t<groupId>org.postgresql</groupId>\n128 \t\t\t<artifactId>postgresql</artifactId>\n129 \t\t\t<version>42.2.23</version>\n130 \t\t</dependency>\n131 \t\t<!-- Corporate libraries -->\n132 \t\t<dependency>\n133 \t\t\t<groupId>io.konveyor.demo</groupId>\n134 \t\t\t<artifactId>config-utils</artifactId>\n135 \t\t\t<version>1.0.0</version>\n136 \t\t</dependency>\n137 \n138 \t</dependencies>"
lineNumber: 127
variables:
data: dependency
innerText: "\n\t\t\torg.postgresql\n\t\t\tpostgresql\n\t\t\t42.2.23\n\t\t"
matchingXML: <groupId>org.postgresql</groupId><artifactId>postgresql</artifactId><version>42.2.23</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId><version>2.5.0</version>'
codeSnip: " 87 \t\t\t<artifactId>spring-webmvc</artifactId>\n 88 \t\t\t<version>${spring-framework.version}</version>\n 89 \t\t</dependency>\n 90 \t\t<dependency>\n 91 \t\t\t<groupId>org.springframework</groupId>\n 92 \t\t\t<artifactId>spring-web</artifactId>\n 93 \t\t\t<version>${spring-framework.version}</version>\n 94 \t\t</dependency>\n 95 \t\t<dependency>\n 96 \t\t\t<groupId>org.springframework.boot</groupId>\n 97 \t\t\t<artifactId>spring-boot-starter-actuator</artifactId>\n 98 \t\t\t<version>2.5.0</version>\n 99 \t\t</dependency>\n100 \t\t<dependency>\n101 \t\t\t<groupId>org.apache.tomcat</groupId>\n102 \t\t\t<artifactId>tomcat-jdbc</artifactId>\n103 \t\t\t<version>${tomcat.version}</version>\n104 \t\t\t<scope>runtime</scope>\n105 \t\t</dependency>\n106 \t\t<dependency>\n107 \t\t\t<groupId>org.hibernate</groupId>"
lineNumber: 96
variables:
data: dependency
innerText: "\n\t\t\torg.springframework.boot\n\t\t\tspring-boot-starter-actuator\n\t\t\t2.5.0\n\t\t"
matchingXML: <groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId><version>2.5.0</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>org.springframework.data</groupId><artifactId>spring-data-bom</artifactId><version>${spring-data.version}</version><scope>import</scope><type>pom</type>'
codeSnip: "43 \t\t<dependencies>\n44 \t\t\t<dependency>\n45 \t\t\t\t<groupId>com.fasterxml.jackson</groupId>\n46 \t\t\t\t<artifactId>jackson-bom</artifactId>\n47 \t\t\t\t<version>${jackson.version}</version>\n48 \t\t\t\t<scope>import</scope>\n49 \t\t\t\t<type>pom</type>\n50 \t\t\t</dependency>\n51 \t\t\t<dependency>\n52 \t\t\t\t<groupId>org.springframework.data</groupId>\n53 \t\t\t\t<artifactId>spring-data-bom</artifactId>\n54 \t\t\t\t<version>${spring-data.version}</version>\n55 \t\t\t\t<scope>import</scope>\n56 \t\t\t\t<type>pom</type>\n57 \t\t\t</dependency>\n58 \t\t</dependencies>\n59 \t</dependencyManagement>\n60 \t<dependencies>\n61 \t\t<dependency>\n62 \t\t\t<groupId>org.apache.tomcat</groupId>\n63 \t\t\t<artifactId>tomcat-servlet-api</artifactId>"
lineNumber: 52
variables:
data: dependency
innerText: "\n\t\t\t\torg.springframework.data\n\t\t\t\tspring-data-bom\n\t\t\t\t${spring-data.version}\n\t\t\t\timport\n\t\t\t\tpom\n\t\t\t"
matchingXML: <groupId>org.springframework.data</groupId><artifactId>spring-data-bom</artifactId><version>${spring-data.version}</version><scope>import</scope><type>pom</type>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>org.springframework.data</groupId><artifactId>spring-data-jpa</artifactId>'
codeSnip: "67 \t\t<dependency>\n68 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n69 \t\t\t<artifactId>jackson-core</artifactId>\n70 \t\t</dependency>\n71 \t\t<dependency>\n72 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n73 \t\t\t<artifactId>jackson-databind</artifactId>\n74 \t\t</dependency>\n75 \t\t<dependency>\n76 \t\t\t<groupId>org.springframework.data</groupId>\n77 \t\t\t<artifactId>spring-data-jpa</artifactId>\n78 \t\t</dependency>\n79 \n80 \t\t<dependency>\n81 \t\t\t<groupId>org.springframework</groupId>\n82 \t\t\t<artifactId>spring-jdbc</artifactId>\n83 \t\t\t<version>${spring-framework.version}</version>\n84 \t\t</dependency>\n85 \t\t<dependency>\n86 \t\t\t<groupId>org.springframework</groupId>\n87 \t\t\t<artifactId>spring-webmvc</artifactId>"
lineNumber: 76
variables:
data: dependency
innerText: "\n\t\t\torg.springframework.data\n\t\t\tspring-data-jpa\n\t\t"
matchingXML: <groupId>org.springframework.data</groupId><artifactId>spring-data-jpa</artifactId>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>org.springframework</groupId><artifactId>spring-jdbc</artifactId><version>${spring-framework.version}</version>'
codeSnip: "72 \t\t\t<groupId>com.fasterxml.jackson.core</groupId>\n73 \t\t\t<artifactId>jackson-databind</artifactId>\n74 \t\t</dependency>\n75 \t\t<dependency>\n76 \t\t\t<groupId>org.springframework.data</groupId>\n77 \t\t\t<artifactId>spring-data-jpa</artifactId>\n78 \t\t</dependency>\n79 \n80 \t\t<dependency>\n81 \t\t\t<groupId>org.springframework</groupId>\n82 \t\t\t<artifactId>spring-jdbc</artifactId>\n83 \t\t\t<version>${spring-framework.version}</version>\n84 \t\t</dependency>\n85 \t\t<dependency>\n86 \t\t\t<groupId>org.springframework</groupId>\n87 \t\t\t<artifactId>spring-webmvc</artifactId>\n88 \t\t\t<version>${spring-framework.version}</version>\n89 \t\t</dependency>\n90 \t\t<dependency>\n91 \t\t\t<groupId>org.springframework</groupId>\n92 \t\t\t<artifactId>spring-web</artifactId>"
lineNumber: 81
variables:
data: dependency
innerText: "\n\t\t\torg.springframework\n\t\t\tspring-jdbc\n\t\t\t${spring-framework.version}\n\t\t"
matchingXML: <groupId>org.springframework</groupId><artifactId>spring-jdbc</artifactId><version>${spring-framework.version}</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>org.springframework</groupId><artifactId>spring-web</artifactId><version>${spring-framework.version}</version>'
codeSnip: "77 \t\t\t<artifactId>spring-data-jpa</artifactId>\n78 \t\t</dependency>\n79 \n80 \t\t<dependency>\n81 \t\t\t<groupId>org.springframework</groupId>\n82 \t\t\t<artifactId>spring-jdbc</artifactId>\n83 \t\t\t<version>${spring-framework.version}</version>\n84 \t\t</dependency>\n85 \t\t<dependency>\n86 \t\t\t<groupId>org.springframework</groupId>\n87 \t\t\t<artifactId>spring-webmvc</artifactId>\n88 \t\t\t<version>${spring-framework.version}</version>\n89 \t\t</dependency>\n90 \t\t<dependency>\n91 \t\t\t<groupId>org.springframework</groupId>\n92 \t\t\t<artifactId>spring-web</artifactId>\n93 \t\t\t<version>${spring-framework.version}</version>\n94 \t\t</dependency>\n95 \t\t<dependency>\n96 \t\t\t<groupId>org.springframework.boot</groupId>\n97 \t\t\t<artifactId>spring-boot-starter-actuator</artifactId>"
lineNumber: 86
variables:
data: dependency
innerText: "\n\t\t\torg.springframework\n\t\t\tspring-web\n\t\t\t${spring-framework.version}\n\t\t"
matchingXML: <groupId>org.springframework</groupId><artifactId>spring-web</artifactId><version>${spring-framework.version}</version>
- uri: file:///analyzer-lsp/examples/customers-tomcat-legacy/pom.xml
message: POM XML dependencies - '<groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId><version>${spring-framework.version}</version>'
codeSnip: "77 \t\t\t<artifactId>spring-data-jpa</artifactId>\n78 \t\t</dependency>\n79 \n80 \t\t<dependency>\n81 \t\t\t<groupId>org.springframework</groupId>\n82 \t\t\t<artifactId>spring-jdbc</artifactId>\n83 \t\t\t<version>${spring-framework.version}</version>\n84 \t\t</dependency>\n85 \t\t<dependency>\n86 \t\t\t<groupId>org.springframework</groupId>\n87 \t\t\t<artifactId>spring-webmvc</artifactId>\n88 \t\t\t<version>${spring-framework.version}</version>\n89 \t\t</dependency>\n90 \t\t<dependency>\n91 \t\t\t<groupId>org.springframework</groupId>\n92 \t\t\t<artifactId>spring-web</artifactId>\n93 \t\t\t<version>${spring-framework.version}</version>\n94 \t\t</dependency>\n95 \t\t<dependency>\n96 \t\t\t<groupId>org.springframework.boot</groupId>\n97 \t\t\t<artifactId>spring-boot-starter-actuator</artifactId>"
lineNumber: 86
variables:
data: dependency
innerText: "\n\t\t\torg.springframework\n\t\t\tspring-webmvc\n\t\t\t${spring-framework.version}\n\t\t"
matchingXML: <groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId><version>${spring-framework.version}</version>
- uri: file:///analyzer-lsp/examples/java/dummy/pom.xml
message: |-
POM XML dependencies - '<groupId>javax</groupId><artifactId>javaee-api</artifactId><!-- This leads to https://github.com/konveyor/analyzer-lsp/issues/390
as the property cannot be resolved here but only in the parent POM --><version>${javaee-api.version}</version><scope>provided</scope>'
variables:
data: dependency
innerText: "\n javax\n javaee-api\n \n ${javaee-api.version}\n provided\n "
matchingXML: |-
<groupId>javax</groupId><artifactId>javaee-api</artifactId><!-- This leads to https://github.com/konveyor/analyzer-lsp/issues/390
as the property cannot be resolved here but only in the parent POM --><version>${javaee-api.version}</version><scope>provided</scope>
- uri: file:///analyzer-lsp/examples/java/example/pom.xml
message: |-
POM XML dependencies - '<groupId>javax</groupId><artifactId>javaee-api</artifactId><!-- This leads to https://github.com/konveyor/analyzer-lsp/issues/390
as the property cannot be resolved here but only in the parent POM --><version>${javaee-api.version}</version><scope>provided</scope>'
variables:
data: dependency
innerText: "\n javax\n javaee-api\n \n ${javaee-api.version}\n provided\n "
matchingXML: |-
<groupId>javax</groupId><artifactId>javaee-api</artifactId><!-- This leads to https://github.com/konveyor/analyzer-lsp/issues/390
as the property cannot be resolved here but only in the parent POM --><version>${javaee-api.version}</version><scope>provided</scope>
- uri: file:///analyzer-lsp/examples/java/pom.xml
message: POM XML dependencies - '<groupId>io.fabric8</groupId><artifactId>kubernetes-client-api</artifactId><version>6.0.0</version>'
codeSnip: |-
31 <version>4.11</version>
32 <scope>test</scope>
33 </dependency>
34 <dependency>
35 <groupId>io.fabric8</groupId>
36 <artifactId>kubernetes-client</artifactId>
37 <version>6.0.0</version>
38 </dependency>
39 <dependency>
40 <groupId>io.fabric8</groupId>
41 <artifactId>kubernetes-client-api</artifactId>
42 <version>6.0.0</version>
43 </dependency>
44 <dependency>
45 <groupId>javax</groupId>
46 <artifactId>javaee-api</artifactId>
47 <version>${javaee-api.version}</version>
48 <scope>provided</scope>
49 </dependency>
50 <!-- This currently leads to https://github.com/konveyor/analyzer-lsp/issues/392 -->
51 <dependency>
lineNumber: 40
variables:
data: dependency
innerText: "\n io.fabric8\n kubernetes-client-api\n 6.0.0\n "
matchingXML: <groupId>io.fabric8</groupId><artifactId>kubernetes-client-api</artifactId><version>6.0.0</version>
- uri: file:///analyzer-lsp/examples/java/pom.xml
message: POM XML dependencies - '<groupId>io.fabric8</groupId><artifactId>kubernetes-client</artifactId><version>6.0.0</version>'
codeSnip: "26 \n27 <dependencies>\n28 <dependency>\n29 <groupId>junit</groupId>\n30 <artifactId>junit</artifactId>\n31 <version>4.11</version>\n32 <scope>test</scope>\n33 </dependency>\n34 <dependency>\n35 <groupId>io.fabric8</groupId>\n36 <artifactId>kubernetes-client</artifactId>\n37 <version>6.0.0</version>\n38 </dependency>\n39 <dependency>\n40 <groupId>io.fabric8</groupId>\n41 <artifactId>kubernetes-client-api</artifactId>\n42 <version>6.0.0</version>\n43 </dependency>\n44 <dependency>\n45 <groupId>javax</groupId>\n46 <artifactId>javaee-api</artifactId>"
lineNumber: 35
variables:
data: dependency
innerText: "\n io.fabric8\n kubernetes-client\n 6.0.0\n "
matchingXML: <groupId>io.fabric8</groupId><artifactId>kubernetes-client</artifactId><version>6.0.0</version>
- uri: file:///analyzer-lsp/examples/java/pom.xml
message: POM XML dependencies - '<groupId>io.netty</groupId><artifactId>netty-transport-native-epoll</artifactId><version>4.1.76.Final</version><classifier>linux-x86_64</classifier><scope>runtime</scope>'
codeSnip: "43 </dependency>\n44 <dependency>\n45 <groupId>javax</groupId>\n46 <artifactId>javaee-api</artifactId>\n47 <version>${javaee-api.version}</version>\n48 <scope>provided</scope>\n49 </dependency>\n50 <!-- This currently leads to https://github.com/konveyor/analyzer-lsp/issues/392 -->\n51 <dependency>\n52 <groupId>io.netty</groupId>\n53 <artifactId>netty-transport-native-epoll</artifactId>\n54 <version>4.1.76.Final</version>\n55 <classifier>linux-x86_64</classifier>\n56 <scope>runtime</scope>\n57 </dependency>\n58 </dependencies>\n59 \n60 <build>\n61 <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->\n62 <plugins>\n63 <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->"
lineNumber: 52
variables:
data: dependency
innerText: "\n io.netty\n netty-transport-native-epoll\n 4.1.76.Final\n linux-x86_64\n runtime\n "
matchingXML: <groupId>io.netty</groupId><artifactId>netty-transport-native-epoll</artifactId><version>4.1.76.Final</version><classifier>linux-x86_64</classifier><scope>runtime</scope>
- uri: file:///analyzer-lsp/examples/java/pom.xml
message: POM XML dependencies - '<groupId>javax</groupId><artifactId>javaee-api</artifactId><version>${javaee-api.version}</version><scope>provided</scope>'
codeSnip: |-
36 <artifactId>kubernetes-client</artifactId>
37 <version>6.0.0</version>
38 </dependency>
39 <dependency>
40 <groupId>io.fabric8</groupId>
41 <artifactId>kubernetes-client-api</artifactId>
42 <version>6.0.0</version>
43 </dependency>
44 <dependency>
45 <groupId>javax</groupId>
46 <artifactId>javaee-api</artifactId>
47 <version>${javaee-api.version}</version>
48 <scope>provided</scope>
49 </dependency>
50 <!-- This currently leads to https://github.com/konveyor/analyzer-lsp/issues/392 -->
51 <dependency>
52 <groupId>io.netty</groupId>
53 <artifactId>netty-transport-native-epoll</artifactId>
54 <version>4.1.76.Final</version>
55 <classifier>linux-x86_64</classifier>
56 <scope>runtime</scope>
lineNumber: 45
variables:
data: dependency
innerText: "\n javax\n javaee-api\n ${javaee-api.version}\n provided\n "
matchingXML: <groupId>javax</groupId><artifactId>javaee-api</artifactId><version>${javaee-api.version}</version><scope>provided</scope>
- uri: file:///analyzer-lsp/examples/java/pom.xml
message: POM XML dependencies - '<groupId>junit</groupId><artifactId>junit</artifactId><version>4.11</version><scope>test</scope>'
codeSnip: "20 <properties>\n21 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\n22 <maven.compiler.source>1.7</maven.compiler.source>\n23 <maven.compiler.target>1.7</maven.compiler.target>\n24 <javaee-api.version>7.0</javaee-api.version>\n25 </properties>\n26 \n27 <dependencies>\n28 <dependency>\n29 <groupId>junit</groupId>\n30 <artifactId>junit</artifactId>\n31 <version>4.11</version>\n32 <scope>test</scope>\n33 </dependency>\n34 <dependency>\n35 <groupId>io.fabric8</groupId>\n36 <artifactId>kubernetes-client</artifactId>\n37 <version>6.0.0</version>\n38 </dependency>\n39 <dependency>\n40 <groupId>io.fabric8</groupId>"
lineNumber: 29
variables:
data: dependency
innerText: "\n junit\n junit\n 4.11\n test\n "
matchingXML: <groupId>junit</groupId><artifactId>junit</artifactId><version>4.11</version><scope>test</scope>
xml-test-key-match:
description: Test code snippets when match is a key of a XML node
category: potential
incidents:
- uri: file:///analyzer-lsp/examples/java/beans.xml
message: The code snippet should point to <beans> in the beans.xml file
codeSnip: " 8 *\n 9 * http://www.apache.org/licenses/LICENSE-2.0\n10 *\n11 * Unless required by applicable law or agreed to in writing, software\n12 * distributed under the License is distributed on an \"AS IS\" BASIS,\n13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n14 * See the License for the specific language governing permissions and\n15 * limitations under the License.\n16 -->\n17 <beans xmlns=\"http://xmlns.jcp.org/xml/ns/javaee\"\n18 xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n19 xsi:schemaLocation=\"http://xmlns.jcp.org/xml/ns/javaee \n20 http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd\"\n21 version=\"1.1\" bean-discovery-mode=\"all\">\n22 </beans>\n"
lineNumber: 17
variables:
data: beans
innerText: |2+
matchingXML: ""
errors:
error-rule-001: |-
unable to get query info: yaml: unmarshal errors:
line 9: cannot unmarshal !!map into string
unmatched:
- file-002
- lang-ref-002