Comments (8)
This can also be solved by using a custom composer installer that specifies the name of the installation folder explicitly. I alluded to this very problem here: SimplyAdmire/ComposerPlugins#1 but have not yet had time to implement and test the solution.
from cakephp-codesniffer.
Could you not use config option installer-name for this?
2014-05-22 15:30 GMT+02:00 Brian Porter [email protected]:
This can also be solved by using a custom composer installerhttps://getcomposer.org/doc/articles/custom-installers.mdthat specifies the name of the installation folder explicitly. I alluded to
this very problem here: SimplyAdmire/ComposerPlugins#1https://github.com/SimplyAdmire/ComposerPlugins/issues/1but have not yet had time to implement and test the solution.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/74#issuecomment-43887760
.
from cakephp-codesniffer.
This has been somewhat addressed recently in #77
Edited: add link to doc changes: #78
from cakephp-codesniffer.
I think this is solved now. I published a new tag that should show up on composer. If there are installation issues, I'll make more tags 😄
from cakephp-codesniffer.
Yes, using a subfolder to contain the ruleset.xml
and the actual sniffs is an excellent pattern to follow-- it solves a lot of problems. But if the goal with a composer installation is to avoid forcing users to remember to run a following --config-set
command in order for it to work (which I think is a wise goal), then a custom installer can provide that and make the process as easy as adding the package name to your composer.json file. That seems like the ideal case.
Just like Cake plugins, the Code Standard should direct its own installation. Composer was supposed to free us from these additional configuration steps (like pear's channel-discover
) and it exposes the capabilities to do so. We should use them appropriately.
EDIT: Yes yes, I know-- submit a PR.
from cakephp-codesniffer.
I didn't think custom installers were run for anything except the top level composer.json though?
from cakephp-codesniffer.
Wouldn't that be the case if your Cake project's composer.json required cakephp/cakephp-codesniffer
though?
from cakephp-codesniffer.
Either way, the proposal to remove the need to run phpcs --config-set
should be a new issue now anyway.
from cakephp-codesniffer.
Related Issues (20)
- Unable to find LineLengthSniff.php when running unit tests
- False positive in CakePHP.Commenting.FunctionComment.InvalidReturn HOT 2
- Do not allow to use underscore prefixes HOT 1
- Error SlevoodingStandard.Arrays.TrailingAmatCrrayComma HOT 10
- Add an empty line between opening tag and declare HOT 2
- Allow for new major Slevomat v7
- PhpStorm HOT 1
- 5.0: Require static return type hint for chaining methods HOT 1
- Collection generics HOT 2
- Union type render fails in some cases
- Union type require spaces ? HOT 3
- Constructor property promotion HOT 3
- Cake 5 CS HOT 1
- Files are not queued by phpcs when using this standard HOT 3
- update links
- can support for slevomat/coding-standard v6 be removed? HOT 5
- Version 4.7 shows this warning HOT 1
- Compare PHP native param types and phpdoc param types
- ECS Support HOT 4
- Cake5: Dynamic property error with PHP 8.2 due to our ruleset HOT 1
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 cakephp-codesniffer.