How to exclude files/folders from code inspection in PHPStorm?

前端 未结 5 1238
轮回少年
轮回少年 2020-12-07 22:17

I have a project in PHPStorm, which contains a few libraries (Zend, Doctrine, ...) grouped under a library folder.

When running the code inspection, I <

5条回答
  •  眼角桃花
    2020-12-07 22:41

    There is alternative solution. You can add «read-only» libraries to Include pathin Settings » PHP section.

    It is not the same with php.ini include_path option, just referencing to some dirs as external, outside of your control. Exactly what you need.

    As result

    • no problems with scopes defining, just inspect whole project, if needed
    • no useless version control overhead in libs

提交回复
热议问题