
edu.hm.hafner.analysis.registry.MetrowerksCodeWarriorDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of analysis-model Show documentation
Show all versions of analysis-model Show documentation
This library provides a Java object model to read, aggregate, filter, and query static analysis reports.
It is used by Jenkins' warnings next generation plug-in to visualize the warnings of individual builds.
Additionally, this library is used by a GitHub action to autograde student software projects based on a given set of
metrics (unit tests, code and mutation coverage, static analysis warnings).
package edu.hm.hafner.analysis.registry;
import java.util.Collection;
import edu.hm.hafner.analysis.IssueParser;
import edu.hm.hafner.analysis.parser.MetrowerksCwCompilerParser;
import edu.hm.hafner.analysis.parser.MetrowerksCwLinkerParser;
/**
* A descriptor for the Metrowerks CodeWarrior compiler.
*
* @author Lorenz Munsch
*/
class MetrowerksCodeWarriorDescriptor extends CompositeParserDescriptor {
private static final String ID = "metrowerks";
private static final String NAME = "Metrowerks CodeWarrior Compiler";
MetrowerksCodeWarriorDescriptor() {
super(ID, NAME);
}
@Override
protected Collection extends IssueParser> createParsers() {
return asList(new MetrowerksCwCompilerParser(), new MetrowerksCwLinkerParser());
}
@Override
public String getHelp() {
return "Ensure that the output from the CodeWarrior build tools is in the expected format. "
+ "If there are warnings present, but they are not found, then it is likely that the format is incorrect. "
+ "The mwccarm compiler and mwldarm linker tools may support a configurable message style. "
+ "This can be used to enforce the expected output format, which may be different from Metrowerks "
+ "CodeWarrior (and thus require a different tool). For example the following could be appended to "
+ "the build flags:
"
+ "-msgstyle gcc -nowraplines
";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy