MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / process

Method process

src/test/java/org/htmlunit/CodeStyleTest.java:143–179  ·  view source on GitHub ↗
(final List<File> files, final List<String> classNames)

Source from the content-addressed store, hash-verified

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.

Callers 15

codeStyleMethod · 0.95
makeFnFunction · 0.45
api.jsFile · 0.45
security.jsFile · 0.45
makeFnFunction · 0.45
htmx.test.tsFile · 0.45
makeFnFunction · 0.45
htmx.test.tsFile · 0.45
makeFnFunction · 0.45
api.jsFile · 0.45
security.jsFile · 0.45
makeFnFunction · 0.45

Calls 15

openingCurlyBracketMethod · 0.95
yearMethod · 0.95
javaDocFirstLineMethod · 0.95
classJavaDocMethod · 0.95
methodFirstLineMethod · 0.95
methodLastLineMethod · 0.95
lineBetweenMethodsMethod · 0.95
runWithMethod · 0.95
deprecatedMethod · 0.95
staticJSMethodMethod · 0.95
singleAlertMethod · 0.95
staticLoggersMethod · 0.95

Tested by

no test coverage detected