Skip to content

Commit 1294478

Browse files
committed
Fix maxFileLines comparison
1 parent 98f3d6f commit 1294478

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/overengineer/inlineproblems/utils/FileUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static boolean ignoreFile(String fileName, int lineCount) {
1616

1717
if (fileName != null) {
1818
for (var e : settings.getFileExtensionBlacklist().split(";")) {
19-
if (e.isBlank() || e.isEmpty() || e.equals(";")) continue;
19+
if (e.isBlank() || e.equals(";")) continue;
2020
if (fileName.endsWith(e)) {
2121
ignore = true;
2222
break;
@@ -28,7 +28,7 @@ public static boolean ignoreFile(String fileName, int lineCount) {
2828
var maxFileLines = settings.getMaxFileLines();
2929

3030
// maxFileLines == 0 => line count is ignored
31-
if (maxFileLines > 0 && lineCount >= maxFileLines) {
31+
if (maxFileLines > 0 && lineCount > maxFileLines) {
3232
ignore = true;
3333
}
3434
}

0 commit comments

Comments
 (0)