hpoul / string_literal_finder

Finding non translated string literals in .dart code files.
11 stars 4 forks source link

Allow annotating library functions with @NonNls #1

Open phiresky opened 2 years ago

phiresky commented 2 years ago

Thanks for this plugin, it's great!

There's a ton of false positives though that seem like they should be somewhat easily prevented:

e.g.:

It would be great if there was a way to whitelist library functions that you don't control, e.g. in the config file. I'm imagining something like this:

string_literal_finder:
   non-nls:
      - "dart:core:Map[]" # [] operator on map
      - "dart:developer:log"
      - "package:flutter/src/widgets/image.dart:Image.asset"