launchdarkly / ld-find-code-refs

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

Refactor Code Refs to generic matcher #157

Closed InTheCloudDan closed 3 years ago

InTheCloudDan commented 3 years ago

This PR creates a Matcher struct that contains Elements. A single element is a group of resources(currently flags) per project that code references is looking for. There are places in the code that are making the assumption that there is only a single element. I did it this way so there was not more refactoring because as of today all that is supported is one project per run.