Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Descriptors for all parsers #548

Closed
wants to merge 12 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.AcuCobolParser;

/**
* A Descriptor for the AcuCobol warnings.
*
* @author Lorenz Munsch
*/
class AcuCobolDescriptor extends ParserDescriptor {

private static final String ID = "acu-cobol";
private static final String NAME = "AcuCobol";

/**
* ctor for the abstract Parser Descriptor class.
*/
AcuCobolDescriptor() {
super(ID, NAME, new AcuCobolParser());
}
}
21 changes: 21 additions & 0 deletions src/main/java/edu/hm/hafner/analysis/descriptor/AjcDescriptor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.AjcParser;

/**
* A Descriptor for the Ajc warnings.
*
* @author Lorenz Munsch
*/
class AjcDescriptor extends ParserDescriptor {

private static final String ID = "aspectj";
private static final String NAME = "AspectJ";

/**
* ctor for the abstract Parser Descriptor class.
*/
AjcDescriptor() {
super(ID, NAME, new AjcParser());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.violations.AndroidLintParserAdapter;

/**
* A Descriptor for the AndroidLint warnings.
*
* @author Lorenz Munsch
*/
class AndroidLintDescriptor extends ParserDescriptor {

private static final String ID = "android-lint";
private static final String NAME = "Android Lint";

/**
* ctor for the abstract Parser Descriptor class.
*/
AndroidLintDescriptor() {
super(ID, NAME, new AndroidLintParserAdapter());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.AnsibleLintParser;

/**
* A Descriptor for the AnsibleLint warnings.
*
* @author Lorenz Munsch
*/
class AnsibleLintDescriptor extends ParserDescriptor {

private static final String ID = "ansiblelint";
private static final String NAME = "Ansible Lint";

/**
* ctor for the abstract Parser Descriptor class.
*/
AnsibleLintDescriptor() {
super(ID, NAME, new AnsibleLintParser());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.AntJavacParser;

/**
* A Descriptor for the AntJavac warnings.
*
* @author Lorenz Munsch
*/
class AntJavacDescriptor extends ParserDescriptor {

private static final String ID = "ant-javac";
private static final String NAME = "Ant Javac";

/**
* ctor for the abstract Parser Descriptor class.
*/
AntJavacDescriptor() {
super(ID, NAME, new AntJavacParser());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.Armcc5CompilerParser;

/**
* A Descriptor for the Armcc5Compiler warnings.
*
* @author Lorenz Munsch
*/
class Armcc5CompilerDescriptor extends ParserDescriptor {

private static final String ID = "armcc5";
private static final String NAME = "Armcc5 Compiler";

/**
* ctor for the abstract Parser Descriptor class.
*/
Armcc5CompilerDescriptor() {
super(ID, NAME, new Armcc5CompilerParser());
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.ArmccCompilerParser;

/**
* A Descriptor for the ArmccCompiler warnings.
*
* @author Lorenz Munsch
*/
class ArmccCompilerDescriptor extends ParserDescriptor {

private static final String ID = "armcc";
private static final String NAME = "Armcc Compiler";

/**
* ctor for the abstract Parser Descriptor class.
*/
ArmccCompilerDescriptor() {
super(ID, NAME, new ArmccCompilerParser());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.BuckminsterParser;

/**
* A Descriptor for the Buckminster warnings.
*
* @author Lorenz Munsch
*/
class BuckminsterDescriptor extends ParserDescriptor {

private static final String ID = "buckminster";
private static final String NAME = "Buckminster";

/**
* ctor for the abstract Parser Descriptor class.
*/
BuckminsterDescriptor() {
super(ID, NAME, new BuckminsterParser());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.CadenceIncisiveParser;

/**
* A Descriptor for the CadenceIncisive warnings.
*
* @author Lorenz Munsch
*/
class CadenceIncisiveDescriptor extends ParserDescriptor {

private static final String ID = "cadence";
private static final String NAME = "Cadence Incisive";

/**
* ctor for the abstract Parser Descriptor class.
*/
CadenceIncisiveDescriptor() {
super(ID, NAME, new CadenceIncisiveParser());
}
}
21 changes: 21 additions & 0 deletions src/main/java/edu/hm/hafner/analysis/descriptor/CcmDescriptor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.ccm.CcmParser;

/**
* A Descriptor for the Ccm warnings.
*
* @author Lorenz Munsch
*/
class CcmDescriptor extends ParserDescriptor {

private static final String ID = "ccm";
private static final String NAME = "CCM";

/**
* ctor for the abstract Parser Descriptor class.
*/
CcmDescriptor() {
super(ID, NAME, new CcmParser());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.checkstyle.CheckStyleParser;

/**
* A Descriptor for the Checkstyle warnings.
*
* @author Lorenz Munsch
*/
class CheckstyleDescriptor extends ParserDescriptor {

private static final String ID = "checkstyle";
private static final String NAME = "CheckStyle";

/**
* ctor for the abstract Parser Descriptor class.
*/
CheckstyleDescriptor() {
super(ID, NAME, new CheckStyleParser());
}

/**
*
* Defines the default resultfile name and extension.
*
* @return the name of the resultfile
*/
@Override
public String getPattern() {
return "**/checkstyle-result.xml";
}

/**
*
* Determines the checker URL.
*
* @return the checker URL or empty String
*/
@Override
public String getUrl() {
return "https://checkstyle.org";
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.ClangParser;

/**
* A Descriptor for the Clang parser.
*
* @author Lorenz Munsch
*/
class ClangDescriptor extends ParserDescriptor {

private static final String ID = "clang";
private static final String NAME = "Clang";

/**
* ctor for the abstract Parser Descriptor class.
*/
ClangDescriptor() {
super(ID, NAME, new ClangParser());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.ClangTidyParser;

/**
* A Descriptor for the Clang tidy parser.
*
* @author Lorenz Munsch
*/
class ClangTidyDescriptor extends ParserDescriptor {

private static final String ID = "clang-tidy";
private static final String NAME = "Clang-Tidy";

/**
* ctor for the abstract Parser Descriptor class.
*/
ClangTidyDescriptor() {
super(ID, NAME, new ClangTidyParser());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.CodeAnalysisParser;

/**
* A Descriptor for the Code Analysis parser.
*
* @author Lorenz Munsch
*/
class CodeAnalysisDescriptor extends ParserDescriptor {

private static final String ID = "code-analysis";
private static final String NAME = "Code Analysis";

/**
* ctor for the abstract Parser Descriptor class.
*/
CodeAnalysisDescriptor() {
super(ID, NAME, new CodeAnalysisParser());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.CoolfluxChessccParser;

/**
* A Descriptor for the Coold Flux Chesscc parser.
*
* @author Lorenz Munsch
*/
class CoolfluxChessccDescriptor extends ParserDescriptor {

private static final String ID = "coolflux";
private static final String NAME = "Coolflux DSP Compiler";

/**
* ctor for the abstract Parser Descriptor class.
*/
CoolfluxChessccDescriptor() {
super(ID, NAME, new CoolfluxChessccParser());
}
}
21 changes: 21 additions & 0 deletions src/main/java/edu/hm/hafner/analysis/descriptor/CpdDescriptor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.dry.cpd.CpdParser;

/**
* A Descriptor for the Cpfr parser.
*
* @author Lorenz Munsch
*/
class CpdDescriptor extends ParserDescriptor {

private static final String ID = "cpd";
private static final String NAME = "CPD";

/**
* ctor for the abstract Parser Descriptor class.
*/
CpdDescriptor() {
super(ID, NAME, new CpdParser());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package edu.hm.hafner.analysis.descriptor;

import edu.hm.hafner.analysis.parser.CppLintParser;

/**
* A Descriptor for the Cpp Lint parser.
*
* @author Lorenz Munsch
*/
class CppLintDescriptor extends ParserDescriptor {

private static final String ID = "cpplint";
private static final String NAME = "CppLint";

/**
* ctor for the abstract Parser Descriptor class.
*/
CppLintDescriptor() {
super(ID, NAME, new CppLintParser());
}
}
Loading