Update the pyflakes warning plugin

This commit is contained in:
Pierre-Yves Chibon 2014-02-11 14:01:23 +01:00
parent 7d4804ea50
commit d9ef700395

View file

@ -1,21 +1,19 @@
hudson.plugins.warnings.WarningsPublisher.xml
=============================================
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<!-- plugin requested by user rholy (ticket #4175) --> <!-- plugin requested by user rholy (ticket #4175) -->
<hudson.plugins.warnings.WarningsDescriptor plugin="warnings@4.38"> <hudson.plugins.warnings.WarningsDescriptor plugin="warnings@4.39">
<groovyParsers> <groovyParsers>
<hudson.plugins.warnings.GroovyParser> <hudson.plugins.warnings.GroovyParser>
<name>pyflakes</name> <name>pyflakes</name>
<regexp>^(.*):([0-9]*):(.*)$</regexp> <regexp>^(.*):([0-9]*):(.*)$</regexp>
<script>import hudson.plugins.warnings.parser.Warning <script>import hudson.plugins.warnings.parser.Warning
import hudson.plugins.analysis.util.model.Priority import hudson.plugins.analysis.util.model.Priority
String fileName = matcher.group(1) String fileName = matcher.group(1)
String category = &quot;PyFlakes Error&quot; String category = &quot;PyFlakes Error&quot;
String lineNumber = matcher.group(2) String lineNumber = matcher.group(2)
String message = matcher.group(3) String message = matcher.group(3)
return new Warning(fileName, Integer.parseInt(lineNumber), category, &quot;PyFlakes Parser&quot;, message, Priority.NORMAL);</script> return new Warning(fileName, Integer.parseInt(lineNumber), category, &quot;PyFlakes Parser&quot;, message, Priority.NORMAL);</script>
<example></example> <example></example>
<linkName>https://pypi.python.org/pypi/pyflakes</linkName> <linkName>https://pypi.python.org/pypi/pyflakes</linkName>
<trendName>pyflakes errors</trendName> <trendName>pyflakes errors</trendName>