Warnings Plugin

Plugin Information

Plugin ID warnings
Latest Release 4.23-h-1
Latest Release Date Mar 26, 2013
Sources Github
Support Eclipse Hudson Forum
Issue Tracking Eclipse Bugzilla

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

Quick Overview

Installation Requirements
This plug-in requires the utility plug-in "analysis-core" (called "Static Analysis Utilities" in the update manager). Please ensure that the latest version of this plug-in is also installed.

Description


 

This plug-in is supported by the Static Analysis Collector plug-in that collects different analysis results and shows the results in aggregated trend graphs. Additionally, health reporting and build stability is also based on the aggregated results.

The Warnings plug-in scans the console log or specified log files for warnings of different formats 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, Oracle Invalids, Doxygen, Robocopy, Perforce, Cobol, PHP, Flex
  • 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)
  • Remote API to export the build quality and found warnings
  • Localization available for: DE, JA (Please help to localize findbugs for your locale!)

Labels:

plugin-maven plugin-maven Delete
plugin-report plugin-report Delete
supports-dashboard-view supports-dashboard-view Delete
tier3-compat-plugin tier3-compat-plugin Delete
tier2-plugin tier2-plugin Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Jan 05, 2011

    François Schauber says:

    Hey, How could I use this plug-in with Matrix Jobs? Because when building a mat...

    Hey,

    How could I use this plug-in with Matrix Jobs? Because when building a matrix job, builder output are not visible in the main log while the plug-in only parse this main log.

    Thanks!

    1. Jan 07, 2011

      Ulli Hafner says:

      This is not supported yet, see issue #6772.

      This is not supported yet, see issue #6772.

  2. Nov 08, 2011

    Ben Voigt says:

    I am trying to capture warnings generated by ModelSim (a VHDL compiler/simulator...

    I am trying to capture warnings generated by ModelSim (a VHDL compiler/simulator).

    They use the following format:

    ** Warning: ../MMLC-Cyclone/../common/interleaver/token_passing_ping_pong_streamer.vhd(96): (vcom-1400) Synthesis Warning: Signal "read_addr_signal" is read in the process but is not in the sensitivity list.

    What options do I need to specify for the Compiler Warnings plugin to recognize this pattern? I'm willing to transform this into some other format in my perl script that executes the build (and will probably need to do this anyway in order to fix up the path), but the documentation here doesn't provide any examples of what a warning should look like, or what formats are preferred / most likely to stay maintained.

    1. Nov 09, 2011

      Ulli Hafner says:

      There is a howto at: https://wiki.jenkins-ci.org/display/JENKINS/Warnings+Plugin
      1. Nov 09, 2011

        Ben Voigt says:

        Thanks Uli! This seems to be one of the best-documented plugins, the docs are j...

        Thanks Uli!

        This seems to be one of the best-documented plugins, the docs are just hard to find.