This commit is contained in:
nik
2026-05-20 16:20:32 -07:00
commit 03b0728c7a
27 changed files with 3576 additions and 0 deletions

22
linter/LinterMain.java Normal file
View File

@@ -0,0 +1,22 @@
// Nik Johnson
// 2-24-2024
// TA: Andy Ruan
import java.util.*;
import java.io.*;
public class LinterMain {
public static final String FILE_NAME = "TestFile.txt";
public static void main(String[] args) throws FileNotFoundException {
List<Check> checks = new ArrayList<>();
checks.add(new LongLineCheck());
checks.add(new BreakCheck());
checks.add(new BlankPrintlnCheck());
Linter linter = new Linter(checks);
List<Error> errors = linter.lint(FILE_NAME);
for (Error e : errors) {
System.out.println(e);
}
}
}