You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Karl Pauls (Jira)" <ji...@apache.org> on 2020/10/14 12:55:00 UTC
[jira] [Created] (SLING-9823) Make analyzers report more context
about issues and make it possible to filter reports.
Karl Pauls created SLING-9823:
---------------------------------
Summary: Make analyzers report more context about issues and make it possible to filter reports.
Key: SLING-9823
URL: https://issues.apache.org/jira/browse/SLING-9823
Project: Sling
Issue Type: Improvement
Components: Feature Model Analyser
Affects Versions: Feature Model Analyser 1.3.8
Reporter: Karl Pauls
Assignee: Karl Pauls
Fix For: Feature Model Analyser 1.3.10
Currently, an analyser task just reports a string (either as error or warning) - we should add new methods to AnalyserTaskContext for reporting error/warning.
These methods should take an ArtifactId and a string or an extension name and a string (something like reportArtifactError(ArtifactId, String)...reportExtensionError(String, String) )
This way the analysers can provide more context about a warning/error and we can display them later per artifact instead of a long list. With that we have three types of errors: global (just the string), per artifact id, per extension name - the analyser tasks could be updated to use the new methods where appropriate. Similar, we add new methods to AnalyserResult getting those three types of errors/warnings - and deprecate the two existing ones. They would be changed to return all errors/warnings - so everything would be compatible.
The final piece is ignoring errors/warnings for certain artifacts. If we do the changes as mentioned above - the scanner/analyser does not need to know anything about whether something is ignored. We can handle this in the maven plugin.
We have two options here: either we make this a configuration of the plugin - or we allow that metadata property is added to an artifact in the feature model telling the plugin to not report errors/warnings for this artifact.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)