Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/pitest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ concurrency:

jobs:
test:
if: github.repository == 'checkstyle/checkstyle'
strategy:
matrix:
profile:
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/puppycrawl/tools/checkstyle/Checker.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ private void fireAuditFinished() {
private void processFiles(List<File> files) throws CheckstyleException {
for (final File file : files) {
String fileName = null;
final String filePath = file.getPath();
try {
fileName = file.getAbsolutePath();
final long timestamp = file.lastModified();
Expand All @@ -308,15 +309,15 @@ private void processFiles(List<File> files) throws CheckstyleException {

// We need to catch all exceptions to put a reason failure (file name) in exception
throw new CheckstyleException("Exception was thrown while processing "
+ file.getPath(), ex);
+ filePath, ex);
}
catch (Error error) {
if (fileName != null && cacheFile != null) {
cacheFile.remove(fileName);
}

// We need to catch all errors to put a reason failure (file name) in error
throw new Error("Error was thrown while processing " + file.getPath(), error);
throw new Error("Error was thrown while processing " + filePath, error);
}
}
}
Expand Down