Exclude Directory from inspection
Can i mark a directory which includes "skeleton files" from the inspection?
The skeleton directory includes several files and directories, which aren't valid php files, they're only templates
e.g.
class {{ classname }} extends BaseController
{
}
Because of the invalid code, the files and the parent directories are underwaved. Because ALL parent directories are underwaved, it's really hard to see in the project window, if there's really a invalid code, or if it's only because of the skeleton files.
Attachment(s):
underwave.PNG
请先登录再写评论。
There is no such thing in PhpStorm as exclude some folder from indexing/inspections only. You can disable all inspections for custom scope (like it is described here: http://devnet.jetbrains.net/message/5465511 ), but it's quite inconvenient to do and I do not think that it will do 100% as you would like.
Few options:
The last one is the best in my opinion -- if I would do anything like that I would definitely go this way (if I can, of course).
thx very much
I've excluded the directory, but then i would need to switch the directory status ( include,exclude) all the time when i would need to create a new skeleton file or edit a existing one, that's why I agree, that the last option would be probably the best.
I need this options myself. We have a large collection fo legacy classes that are still needed in production but can not be updated to psr12 without extreme cascading changes.
We only want to get inspections for the new implementation that is slowly replacing all the legacy files.
Adding all the files one by one to ignore is not viable and can not be excluded from indexing.
I second that. I do have a `private` folder which includes large text files (.txt and .csv) as well as .json and some other text file variants.
Not only is it terribly slowing down the process of even running a specific inspection but it eats up memory like crazy!
Please give us an option to exclude a specific folder from it or if this exists already, let me know how to do it with the current version.
BTW, I can't find this "Exclude such folder from project from being indexed (Settings | Directories)" solution in the current version.
>BTW, I can't find this "Exclude such folder from project from being indexed (Settings | Directories)" solution in the current version.
Still there, nothing has changed.
Either right click in Project View panel and then "Mark Directory as | Excluded" or via aforementioned "Settings/Preferences | Directories"
The difference is “Settings/Preferences” vs only “Settings” which I couldn’t find. That answers it, thanks