Comments (5)
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.
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.
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.
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.
@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)
- 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
- Enum case casing 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.