flutter_rust_bridge icon indicating copy to clipboard operation
flutter_rust_bridge copied to clipboard

custom ignore_for_file in generated dart file

Open Krysl opened this issue 1 year ago • 5 comments
trafficstars

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

Krysl avatar May 17 '24 13:05 Krysl

Hi! Thanks for opening your first issue here! :smile:

welcome[bot] avatar May 17 '24 13:05 welcome[bot]

Looks reasonable, and feel free to PR for this!

fzyzcjy avatar May 17 '24 13:05 fzyzcjy

Looks reasonable, and feel free to PR for this!

Seems easy, I'll give it a try.

Krysl avatar May 17 '24 13:05 Krysl

Feel free to ping me if needing any hints :)

fzyzcjy avatar May 17 '24 14:05 fzyzcjy

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

Krysl avatar May 17 '24 14:05 Krysl

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.

github-actions[bot] avatar Jun 01 '24 13:06 github-actions[bot]