Warnings Plugin

Plugin Information

Plugin ID warnings
Latest Release 2.14
Latest Release Date Sep 24, 2009
Changes in Latest Release via Fisheye
Maintainer(s) n/a (java.net id: hafner)
Issue Tracking Open Issues

This plugin generates the trend report for compiler warnings in the console log or in log files.

Description


 
The Warnings plug-in scans the console log or specified log files for compiler warnings and reports the number of warnings found. This plug-in is part of the suite of static code analysis plug-ins that are documented on a separate WIKI page.

  • Support for javac (ant, maven, command line), Eclipse Java Compiler, JavaDoc Compiler, Hudson HPI, MSBuild, GCC, GNU Linker, SUN Studio C++, Gnat (Ada), Erlang, PC-Lint compiler warnings (configuration of PcLint), Eclipse Buckminster and Oracle Invalids
  • Build summary showing the new and fixed warnings of a build
  • Several trend reports showing the number of warnings per build
  • Overview of the found warnings per module, package, category, or type
    • Parsing of Maven pom.xml or Ant build.xml configuration files to obtain the module or project name
    • Parsing of Java or C# files to obtain the package or name space name
  • Detail reports of the found warnings optionally filtered by severity (or new and fixed)
  • Colored HTML display of the corresponding source file and warning lines:
    • Direct link to the warning line
    • Highlighting of single lines as well as line ranges
    • Highlighting of multiple line ranges per warning (different color for primary range)
    • Tool tip describing the warning message
  • Failure threshold to mark a build as unstable
  • Configurable project health support
  • Works with the freestyle and native m2 build option of Hudson (activated on goal compile)
  • Localization available for: DE (Please help to localize findbugs for your locale!)

The current release is available in the download section. This plug-in is developed and maintained by Ullrich Hafner. Please use the Hudson mailing lists or issue tracker to ask questions, create feature request or bug reports, since I don't read the comment section on this page regularly.

Adding support for new warning types

Extending the existing set of supported warning formats is quite easy. If the format of the warnings messages could be parsed by an regular expression, then you only need to provide a new parser class and a corresponding test case:

  1. Add a new class YourFormatParser to the package hudson.plugins.warnings, see GccParser or JavacParser as examples
  2. Add a new test case YourFormatParserTest to the package hudson.plugins.warnings, see GccParserTest or JavacParserTest as examples.
  3. Register the new parser in the method getAllParsers() of the registry ParserRegistry

Changelog

Release 2.14

  • Added support for GCC include warnings (issue #4383, thanks to metavalon for the patch)
  • Added support for YUI Compressor warnings (issue #4502, thanks to pascalra for the patch)
  • Fixed warning counter if the same warning occurs several times (issue #4472)
  • Improved GCC warning detection (issue #4382)
  • Fixed display of source code browsing of old builds

Release 2.12

  • Added support for Objective C warnings (issue #4274)
  • Fixed False Warnings reported when using the exclude (issue #4260)
  • Copy affected files to build folder to provide source code browsing of old builds

Release 2.11

Release 2.10

  • Fixed the "run on failed builds" option

Release 2.9

  • Added an include filter for warnings, thanks to Alexey Vladykin for the patch (issue #3866)
  • Added support for Eclipse Buckminster, thanks to Johannes Utzig for the patch
  • Added remote API for the plug-in results (report: thanks to Rob Oxspring for the patch)
  • Improved parsing of gcc messages (report)

Release 2.8

  • Added new trend graphs and a configuration screen per job or per user.
  • Fixed module detection if the plug-in parses warnings from several files (issue #3620).
  • Added an option to skip the console log and to parse only the warnings in the specified set of files (issue #3339).
  • Added support for MSBuild parser error messages (issue #3582).

Release 2.7

  • Improved computation of new warnings detection (report)
  • Added Japanese localization (thanks to Itou Akihiro!)

Release 2.5

  • Added configuration option to invoke the plug-in for failed builds (issue #3327).
  • Fixed build health reporting and failure thresholds for native m2 builds (issue #3310).

Release 2.4

  • Added support for another type of Pc-Lint warnings

Release 2.3

  • Added support of IAR and PcLint warnings (Thanks to Claus Klein for the patch)
  • Added build status thresholds: now you can set the build status to unstable or failure if the total number of the number of new warnings exceeds the defined thresholds (issue #2537, issue #3024).
  • Improved new warning detection: now warnings are only considered as new if the associated source code context (3 lines of code) differs.

Release 2.2

  • Added validation of file pattern in configuration screen

Release 2.1

  • Fixed priority evaluation radio buttons in configuration screen (issue #2805)

Release 2.0

  • Added new configuration entry "default encoding" that is used when the plug-in reads or parses files (issue #1999)
  • Added configuration option to specify the actual warnings parsers (issue #2462). This fix should also reduce the memory footprint and execution time (issue #2660).
  • Guess the Ant or Maven module names when scanning the files (issue #2657).

Release 1.x Changelog

Labels:

plugin-maven plugin-maven Delete
plugin-publisher plugin-publisher Delete
plugin-report plugin-report Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.