Let's say you work someplace where every change to source code must be associated with a bug-report or feature-request, and there is no way to get that policy reformed. In such an environment, what is the best way to deal with code refactorings (that is, changes that improve the code but do not fix a bug or add a feature)?
- Write up a bug-report and associate the refactoring with it.
- Write up a feature-request and associate the refactoring with it.
- Sneak in the refactorings while working on code that is associated with a bug-report/feature-request.
- Just don't do any refactoring.
- Other
Note that all bug reports and feature descriptions will be visible to managers and customers.