launchdarkly / ld-find-code-refs

Build tool for automatically sending feature flag code references to LaunchDarkly
https://launchdarkly.com
Other
45 stars 34 forks source link

Tool wont find flags without any delimiters #376

Closed kostyay closed 11 months ago

kostyay commented 11 months ago

Hi Id like the tool to search yaml files and find the following occurences:

my_logic:
    featureFlag: flag-name

As you can see its not quoted. How can I configure the tool to find such references? It's not delimited in quotes or anything like that Thanks

jazanne commented 11 months ago

@kostyay you can add the kebabcase alias to your configuration to find these references

aliases:
  - type: kebabcase

More information available here: https://github.com/launchdarkly/ld-find-code-refs/blob/main/docs/ALIASES.md#flag-keys-transposed-to-common-casing-conventions

kostyay commented 11 months ago

Thanks worked

kostyay commented 11 months ago

So this didn't exactly work, in case anyone finds this thread this is the configuration that helped me:

delimiters:
  disableDefaults: true
aliases:
  - type: kebabcase