Comments (15)
from composerrequirechecker.
I know that Symfony best practices are outside the scope of this project. However, for a long time there has been a practice of keeping tests inside src/Some/Bundle/Tests/*
, and so it would be valuable if we could exclude these directories from checks.
from composerrequirechecker.
I think this is fixed by symfony/symfony#33579
from composerrequirechecker.
Not sure why... does it?
from composerrequirechecker.
It basically drops rhose tests from the (confusing) source tree of symfony components.
In practice, symfony could split the sources from the tests, which would be a better fix, but the above suffices.
from composerrequirechecker.
Sorry for the noise... What I meant was that in many Symfony projects that I know, there is src/App/whatever/Tests
, because this has been the place suggested for (project-specific) tests in the past.
I think Symfony best practices nowadays suggest something else 🙏🏻. But that makes it hard to convince people to use this tool here if there is no simple way to make it pass on CI as well.
If we could exclude src/App/whatever/**/Tests
, things might be easily fixable (just add the dependencies that were really missing).
from composerrequirechecker.
@mpdude well, they'd need to be declared as "shadowed" in composer.json
somehow.
We should most certainly not add more conventions/configs than what is already very clear from composer.json
: moving files is trivial and takes minutes anyway.
from composerrequirechecker.
In my case, the .phpstorm.meta.php
are checked by this library and returning multiple unknown symbol. I would prefer to remove these files from the check.
from composerrequirechecker.
That depends on your autoloader configuration
from composerrequirechecker.
I have
"autoload": {
"psr-4": {
"Foo\\": "src/"
}
},
You mean I can easily exclude the phpstorm meta from the composer autoload and still having in the src folder ?
from composerrequirechecker.
from composerrequirechecker.
That file doesn't need to be in src in first place
I agree, it doesn't need to. But I have multiple .phpstorm.meta.php
configuring different functions, different classes, ... So it's more convenient to have the meta file next to the file it configures.
I never said I had no solution, I just prefer to have a way to exclude the file.
from composerrequirechecker.
Thanks ! It works perfectly.
from composerrequirechecker.
Sorry for recovering an old issue, but I stumbled on another use case for this option: schmittjoh/serializer#1381
The class is valid up to PHP 8.0, and the library wont drop the class due to BC. In the meantime my hack would be the same as schmittjoh/serializer#1381 (comment) (rm
ing the file on the fly), but an exclusion on this side would be highly appreciated.
from composerrequirechecker.
Hi @Jean85
maybe you can add the PHP 8.1 incompatible file to your composer.json
- autoload.exclude-from-classmap
config section?
from composerrequirechecker.
Related Issues (20)
- Remove `ext-json` requirement for PHP 8+
- Fatal error: Allowed memory size of 134217728 bytes exhausted HOT 1
- mixed parameter type HOT 6
- constant checks HOT 2
- Parse error with T_PAAMAYIM_NEKUDOTAYIM HOT 2
- Remove ext-tokenizer warnings HOT 2
- Unresolved `getallheaders` function HOT 1
- Default config path HOT 1
- Expose a composer plugin HOT 1
- Reporting missing `ext-random` an PHP 8.2 HOT 5
- GitLab CI Failing even with the command running as expected HOT 11
- [Question] Monorepo setup HOT 12
- Dependency Dashboard
- Switch default branch to `4.6.x` HOT 3
- False positive on Laravel\Illuminate packages HOT 4
- There were no symbols found Error HOT 4
- Distribution using phive & composer HOT 5
- Feature request; take into account require-dev and suggest HOT 6
- GPG signature failed while tagging HOT 6
- PHP Attributes support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from composerrequirechecker.