microsoft / microsoft/typespec

Linter - have a mechanism to detect "orphan" rules

Open
#2,321 0 comments 0 reactions 0 assignees View on GitHub
design:needed triaged:core
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

With the new linter system, you have to add rules to a ruleset and enable them for them to have an effect. One distinct possibility here is that you add a rule and forget to add it to a ruleset, so it never has any effect.

We should have some kind of mechanism that will alert us when a rule is not part of any ruleset. This could be an on-demand script, or possibly a CI check (which would prevent you from checking in a rule without adding it to SOME ruleset).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.