Giter Club home page Giter Club logo

Comments (8)

beporter avatar beporter commented on June 16, 2024

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.

ceeram avatar ceeram commented on June 16, 2024

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.

rchavik avatar rchavik commented on June 16, 2024

This has been somewhat addressed recently in #77

Edited: add link to doc changes: #78

from cakephp-codesniffer.

markstory avatar markstory commented on June 16, 2024

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.

beporter avatar beporter commented on June 16, 2024

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.

markstory avatar markstory commented on June 16, 2024

I didn't think custom installers were run for anything except the top level composer.json though?

from cakephp-codesniffer.

beporter avatar beporter commented on June 16, 2024

Wouldn't that be the case if your Cake project's composer.json required cakephp/cakephp-codesniffer though?

from cakephp-codesniffer.

beporter avatar beporter commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.