edu.hm.hafner.analysis.registry.StyleLintDescriptor 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 edu.hm.hafner.analysis.IssueParser;
import edu.hm.hafner.analysis.parser.checkstyle.CheckStyleParser;
/**
* A descriptor for Stylelint. Delegates to {@link CheckStyleParser}.
*
* @author Alexander Brandes
*/
class StyleLintDescriptor extends ParserDescriptor {
private static final String ID = "stylelint";
private static final String NAME = "Stylelint";
StyleLintDescriptor() {
super(ID, NAME);
}
@Override
public IssueParser createParser(final Option... options) {
return new CheckStyleParser();
}
@Override
public String getHelp() {
return "Requires stylelint-checkstyle-reporter."
+ "
Use --custom-formatter node_modules/stylelint-checkstyle-reporter/index.js -o stylelint-warnings.xml
";
}
@Override
public String getUrl() {
return "https://stylelint.io/";
}
@Override
public String getIconUrl() {
return "https://cdn.worldvectorlogo.com/logos/stylelint.svg";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy