All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.hm.hafner.analysis.registry.PcLintDescriptor Maven / Gradle / Ivy

Go to download

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).

There is a newer version: 13.3.0
Show newest version
package edu.hm.hafner.analysis.registry;

import edu.hm.hafner.analysis.IssueParser;
import edu.hm.hafner.analysis.parser.MsBuildParser;

/**
 * A descriptor for the PC-Lint Tool.
 *
 * @author Lorenz Munsch
 */
class PcLintDescriptor extends ParserDescriptor {
    private static final String ID = "pclint";
    private static final String NAME = "PC-Lint Tool";

    PcLintDescriptor() {
        super(ID, NAME);
    }

    @Override
    public IssueParser createParser(final Option... options) {
        return new MsBuildParser();
    }

    @Override
    public String getHelp() {
        return "

Use the following PC-Lint properties to create an output file in the correct format:

"
                + "-v // turn off verbosity\n"
                + "-width(0) // don't insert line breaks (unlimited output width)\n"
                + "-\"format=%f(%l): %t %n: %m\"\n"
                + "-hs1 // The height of a message should be 1\n"
                + "

"; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy