Giter Club home page Giter Club logo

Comments (5)

AD7six avatar AD7six commented on June 2, 2024

Hi, I'm a bit confused by this issue.

The latest release is 0.1.18 and it does not have any test fails much less a test fail caused by being unable to install the standard. Especially in light of this can you please explain the fundamental error that you're pointing out?

from cakephp-codesniffer.

jhannwong avatar jhannwong commented on June 2, 2024

Yeah, I'm not sure why that is. In fact, just checking out 15d6faa (master) and running the unit tests locally will fail.

It's also not a matter of Travis configuration. The failure is in TestHelper.php; it passes a single string to CodeSniffer for the argument standard. CLI.php chokes at line 732 because it expects an array of strings. That point of failure is way before hitting the first unit test.

This pull and comments alerted me to my failing Travis CI.

I'm not sure why 15d6faa passes Travis CI. It fails for me locally. Would you like me to try to send 15d6faa (my fork of it) to Travis CI and see if it passes?

from cakephp-codesniffer.

jhannwong avatar jhannwong commented on June 2, 2024

This update to PHP_CodeSniffer might have changed what it expects for the argument standard.

Perhaps in catering for applying multiple standards to a check, it now expects array? It could have maintained the ability to accept a single string, rather than an array of a single string, for the sake of backward-compatibility. Maybe we can ask.

But that update to PHP_CodeSniffer was done 8 months ago. (2013-04-01, if you look at the blame for CLI.php.)

Sorry if I messed things up. Just let me know what wires I cut, and I'll take the time to patch things back. OK?

Cheers! :-)

from cakephp-codesniffer.

markstory avatar markstory commented on June 2, 2024

What version of PHPCS do you have installed. I know that there are problems with our test runner and the 1.5.x release branch. I think the issues with the test suite are related to the new version of PHPCS being released very recently..

from cakephp-codesniffer.

jhannwong avatar jhannwong commented on June 2, 2024

@markstory A brief comparison looks like I have release 1.5.0 (not any of the RCs).

I used the same .travis.xml on my fork. That would install the same version of PHPCS, I think. Will it?

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.