growthbook/GrowthBook Code References (standalone)
Use the `gb-find-code-refs` utility to find references to feature flags in your code.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| flagsPath | Path to JSON file containing an array of feature key strings. | yes | — |
| dir | Path to directory containing codebase to be scanned. | yes | — |
| branch | Name of the branch | yes | — |
| allowTags | Enable storing references for tags. Lists the tag as a branch. | no | false |
| contextLines | The number of context lines to include with each code reference. If 0, only the lines containing flag references will be sent. If > 0, will include that number of context lines above and below the flag reference. A maximum of 5 context lines may be provided. (default 2) | no | 2 |
| debug | Enable verbose debug logging. | no | false |
| lookback | Set the number of commits to search in history for whether you removed a feature flag from code. You may set to 0 to disable this feature. Setting this option to a high value will increase search time. | no | 10 |
| outFile | Set the filename of the output JSON containing all code references. Defaults to 'coderefs.json' | no | coderefs.json |
| repoName | Define the repo name so that it is included in the output JSON. | no | — |
Outputs
no outputs