solid_lints
solid_lints copied to clipboard
🟧 Lints for Dart and Flutter based on software industry standards and best practices.
BAD: ```dart class SomeClass { ... } ``` GOOD: ```dart class SomeClass { ... } ``` GOOD: ```dart class OtherClass { ... } ```
BAD: ```dart void x() { final y = 1; return y; } ``` GOOD: ```dart void x() { return 1; } ```
Review new lint rules from linter 3.0 and enable if needed in solid_lints https://github.com/dart-lang/lints/blob/main/CHANGELOG.md#300
Currently, we can change the severity level using the [standard approach](https://dart.dev/tools/analysis#changing-the-severity-of-rules), but it produces a warning like on the screenshot below: We need to find a way to get rid...
There are already rules that enforce following order: 1. attributes 2. getters/setters 3. constructor 4. methods I propose to make it stricter and enforce order of methods: - attributes -...
The README of [custom_lint](https://pub.dev/packages/custom_lint) states: > By default, custom_lint enables all installed lints. But this isn't the case for solid_lints. (See #163) There is an [open issue](https://github.com/dart-lang/linter/issues/2994) for the dart...
newline_before_return reports false positives from time to time. User feedback: > Anytime I do any sort of refactoring it will incorrectly flag these issues and mask the other issues I'm...
Some empty blocks such as `setState` should and can be empty in some cases: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#comment-empty-closures-to-setstate I suggest adding an option to resolve the lint when adding any comments, other than...