pmd: fix #1091 file extension for fortran seems to be wrong in cpdgui tools

This commit is contained in:
Andreas Dangel 2013-08-03 22:12:19 +02:00
parent 91f2137679
commit acf8db926d
4 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@
Fixed bug 991: AvoidSynchronizedAtMethodLevel for static methods
Fixed bug 1084: NPE at UselessStringValueOfRule.java:36
Fixed bug 1091: file extension for fortran seems to be wrong in cpdgui tools
Fixed bug 1092: Wrong Attribute "excludemarker" in Ant Task Documentation
Fixed bug 1099: UseArraysAsList false positives
Fixed bug 1102: False positive: shift operator parenthesis

View File

@ -6,6 +6,6 @@ package net.sourceforge.pmd.cpd;
public class FortranLanguage extends AbstractLanguage {
public FortranLanguage() {
super(new FortranTokenizer(), ".for");
super(new FortranTokenizer(), ".for", ".f", ".f66", ".f77", ".f90");
}
}

View File

@ -105,7 +105,7 @@ public class GUI implements CPDListener {
public String[] extensions() { return new String[] {".rb" }; }; } },
{"Fortran", new LanguageConfig() {
public Language languageFor(LanguageFactory lf, Properties p) { return lf.createLanguage("fortran"); }
public String[] extensions() { return new String[] {".rb" }; }; } },
public String[] extensions() { return new String[] {".for", ".f", ".f66", ".f77", ".f90" }; }; } },
{"PHP", new LanguageConfig() {
public Language languageFor(LanguageFactory lf, Properties p) { return lf.createLanguage("php"); }
public String[] extensions() { return new String[] {".php" }; }; } },

View File

@ -39,7 +39,7 @@ public enum Language {
//ANY("Any", null, null, null, (String)null),
//UNKNOWN("Unknown", null, "unknown", null, (String)null),
CPP("C++", null, "cpp", null, "h", "c", "cpp", "cxx", "cc", "C"),
FORTRAN("Fortran", null, "fortran", null, "for"),
FORTRAN("Fortran", null, "fortran", null, "for", "f", "f66", "f77", "f90"),
ECMASCRIPT("Ecmascript", null, "ecmascript", EcmascriptRuleChainVisitor.class, "js"),
JAVA("Java", null, "java", JavaRuleChainVisitor.class, "java"),
JSP("Java Server Pages", "JSP", "jsp", JspRuleChainVisitor.class, "jsp"),