Warnings Plugin

This plugin generates the trend report for compiler warnings in the build log  

Description


 
The Warnings plug-in scans the build log 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 compiler warnings and Oracle Invalids
  • Build summary showing the new and fixed warnings of a build
  • Trend reports showing the number of warnings in corresponding colors
    • Severity Trend: visualizes the number of warnings per severity
    • Threshold Trend: visualizes the number of warnings below and above the health thresholds
  • 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.

Changelog

Release 1.26

  • Added support for Gnat (Ada compiler) warnings (thanks to Bernhard Berger for the patch, issue #2607)
  • Added support for Erlang warnings (thanks to Stefan Brausch for the patch, issue #2621)

Release 1.24

  • Fixed aggregation for packages (thanks to Vladimir Kvashin for the patch)

Release 1.23

  • Added zero warnings high score status: you will see if you reached a new high score (e.g., the time your build stays in a zero warnings state). If you have a zero warnings build, but no high score yet then you will see the number of days still to go until you reach the high score.
  • Copy files that contain annotations from slave to master (issue #1749, issue #2371)
  • Fixed overall module summary in m2 jobs (wrong number of scanned files: issue #2347)
  • Added detection of fatal compile errors (MSBuild parser, see issue #2511)

Release 1.22

  • Added support for GNU Linker errors (thanks to Brian Gerkey for the patch)

Release 1.21

  • Added support for Java Invalids on Oracle databases
  • Improved regular expression for GCC parser (now correctly works with line numbers and columns, thanks to Brian Gerkey for the patch)

Release 1.20

  • Improved performance of relative file name resolution (thanks to Alfred Messner for the patch)
  • Fixed wrong links to package and module details if the name contains illegal hyperlink characters (issue #2476).
  • Tables are now sorted by the first column on loading (issue #2464).

Release 1.19

  • Improved regular expression for ant javac warnings: now different task names are handled correctly
  • Improved regular expression for MSBuild warnings: warning identifiers are parsed case insensitve now (issue #2383, issue #2393)

Release 1.18

  • Added option to exclude files from the report (issue #2359: thanks to Xavier Le Vourch for providing a patch).
  • Fixed FileNotFoundExceptions if plug-in is used in a master slave setup (issue #2371).

Release 1.17:

  • Added a parser for JavaDoc warnings (issue #2358)
  • Added a parser for Eclipse compiler warnings (issue #2308)

Release 1.16:

  • Fixed display of number of warnings (all, high, normal, low)

Release 1.15:

Release 1.14:

  • Added configuration option to scan for warnings in arbitrary files rather than only in the build log.

Release 1.13:

  • Added support for SUN Studio C++ compiler warnings (issue #2281)
  • Added support for parsing and visualization of invalids of an Oracle database
  • Scan for files if the warning report references relative filenames only (issue #1733)
  • Fixed width and tooltips of the summary images that show the distribution per module, package, etc.
  • Fixed tab view rendering for internet explorer
  • Fixed display of filenames if there is no path segment in a filename (issue #1727)
  • Improved regular expression for MS build warnings (issue #1728)

Release 1.12:

  • Enhanced health and stability evaluation: added configuration of severities that should be considered during evaluation (issue #2003, issue #2202)
  • Fixed missing details tabs (issue #2284)

Release 1.11:

  • Added support for GCC compiler errors and warnings (thanks to Gregory Roth for providing this parser)

Release 1.10:

  • Show spinner image during loading of tab content.
  • Added number of items in the label of a tab.

Release 1.9:

  • Added dynamic loading of the tab content in the detail pages.

Release 1.8:

  • Improved regular expression for ANT warnings (issue #2133)

Release 1.7:

Release 1.6:

  • Added different help texts for maven or freestyle configuration
  • Parsing of ant build.xml or maven pom.xml files is now only done if the build runs with the corresponding runner (issue #1898)
  • Ignore maven projects without target folder (issue #1813)
  • Reduced mermory footprint of parser (issue #1960)
  • Fixed NPE during computation of new warnings (issue #2093)
  • "Zero warnings since build #x" indicator should work correctly now (issue #1533)
  • Height of trend graph can be changed for the m2 project type, too (issue #2115)

Release 1.5:

  • New file overview page that shows the distribution per file
  • Added source code links to warnings table
  • Added support for maven javac compiler warnings (issue #1839)
  • Show line number of files in all warning detail views (issue #1974)
  • Improved layout (css) of the tab

Release 1.4:

  • New result UI with drill-down and statistics of modules, packages, severities, categories, types, overview, details, fixed and new warnings
  • Added parsing of ANT build.xml files to extract the project name (issue #1560)
  • Improved parsing of Java files to extract the package name (issue #1828, issue #1829)
  • Don't abort this plug-in if the build failed (otherwise we will not see the errors)
  • Fixed source code tooltip (issue #1864)

Release 1.3:

  • Added support for javac warnings from ant tasks (report)
  • Ignore Hudson's auto-refresh option in detail pages
  • Only use successful builds as base for computing the new and fixed warnings

Release 1.2:

  • Added support for MSBuild warnings
  • Fixed backward compatibility with Hudson 1.180

Release 1.1:

  • Fixed missing configuration page 

Release 1.0:

Labels

  Edit Labels