is there an annotation we can use to mark debug-st...
# announcements
t
is there an annotation we can use to mark debug-statements or something, so i get a warning during compile time if there are debug statements in my code left?
m
You can use
//STOPSHIP
after making it fatal in options
Copy code
android {
  lintOptions {
      fatal 'StopShip'
  }
}
t
but that only works for android,, doesnt it?
m
I create
//TODO
coment and then have IntelliJ setup to warn me before commit if there are any TODOs left in code
m
Mark the functions deprecated with a warning that it's for debugging purposes only. If the debug code is not in a function, wrap it in a function (potentially passing a closure for custom debug code).
t
thank you - i asked in #C2R77UD35, too, about how to add a compiler warning. but amrking it deprecated is a good idea, too 🙂