Often in any development there is a need to write code, about which it is known in advance that it:
- Extremely flexible. Or..
- May cause bugs, problems in the future. Or..
- We do not read at all.
Or such a code is inherited, and I want to mark the places that need to be corrected later. This code is called a crutch in Russian. Unfortunately on the English-language sites it is difficult to find information about this, since they have the term "crutch" - absent in principle. It is recommended to translate as "kludge" - but this is not often understood.
The question is how to mark crutches in the code with comments, so that it is easy to make a list of all the crutches in the project, and it is highly desirable that their visibility in the IDE could even be prioritized? I am more interested in PhpStorm, but others will be interested to learn about their IDE.
PS
Of course there is a special tag in the TODO comments, but I would like to present the crutches and TODO separately from each other, all the same, they are very different in essence. Therefore, some agree on special comments like:
/* TRASHCODE {why below code is bad} */ ... /* TRASHCODE end*/ Then it is easy to search for the code, but in this case there is no IDE help in viewing crutches.





