solid_lints icon indicating copy to clipboard operation
solid_lints copied to clipboard

🟧 Lints for Dart and Flutter based on software industry standards and best practices.

Results 38 solid_lints issues
Sort by recently updated
recently updated
newest added

I want to prohobit the usage of `Iterable`'s `wait` getter, but can't seem to find a way to match it. Here is the definition in dart:async: ```dart extension FutureIterable on...

If variable is used within x lines (e.g. make it 10, or make it configurable) prefer a shorter name, because it can probably deduced from context ```dart final selectedNames =...

e.g. nested widgets, functions nested as parameters for other functions, etc

This will allow projects to enforce usage of just a single style: ```dart X get x ...; ``` ```dart X getX() ... ```

```dart class SomeState extends State { final X? x; void initState() { x = widget.x; } } ``` Can be ```dart class SomeState extends State { late final x =...

While using the lint I noticed I missed an edge case, it is not possible to lint only the default constructor. it will always lint all usages of the class...

We should unwrap these types to their primitives -- otherwise users will be forced to look at our code to figure out the correct syntax. ![image](https://github.com/solid-software/solid_lints/assets/144313329/350e6a4c-d684-4188-9f04-836ba3a881d4)

e.g. if names differ by one character, especially if the characters are similar (e.g. digit 1 and letter l) BAD: ```dart bool isEqual(SomeClass someClass1, SomeClass someClass2) ... ``` BETTER: ```dart...