Upgrade to com.puppycrawl.tools 8.18 as earlier versions were reported to may cause security problems.
This commit is contained in:
parent
5a0cedf3e4
commit
5987566c1c
2
pom.xml
2
pom.xml
@ -71,7 +71,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.puppycrawl.tools</groupId>
|
<groupId>com.puppycrawl.tools</groupId>
|
||||||
<artifactId>checkstyle</artifactId>
|
<artifactId>checkstyle</artifactId>
|
||||||
<version>6.16.1</version>
|
<version>8.18</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -20,7 +20,6 @@ import com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck;
|
|||||||
import com.puppycrawl.tools.checkstyle.api.FileText;
|
import com.puppycrawl.tools.checkstyle.api.FileText;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.List;
|
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
public class NewlineCheck extends AbstractFileSetCheck {
|
public class NewlineCheck extends AbstractFileSetCheck {
|
||||||
@ -57,8 +56,8 @@ public class NewlineCheck extends AbstractFileSetCheck {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void processFiltered(File aFile, List<String> aLines) {
|
protected void processFiltered(File file, FileText fileText) {
|
||||||
String text = FileText.fromLines(aFile, aLines).getFullText().toString();
|
String text = fileText.getFullText().toString();
|
||||||
|
|
||||||
switch (NEWLINE_TYPE) {
|
switch (NEWLINE_TYPE) {
|
||||||
case LF:
|
case LF:
|
||||||
|
@ -17,6 +17,7 @@ package io.netty.build.checkstyle;
|
|||||||
|
|
||||||
import com.puppycrawl.tools.checkstyle.api.AuditEvent;
|
import com.puppycrawl.tools.checkstyle.api.AuditEvent;
|
||||||
import com.puppycrawl.tools.checkstyle.api.AutomaticBean;
|
import com.puppycrawl.tools.checkstyle.api.AutomaticBean;
|
||||||
|
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||||
import com.puppycrawl.tools.checkstyle.api.Filter;
|
import com.puppycrawl.tools.checkstyle.api.Filter;
|
||||||
|
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
@ -58,4 +59,9 @@ public class SuppressionFilter extends AutomaticBean implements Filter {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void finishLocalSetup() {
|
||||||
|
// NOOP.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user