UNPKG

pneulint

Version:

Static code analysis tool for better code

1 lines 257 B
import fs from"fs";import realComplexity from"./rules/realComplexity.js";function lintFile(e,r){try{const l=fs.readFileSync(e,"utf-8");realComplexity(l,e,r)}catch(r){console.error(`Error reading or linting file ${e}: ${r.message}`)}}export default lintFile;