-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable tests in CodingStyle directory #4340
Conversation
Tabs alert :) |
d2c8a3b
to
7a8fb8d
Compare
Well, even if it's a good start, we could not only test for tabs: there are a lot of style checks that could be done. |
7a8fb8d
to
2064a86
Compare
<directory>tests/tests/Attribute/</directory> | ||
<directory>tests/tests/AttributeValue/</directory> | ||
<directory>tests/tests/Block/</directory> | ||
<directory>tests/tests/CodingStyle/</directory> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was referring to this, @mlocati
50125dc
to
8cad669
Compare
I would really rather not have tests fail if coding standards aren't met. But the short tag check is good. |
I swear to god I replied to this thread haha. I think we should do this with csfixer or phpmd. We can just add that as a script in .travis like i did with this project here: https://github.com/buttress/browserslist/blob/master/.travis.yml#L32 I definitely don't think it's worth the cpu to do this ourselves in phpunit so I'd like to update this to use something that is purpose made. |
Well, style handling in view files (mix of php and html) is a nightmare.
|
You replied here: #4380 |
My manual and stupid (but effective) check shows a red flag on tests for every php file. Is this possible with your approach (not limited to controllers or src directories)? |
Yeah, just use
But there are quite a lot of tab vs space issues in view files and I figured it's not really worth it anyway. IMO better get the classes solid than have overly permissive code style checks. |
* Enable tests in CodingStyle directory * Enable PHP short open tags in TravisCI * Fix phpunit.xml indentation * Use HHVM-specific ini file * Check hhvm.enable_short_tags instead of short_open_tag on HHVM Former-commit-id: 336b6ba Former-commit-id: 50ec903bcd2064febd17fd0383cfdef37aad9ee7
Let's include in the test suite the tests introduced in #4157