VRMS
VRMS copied to clipboard
add script to out put list of files containing linting errors
Fixes #1968
What changes did you make and why did you make them?
"To streamline linting remediation across the VRMS codebase, we need a script that outputs a list of files with linting errors. This will help prioritize fixes and track progress, and align work across team members."
- Create a reusable script, scripts/list-lint-files.js.
- Add the command
"lint:files": "node scripts/list-lint-files.js"in the package.json - It outputs a list of affected files in JSON format with a relative file path.
- It outputs the total number of affected files in a TXT file.
@angela-lee1 The script looks good! Could you add lint-files.count.txt and lint-report.json to .gitignore? We don't usually push generated reports to the repo. What do you think?
Thank you, @bconti123! I will take a look at it.