You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To disable a particular custom lint rule, set the rule to false in `analysis_options.yaml`. For example, to disable `prefix_widgets_returning_slivers`:
**AVOID** using `Column`, `Row`, `Flex`, `Wrap`, `SliverList`, `MultiSliver`, `SliverChildListDelegate`, `SliverMainAxisGroup`, and `SliverCrossAxisGroup` with a single child.
**AVOID** using `MediaQuery.of` or `MediaQuery.maybeOf` to access only one property. Instead, prefer dedicated methods, for example `MediaQuery.paddingOf(context)`.
**DO** mix in `EquatableMixin` instead of extending `Equatable`.
@@ -623,6 +676,20 @@ class Foobar with EquatableMixin {
623
676
624
677
None.
625
678
679
+
</details>
680
+
681
+
## Disabling custom lint rules
682
+
683
+
To disable a particular custom lint rule, set the rule to false in `analysis_options.yaml`. For example, to disable `prefix_widgets_returning_slivers`:
684
+
685
+
```yaml
686
+
plugins:
687
+
leancode_lint:
688
+
version: ^20.0.0
689
+
diagnostics:
690
+
prefix_widgets_returning_slivers: false
691
+
```
692
+
626
693
## Assists
627
694
628
695
Assists are IDE refactorings not related to a particular issue. They can be triggered by placing your cursor over a relevant piece of code and opening the code actions dialog. For instance, in VSCode this is done with <kbd>ctrl</kbd>+<kbd>.</kbd> or <kbd>⌘</kbd>+<kbd>.</kbd>.
0 commit comments