@@ -74,6 +74,11 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
74
74
@Parameter (defaultValue = " false" , property = " spotbugs.sarifOutput" , required = true )
75
75
boolean sarifOutput
76
76
77
+ /**
78
+ * Sarif full Path used with sarif.
79
+ *
80
+ * @since 4.3.1
81
+ */
77
82
@Parameter (defaultValue = " false" , property = " spotbugs.sarifFullPath" , required = true )
78
83
boolean sarifFullPath
79
84
@@ -87,7 +92,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
87
92
88
93
89
94
/**
90
- * Set the name of the output SARIF file produced
95
+ * Set the name of the output SARIF file produced.
91
96
*
92
97
* @since 4.7.2.2
93
98
*/
@@ -142,28 +147,24 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
142
147
143
148
/**
144
149
* Directory containing the test class files for Spotbugs to analyze.
145
- *
146
150
*/
147
151
@Parameter (defaultValue = ' ${project.build.testOutputDirectory}' , required = true )
148
152
File testClassFilesDirectory
149
153
150
154
/**
151
155
* Location of the Xrefs to link to.
152
- *
153
156
*/
154
157
@Parameter (defaultValue = ' ${project.reporting.outputDirectory}/xref' )
155
158
File xrefLocation
156
159
157
160
/**
158
161
* Location of the Test Xrefs to link to.
159
- *
160
162
*/
161
163
@Parameter (defaultValue = ' ${project.reporting.outputDirectory}/xref-test' )
162
164
File xrefTestLocation
163
165
164
166
/**
165
167
* The directories containing the sources to be compiled.
166
- *
167
168
*/
168
169
@Parameter (defaultValue = ' ${project.compileSourceRoots}' , required = true , readonly = true )
169
170
List compileSourceRoots
@@ -186,14 +187,12 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
186
187
187
188
/**
188
189
* Run Spotbugs with -sourcepath parameter populated with the known source roots.
189
- *
190
190
*/
191
191
@Parameter (defaultValue = " false" , property = " spotbugs.addSourceDirs" )
192
192
boolean addSourceDirs
193
193
194
194
/**
195
195
* List of artifacts this plugin depends on. Used for resolving the Spotbugs core plugin.
196
- *
197
196
*/
198
197
@Parameter (property = " plugin.artifacts" , required = true , readonly = true )
199
198
List pluginArtifacts
@@ -207,14 +206,12 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
207
206
208
207
/**
209
208
* The local repository, needed to download the coreplugin jar.
210
- *
211
209
*/
212
210
@Parameter (property = " localRepository" , required = true , readonly = true )
213
211
ArtifactRepository localRepository
214
212
215
213
/**
216
214
* Remote repositories which will be searched for the coreplugin jar.
217
- *
218
215
*/
219
216
@Parameter (property = " project.remoteArtifactRepositories" , required = true , readonly = true )
220
217
List remoteArtifactRepositories
@@ -227,14 +224,12 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
227
224
228
225
/**
229
226
* Maven Project.
230
- *
231
227
*/
232
228
@Parameter (property = " project" , required = true , readonly = true )
233
229
MavenProject project
234
230
235
231
/**
236
232
* Encoding used for xml files. Default value is UTF-8.
237
- *
238
233
*/
239
234
@Parameter (defaultValue = " UTF-8" , readonly = true )
240
235
String xmlEncoding
@@ -259,7 +254,6 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
259
254
260
255
/**
261
256
* Threshold of minimum bug severity to report. Valid values are High, Default, Low, Ignore, and Exp (for experimental).
262
- *
263
257
*/
264
258
@Parameter (defaultValue = " Default" , property = " spotbugs.threshold" )
265
259
String threshold
@@ -272,119 +266,86 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
272
266
273
267
/**
274
268
* Used to look up Artifacts in the remote repository.
275
- *
276
269
*/
277
270
@Component (role = RepositorySystem .class)
278
271
RepositorySystem factory
279
272
280
273
/**
281
- * <p >
282
274
* File name of the include filter. Only bugs in matching the filters are reported.
283
- * </p>
284
- *
285
275
* <p >
286
276
* Potential values are a filesystem path, a URL, or a classpath resource.
287
- * </p>
288
- *
289
277
* <p >
290
278
* This parameter is resolved as resource, URL, then file. If successfully
291
279
* resolved, the contents of the configuration is copied into the
292
280
* <code >${project.build.directory}</code>
293
281
* directory before being passed to Spotbugs as a filter file.
294
282
* It supports multiple files separated by a comma
295
- * </p>
296
283
*
297
284
* @since 1.0-beta-1
298
285
*/
299
286
@Parameter (property = " spotbugs.includeFilterFile" )
300
287
String includeFilterFile
301
288
302
289
/**
303
- * <p >
304
290
* File name for include filter files. Only bugs in matching the filters are reported.
305
- * </p>
306
- *
307
291
* <p >
308
292
* Potential values are a filesystem path, a URL, or a classpath resource.
309
- * </p>
310
- *
311
293
* <p >
312
294
* This is an alternative to <code >< ; includeFilterFile> ; </code> which allows multiple
313
295
* files to be specified as separate elements in a pom.
314
- * </p>
315
- *
316
296
* <p >
317
297
* This parameter is resolved as resource, URL, then file. If successfully
318
298
* resolved, the contents of the configuration is copied into the
319
299
* <code >${project.build.directory}</code>
320
300
* directory before being passed to Spotbugs as a filter file.
321
- * </p>
322
301
*
323
302
* @since 4.7.1.0
324
303
*/
325
304
@Parameter (property = " spotbugs.includeFilterFiles" )
326
305
List includeFilterFiles
327
306
328
307
/**
329
- * <p >
330
308
* File name of the exclude filter. Bugs matching the filters are not reported.
331
- * </p>
332
- *
333
309
* <p >
334
310
* Potential values are a filesystem path, a URL, or a classpath resource.
335
- * </p>
336
- *
337
311
* <p >
338
312
* This parameter is resolved as resource, URL, then file. If successfully
339
313
* resolved, the contents of the configuration is copied into the
340
314
* <code >${project.build.directory}</code>
341
315
* directory before being passed to Spotbugs as a filter file.
342
316
* It supports multiple files separated by a comma
343
- * </p>
344
317
*
345
318
* @since 1.0-beta-1
346
319
*/
347
320
@Parameter (property = " spotbugs.excludeFilterFile" )
348
321
String excludeFilterFile
349
322
350
323
/**
351
- * <p >
352
324
* File name for exclude filter files. Bugs matching the filters are not reported.
353
- * </p>
354
- *
355
325
* <p >
356
326
* This is an alternative to <code >< ; excludeFilterFile> ; </code> which allows multiple
357
327
* files to be specified as separate elements in a pom.
358
- * </p>
359
- *
360
328
* <p >
361
329
* This parameter is resolved as resource, URL, then file. If successfully
362
330
* resolved, the contents of the configuration is copied into the
363
331
* <code >${project.build.directory}</code>
364
332
* directory before being passed to Spotbugs as a filter file.
365
- * </p>
366
333
*
367
334
* @since 4.7.1.0
368
335
*/
369
336
@Parameter (property = " spotbugs.excludeFilterFiles" )
370
337
List excludeFilterFiles
371
338
372
339
/**
373
- * <p >
374
340
* File names of the baseline files. Bugs found in the baseline files won't be reported.
375
- * </p>
376
- *
377
341
* <p >
378
342
* Potential values are a filesystem path, a URL, or a classpath resource.
379
- * </p>
380
- *
381
343
* <p >
382
344
* This parameter is resolved as resource, URL, then file. If successfully
383
345
* resolved, the contents of the configuration is copied into the
384
346
* <code >${project.build.directory}</code>
385
347
* directory before being passed to Spotbugs as a filter file.
386
- * </p>
387
- *
348
+ * <p >
388
349
* This is a comma-delimited list.
389
350
*
390
351
* @since 2.4.1
@@ -393,25 +354,17 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
393
354
String excludeBugsFile
394
355
395
356
/**
396
- * <p >
397
357
* File names of the baseline files. Bugs found in the baseline files won't be reported.
398
- * </p>
399
- *
400
358
* <p >
401
359
* Potential values are a filesystem path, a URL, or a classpath resource.
402
- * </p>
403
- *
404
360
* <p >
405
361
* This is an alternative to <code >< ; excludeBugsFile> ; </code> which allows multiple
406
362
* files to be specified as separate elements in a pom.
407
- * </p>
408
- *
409
363
* <p >
410
364
* This parameter is resolved as resource, URL, then file. If successfully
411
365
* resolved, the contents of the configuration is copied into the
412
366
* <code >${project.build.directory}</code>
413
367
* directory before being passed to Spotbugs as a filter file.
414
- * </p>
415
368
*
416
369
* @since 4.7.1.0
417
370
*/
@@ -459,32 +412,23 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
459
412
String omitVisitors
460
413
461
414
/**
462
- * <p >
463
415
* The plugin list to include in the report. This is a comma-delimited list.
464
- * </p>
465
- *
466
416
* <p >
467
417
* Potential values are a filesystem path, a URL, or a classpath resource.
468
- * </p>
469
- *
470
418
* <p >
471
419
* This parameter is resolved as resource, URL, then file. If successfully
472
420
* resolved, the contents of the configuration is copied into the
473
421
* <code >${project.build.directory}</code>
474
422
* directory before being passed to Spotbugs as a plugin file.
475
- * </p>
476
423
*
477
424
* @since 1.0-beta-1
478
425
*/
479
426
@Parameter (property = " spotbugs.pluginList" )
480
427
String pluginList
481
428
482
429
/**
483
- * <p >
484
430
* Collection of PluginArtifact to work on. (PluginArtifact contains groupId, artifactId, version, type.)
485
431
* See <a href =" ./usage.html#Using Detectors from a Repository" >Usage</a> for details.
486
- * </p>
487
- *
488
432
*
489
433
* @since 2.4.1
490
434
*/
@@ -586,9 +530,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
586
530
int timeout
587
531
588
532
/**
589
- * <p >
590
533
* The arguments to pass to the forked VM (ignored if fork is disabled).
591
- * </p>
592
534
*
593
535
* @since 2.4.1
594
536
*/
@@ -618,9 +560,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
618
560
String userPrefs
619
561
620
562
/**
621
- * <p >
622
563
* System properties to set in the VM (or the forked VM if fork is enabled).
623
- * <p >
624
564
*
625
565
* @since 4.3.0
626
566
*/
0 commit comments