How can LaunchDarkly help with trunk-based development?
The chapter has mostly focused on the theory of trunk-based development because it is a way of working rather than a feature of LaunchDarkly. However, there are a couple of ways in which LaunchDarkly can be useful in the context of adding new feature flags and then tidying them up.
LaunchDarkly provides a command-line tool for discovering the references to feature flag keys and where in the code they are implemented. Within LaunchDarkly itself, information about what this tool discovered is presented, including the file where the keys for a flag exist. This information makes it easier to find out whether a flag has been removed from the code base as the tool will no longer find the key in the application. The information from the tool is unable to prove that the application will or won't work in its current state, but it helps identify whether there are any references left to the key. For example, the application might...