init
This commit is contained in:
22
linter/LinterMain.java
Normal file
22
linter/LinterMain.java
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user