-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Including and excluding parts of the same directory doesn't work #23
Comments
Not a bug – you cannot exclude specific directories like that. But I could add support for that within the inspectFiles area. In the meantime you could put the files you do want to tests in a subdirectory of |
It'd definitely be nice to have this, otherwise I've got to do:
|
So something like <inspectFiles>
<directory name="src" />
<directory name="tests">
<excludeFiles>
<directory name="tests/Stubs" />
</excludeFiles>
</directory>
</inspectFiles> |
Yeah that might work. Why not support the example in the top of the ticket? |
I like keeping the specific files that will be checked in a self-contained node. Maybe So the XML would look something like <psalm>
<projectFiles>
<directory name="src" />
<directory name="tests" />
<ignoreFiles>
<directory name="tests/Stubs" />
</ignoreFiles>
</projectFiles>
<issueHandler>
<InvalidReturnType>
<onlyFiles>
...
</onlyFiles>
</InvalidReturnType>
<MixedInferredReturnType>
<ignoreFiles>
...
</ignoreFiles>
</MixedInferredReturnType>
</issueHandler>
</psalm> |
I like the idea of just moving it to |
The wiki not contain updates about that, but actually is not possible to use pattern for exclude files like: |
I'm running the following config, and it doesn't appear to be properly excluding my
tests/Stubs
directory, because I havetests/
set up for inspection.The text was updated successfully, but these errors were encountered: