prefer-correct-topics
Warns when the topics
section has incorrect entries.
You can find all requirements for this section on the official website.
Example
❌ Bad:
pubspec.yaml
topics:
- Network # LINT: The topic name should only use lowercase alphanumeric characters or hyphens and must start with a lowercase alphabet character
- A # LINT: The topic name should have between 2 and 32 characters
✅ Good:
pubspec.yaml
topics:
- network
- another