DEV Community

sunny prasad
sunny prasad

Posted on

How to write a new custom lint rule in flutter or dart

All the logic for analysis of linter packages live in dart lang repo.
Specifically the following directory contains logic.

For eg avoid_empty_else is stored here

https://github.com/dart-lang/sdk/blob/9fa33d8acdff743fc7265d147abe9261deb149bc/pkg/linter/lib/src/rules/avoid_empty_else.dart#L27

Top comments (0)

Billboard image

📊 A side-by-side product comparison between Sentry and Crashlytics

A free guide pointing out the differences between Sentry and Crashlytics, that’s it. See which is best for your mobile crash reporting needs.

See Comparison

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay