TS-Detector : Detecting Feature Toggle Usage Patterns
Tajmilur Rahman, Mengzhe Fei, Tushar Sharma, Chanchal Roy

TL;DR
This paper introduces TS-Detector, a tool that identifies various feature toggle usage patterns in source code to improve toggle management and code quality.
Contribution
The paper presents TS-Detector, the first tool capable of detecting five toggle usage patterns across multiple programming languages in open-source projects.
Findings
True positive rate for Spread toggles: 80%
True positive rate for Nested toggles: 86.4%
True negative rate for Mixed and Enum usages: 100%
Abstract
Feature toggles enable developers to control feature states, allowing the features to be released to a limited group of users while preserving overall software functionality. The absence of comprehensive best practices for feature toggle usage often results in improper implementation, causing code quality issues. Although certain feature toggle usage patterns are prone to toggle smells, there is no tool as of today for software engineers to detect toggle usage patterns from the source code. This paper presents a tool TS-Detector to detect five different toggle usage patterns across ten open-source software projects in six different programming languages. We conducted a manual evaluation and results show that the true positive rates of detecting Spread, Nested, and Dead toggles are 80%, 86.4%, and 66.6% respectively, and the true negative rate of Mixed and Enum usages was 100%. The tool…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
