0

In PhpStorm I can use tags

@codeCoverageIgnoreStart
@codeCoverageIgnoreStop

to disable coverage checking for piece of code.

Is there something similar for disabling code inspections for piece of code?

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Hajle
  • 31
  • 1
  • You mean you want to prevent people from viewing your output code in the browser? – Epodax Mar 07 '16 at 09:02
  • This is not PhpStorm specific stuff -- it's PHPUnit functionality -- https://phpunit.de/manual/current/en/code-coverage-analysis.html – LazyOne Mar 07 '16 at 09:08
  • You can suppress specific inspections for a statement (use Alt+Enter on error/warning and proceed from there) ... or you may prevent specific inspections running for a whole file (via `Inspections` settings and custom scope) .. but you cannot disable all analysis for some custom code block in the middle of the file. – LazyOne Mar 07 '16 at 09:13

0 Answers0