I think theres a way to disable code checking entirely by adding it to settings like

{
  "php.problems.exclude": {
    "path/to/your/file.php": true
  }
}

but its just too much work. Then there's path changing problems.
Is there an easier quicker way to do this like in other tools ? Like adding

// @phpcs:disable
// @codingStandardsIgnoreFile

to the top of the file ?

    6 days later

    SergeyAntonov Thank you for the question.

    Yes, the following is supported:

    <?php
    // phpcs:ignorefile
    // phpcs:disable

      JakubMisek

      I tried adding both lines one at a time and both at the same time but nothing seems to work

        Write a Reply...