@mischareitsma/psl-lint
TypeScript icon, indicating that this package has built-in type declarations

1.8.0 • Public • Published

psl-lint

Build and Test CI

A linter or lint refers to tools that analyze source code to flag programming errors, bugs, stylistic errors, and suspicious constructs.

This module works by adding rules that are automatically checked at the appropriate time.

Current Rules

  • MemberCamelCase
  • MemberLength
  • MemberLiteralCase
  • MemberStartsWithV
  • MethodDocumentation
  • MethodParametersOnNewLine
  • MethodSeparator
  • MultiLineDeclare
  • PropertyIsDummy
  • PropertyIsDuplicate
  • RuntimeStart
  • TblColDocumentation
  • TodoInfo
  • TwoEmptyLines

Contributing

To add a rule, create a class implementing one of the rule interfaces. Then, add an instance of your class to the addRules method found in the activate.ts module.

Rules will have a parsed document at their disposal. Auto-complete can guide you to using the parsed document effectively. Use the todo.ts and parameters.ts modules as examples.

Tests can be found in the test directory at the root of the project. Use parameters.test.ts as an example.

History

This project was originally developed under ing-bank/vscode-psl repository,
in order to preserve that history this project was cloned from
ing-bank/vscode-psl and only code relevant to the psl-linter was retained.
Please refer to the split commit for details.

Package Sidebar

Install

npm i @mischareitsma/psl-lint

Weekly Downloads

1

Version

1.8.0

License

MIT

Unpacked Size

123 kB

Total Files

26

Last publish

Collaborators

  • mischareitsma