This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
Rule request: informative-docs #457
Labels
Difficulty: Medium
People with non-trivial experience in TSLint should be able to send a pull request for this issue.
Microsoft Internal
Issues related to closed source Microsoft code.
Type: Rule Suggestion
Adding a new rule that doesn't yet exist here or in TSLint core.
Milestone
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
Many teams require all things be documented, such as with TSLint core's
completed-docs
. The idea of requiring code be well-documented is nice, but you end up with the above useless comments.Expected behavior
It'd be nice to have a rule that requires the documentation for something not be equivalent to just the thing's name. If we strip out non-alphabet characters, common words such as "the" or "a", and lowercase everything, they shouldn't be the same.
Posting here instead of TSLint core, as I expect this is too opinionated for the core ruleset.
The text was updated successfully, but these errors were encountered: