1.8.0 • Published 4 months ago

@mischareitsma/psl-lint v1.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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.

1.8.0

4 months ago

1.7.0

4 months ago

1.6.0

4 months ago