This commit is contained in:
2026-03-18 00:39:22 -07:00
commit c699640518
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);
}
}
}