fzyzcjy / flutter_rust_bridge

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.

Home Page:https://fzyzcjy.github.io/flutter_rust_bridge/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

custom ignore_for_file in generated dart file

Krysl opened this issue · comments

commented

Is your feature request related to a problem? Please describe.
Show too much lint messages in VSCode problem panel, if I had defined some strict lint rules in analysis_options.yaml.
Even if I add a exclude config in analysis_options.yaml, As soon as I open the generated code file in VSCode, the exclude option does not work and the lint error is displayed again.

Describe the solution you'd like
Add a config in flutter_rust_bridge.yaml, something like to the preamble config in ffigen

Key Explaination Example
preamble Raw header of the file, pasted as-it-is.
preamble: |
  // ignore_for_file: camel_case_types, non_constant_identifier_names

Hi! Thanks for opening your first issue here! 😄

Looks reasonable, and feel free to PR for this!

commented

Looks reasonable, and feel free to PR for this!

Seems easy, I'll give it a try.

Feel free to ping me if needing any hints :)

commented

Just done,but I don't know if there's anything missing.