How do you flag code so that you can come back later and work on it?

前端 未结 23 2273
后悔当初
后悔当初 2020-12-24 11:46

In C# I use the #warning and #error directives,

#warning This is dirty code...
#error Fix this before everything explodes!
<         


        
23条回答
  •  南方客
    南方客 (楼主)
    2020-12-24 12:13

    Add a test in a disabled state. They show up in all the build reports.

    If that doesn't work, I file a bug.

    In particular, I haven't seen TODO comments ever decrease in quantity in any meaningful way. If I didn't have time to do it when I wrote the comment, I don't know why I'd have time later.

提交回复
热议问题