(final List<File> files, final List<String> classNames)
| 141 | } |
| 142 | |
| 143 | private void process(final List<File> files, final List<String> classNames) throws IOException { |
| 144 | final String excludeQuercus = "org" + File.separatorChar + "htmlunit" + File.separatorChar + "util" + File.separatorChar + "quercus" + File.separatorChar + "servlet"; |
| 145 | |
| 146 | for (final File file : files) { |
| 147 | final String relativePath = file.getAbsolutePath().substring(new File(".").getAbsolutePath().length() - 1); |
| 148 | |
| 149 | if (relativePath.contains(excludeQuercus)) { |
| 150 | continue; |
| 151 | } |
| 152 | |
| 153 | if (file.getName().endsWith(".java")) { |
| 154 | final List<String> lines = FileUtils.readLines(file, SOURCE_ENCODING); |
| 155 | openingCurlyBracket(lines, relativePath); |
| 156 | year(lines, relativePath); |
| 157 | javaDocFirstLine(lines, relativePath); |
| 158 | classJavaDoc(lines, relativePath); |
| 159 | methodFirstLine(lines, relativePath); |
| 160 | methodLastLine(lines, relativePath); |
| 161 | lineBetweenMethods(lines, relativePath); |
| 162 | runWith(lines, relativePath); |
| 163 | deprecated(lines, relativePath); |
| 164 | staticJSMethod(lines, relativePath); |
| 165 | singleAlert(lines, relativePath); |
| 166 | staticLoggers(lines, relativePath); |
| 167 | loggingEnabled(lines, relativePath); |
| 168 | alerts(lines, relativePath); |
| 169 | className(lines, relativePath); |
| 170 | classNameUsed(lines, classNames, relativePath); |
| 171 | spaces(lines, relativePath); |
| 172 | indentation(lines, relativePath); |
| 173 | if (!"package-info.java".equals(file.getName())) { |
| 174 | authorTagAtLeastOne(lines, relativePath); |
| 175 | authorTagNoDuplicates(lines, relativePath); |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | /** |
| 182 | * Ensures that no opening curly bracket exists by itself in a single line. |
no test coverage detected