Fixed 852397 (checkstyle frames lacks summary link)
Fixed problem in IllegalType check reported by Venkatesh Prasad Ranganath. Fixed checkstyle.style target in build.xml.
This commit is contained in:
parent
9e5fccda3a
commit
204c472399
|
|
@ -275,6 +275,8 @@
|
|||
<classpath refid="run.classpath"/>
|
||||
<property key="checkstyle.cache.file" file="target/cachefile"/>
|
||||
<property key="checkstyle.header.file" file="docs/java.header"/>
|
||||
<property key="checkstyle.suppressions.file"
|
||||
file="docs/suppressions.xml"/>
|
||||
</checkstyle>
|
||||
<mkdir dir="target/style/frames"/>
|
||||
<mkdir dir="target/style/noframes"/>
|
||||
|
|
|
|||
|
|
@ -207,6 +207,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<h2>Files</h2>
|
||||
<p><a href="overview-frame.html" target="fileFrame">Summary</a></p>
|
||||
<p>
|
||||
<table width="100%">
|
||||
<!-- For each file create its part -->
|
||||
|
|
|
|||
|
|
@ -103,8 +103,11 @@
|
|||
<li class="body">xmllogger.dtd is out-of-date
|
||||
(bug 847974).</li>
|
||||
|
||||
<li class="body">ArrayTypeStyle shouldn't check method definition
|
||||
(bug 849450).</li>
|
||||
<li class="body">ArrayTypeStyle shouldn't check method definition
|
||||
(bug 849450).</li>
|
||||
|
||||
<li class="body">Added link to summary page in
|
||||
checkstyle-frames.xsl (bug 852397).</li>
|
||||
</ul>
|
||||
|
||||
<a name="release3_2"></a>
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ public final class IllegalTypeCheck extends AbstractFormatCheck
|
|||
{
|
||||
mIgnoredMethodNames.clear();
|
||||
for (int i = 0; i < aMethodNames.length; i++) {
|
||||
mIllegalClassNames.add(aMethodNames[i]);
|
||||
mIgnoredMethodNames.add(aMethodNames[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,4 +20,19 @@ public class IllegalTypeCheckTest extends BaseCheckTestCase {
|
|||
|
||||
verify(checkConfig, getPath("coding" + File.separator + "InputIllegalType.java"), expected);
|
||||
}
|
||||
|
||||
public void testIgnoreMethodNames() throws Exception {
|
||||
DefaultConfiguration checkConfig = createCheckConfig(IllegalTypeCheck.class);
|
||||
checkConfig.addAttribute("ignoredMethodNames", "table2");
|
||||
|
||||
String[] expected = {
|
||||
"6:13: Declaring variables, return values or parameters of type 'AbstractClass' is not allowed.",
|
||||
"9:13: Declaring variables, return values or parameters of type "
|
||||
+ "'au.com.redhillconsulting.jamaica.tools.checkstyle.InputIllegalType.AbstractClass'"
|
||||
+ " is not allowed.",
|
||||
"16:13: Declaring variables, return values or parameters of type 'java.util.Hashtable' is not allowed.",
|
||||
};
|
||||
|
||||
verify(checkConfig, getPath("coding" + File.separator + "InputIllegalType.java"), expected);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue