Replace check scripts with rules
A check script writes its own file walk, parsing, output, and exit code. A rule is the check alone, one file in .vibator/. vibator does the rest.
| A check script | A rule | |
|---|---|---|
| Find files | globSync and its own excludes | project.files |
| Read them | readFileSync, regex loops | text.search, ts.parse |
| Report | console.error | One report format |
| Fail | process.exit(1) | A severity per rule |
| Fix | By hand | --write |