Add messages and categories ignores to warnings publisher
Change-Id: I97aa2a92643ba0f654f3c01557bf9cb8713911ad Signed-off-by: Michael Jeanson <mjeanson@gmail.com>
This commit is contained in:
parent
c4aab5c22d
commit
e0eb05d7ef
@ -3793,6 +3793,14 @@ def warnings(registry, xml_parent, data):
|
||||
:arg str files-to-ignore: Comma separated list of regular expressions
|
||||
that specifies the files to exclude from the report (based on their
|
||||
absolute filename). (default '')
|
||||
:arg str messages-to-ignore: Newline separated list of regular
|
||||
expressions that specifies the warning messages to exclude form the
|
||||
report (based on the warning messages). By default all warning
|
||||
messages are included
|
||||
:arg str categories-to-ignore: Newline separated list of regular
|
||||
expressions that specifies the warning messages to exclude form the
|
||||
report (based on the warning categories). By default all warning
|
||||
categories are included
|
||||
:arg bool run-always: By default, this plug-in runs only for stable or
|
||||
unstable builds, but not for failed builds. Set to true if the
|
||||
plug-in should run even for failed builds. (default false)
|
||||
@ -3914,6 +3922,8 @@ def warnings(registry, xml_parent, data):
|
||||
warnings_mappings = [
|
||||
('files-to-include', 'includePattern', ''),
|
||||
('files-to-ignore', 'excludePattern', ''),
|
||||
('messages-to-ignore', 'messagesPattern', ''),
|
||||
('categories-to-ignore', 'categoriesPattern', ''),
|
||||
('plugin-name', 'pluginName', '[WARNINGS]'),
|
||||
('run-always', 'canRunOnFailed', False),
|
||||
('detect-modules', 'shouldDetectModules', False),
|
||||
|
@ -22,6 +22,10 @@
|
||||
</parserConfigurations>
|
||||
<includePattern>[a-zA-Z]\.java,[a-zA-Z]\.cpp</includePattern>
|
||||
<excludePattern>[a-zA-Z]\.html,[a-zA-Z]\.js</excludePattern>
|
||||
<messagesPattern>^Test results:.*
|
||||
No sources found skipping Kotlin compile</messagesPattern>
|
||||
<categoriesPattern>WARN.*
|
||||
ERROR</categoriesPattern>
|
||||
<pluginName>[WARNINGS]</pluginName>
|
||||
<canRunOnFailed>true</canRunOnFailed>
|
||||
<shouldDetectModules>true</shouldDetectModules>
|
||||
|
@ -10,6 +10,12 @@ publishers:
|
||||
scanner: FxCop
|
||||
files-to-include: '[a-zA-Z]\.java,[a-zA-Z]\.cpp'
|
||||
files-to-ignore: '[a-zA-Z]\.html,[a-zA-Z]\.js'
|
||||
messages-to-ignore: |-
|
||||
^Test results:.*
|
||||
No sources found skipping Kotlin compile
|
||||
categories-to-ignore: |-
|
||||
WARN.*
|
||||
ERROR
|
||||
run-always: true
|
||||
detect-modules: true
|
||||
resolve-relative-paths: true
|
||||
|
@ -6,6 +6,8 @@
|
||||
<parserConfigurations/>
|
||||
<includePattern/>
|
||||
<excludePattern/>
|
||||
<messagesPattern/>
|
||||
<categoriesPattern/>
|
||||
<pluginName>[WARNINGS]</pluginName>
|
||||
<canRunOnFailed>false</canRunOnFailed>
|
||||
<shouldDetectModules>false</shouldDetectModules>
|
||||
|
Loading…
x
Reference in New Issue
Block a user