A linting tool for ADVPL (Advanced Protheus Language) source code, providing static analysis and error detection for .prw files. Current stable version is 7.0.3, released with TypeScript support. It integrates directly into Node.js workflows, offering programmatic control through a Linter class. Key differentiators include its focus on the niche ADVPL ecosystem and file-level analysis rather than real-time IDE feedback. Alternative tools are scarce, making this the primary linter for ADVPL developers using Protheus/Totvs environments.
npm install advpl-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Linter instance, runs analysis on an ADVPL file, and logs any errors found.
Update to version 8.0.0+ where the method is renamed to 'runAnalysis' or manually call the correct method name.
Always read files with encoding 'latin1' (e.g., fs.readFileSync(path, 'latin1')).
Provide exactly { name: string, content: string } for each file.Access errors directly from the promise result or via a new API if introduced.
Run 'npm install advpl-lint' and ensure tsconfig.json has 'moduleResolution': 'node'.
Ensure you are calling the exact method name 'runAnalisys' as provided in v7.x. Update package when renamed.
Read file synchronously with proper encoding: fs.readFileSync(path, 'latin1').toString() or ensure string.
Access errors inside the .then() callback or await the promise.
No dependency data recorded yet.