solid-software / solid_lints

🟧 Lints for Dart and Flutter based on software industry standards and best practices.
Other
36 stars 17 forks source link

Lints not showing any warnings #163

Closed amrgetment closed 2 months ago

amrgetment commented 2 months ago

I tried the lints and it didn't work, what I am missing here? I didn’t use include as I want one lint only

image image image

amrgetment commented 2 months ago

I tried this command and it didn’t show any issue too

dart run custom_lint

illia-romanenko commented 2 months ago

We'll probably need a complete code to reproduce the issue, could you please create some simple project with it?

amrgetment commented 2 months ago

Here is my repo, I made a class called dojo.dart with class name Foo and I used this lint prefer_match_file_name https://github.com/amrgetment/flutter_web_error

solid-vovabeloded commented 2 months ago

@amrgetment, you should use the following notation to enable custom lint rules:

custom_lint:
  rules:
  - prefer_match_file_name

instead of

custom_lint:
  - prefer_match_file_name
amrgetment commented 2 months ago

Thanks, works fine now I wonder why do I have to use dart run custom_lint but not dart analyze