Browse Source

Exclude node_modules from NoHttp checks

Closes gh-32980
pull/33047/head
Sébastien Deleuze 2 years ago
parent
commit
fe74fcfded
  1. 2
      buildSrc/src/main/java/org/springframework/build/CheckstyleConventions.java

2
buildSrc/src/main/java/org/springframework/build/CheckstyleConventions.java

@ -64,7 +64,7 @@ public class CheckstyleConventions { @@ -64,7 +64,7 @@ public class CheckstyleConventions {
NoHttpExtension noHttp = project.getExtensions().getByType(NoHttpExtension.class);
noHttp.setAllowlistFile(project.file("src/nohttp/allowlist.lines"));
noHttp.getSource().exclude("**/test-output/**", "**/.settings/**",
"**/.classpath", "**/.project", "**/.gradle/**");
"**/.classpath", "**/.project", "**/.gradle/**", "**/node_modules/**");
List<String> buildFolders = List.of("bin", "build", "out");
project.allprojects(subproject -> {
Path rootPath = project.getRootDir().toPath();

Loading…
Cancel
Save