×

LabelboxDecember 20, 2022

Feature flag linter by Labelbox engineers

At Labelbox, we understand the importance of feature flags in software development. They allow us to decouple deployment from release, enabling us to manage the full lifecycle of a feature. However, without clear guidelines and policy around feature flags, common issues can arise, such as code complexity from dead features and lingering flags that should have been removed.

To address these issues, we created a feature flag linter to enforce our feature flag policy. The linter checks the compliance of our feature flags in LaunchDarkly, ensuring that they have the required tags and descriptions. If a feature flag is missing any of these, the linter will print out details about the flag and notify the maintainer in a Slack channel. This helps us keep track of our feature flags and ensures that they are being used correctly.

We are excited to announce that we are open sourcing our feature flag linter for others to use. The linter is easy to set up and customize to fit your own feature flag policy. By using our linter, your team can stay on top of your feature flags and avoid common issues.

To get started with our feature flag linter, check out our GitHub repository. If you have any questions or feedback, please don't hesitate to reach out to us. We're always happy to help.

GitHub - Labelbox/feature-flag-linter: Launch Darkly Feature Flag Linter
Launch Darkly Feature Flag Linter. Contribute to Labelbox/feature-flag-linter development by creating an account on GitHub.