Using dynamic error codes? #277
Closed
dickermoshe
started this conversation in
General
Replies: 2 comments 2 replies
-
To disable lints in
That's fine. But LintCode already supports dynamic messages. You can do then used as |
Beta Was this translation helpful? Give feedback.
0 replies
-
@rrousselGit Have you given any thought about using custom_lint on the to build the code live instead of using Would Seem like macros! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The docs for
LintRule
state that[LintRule]s should avoid emitting lints that use a code different that [code].
dart_custom_lint/packages/custom_lint_core/lib/src/lint_rule.dart
Lines 64 to 67 in 90365e2
Q1: Why?
Q2: What about if the code name stays the same but the
problemMessage
changesUse Case: We would like to use our code generator (drift_dev) with the custom_lint to find errors. The errors emitted can be of many types.
Beta Was this translation helpful? Give feedback.
All reactions