-
Notifications
You must be signed in to change notification settings - Fork 16
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
Allow missing commas when last element is same line than closer (take #2) #81
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #81 +/- ##
============================================
- Coverage 96.46% 96.17% -0.30%
- Complexity 517 543 +26
============================================
Files 22 23 +1
Lines 1471 1542 +71
============================================
+ Hits 1419 1483 +64
- Misses 52 59 +7 ☔ View full report in Codecov by Sentry. |
bda916a
to
5ff59e5
Compare
Note: I've added a candidate commit here that proceeds to:
I've commented with the same @ #76. (note that it's causing the code-coverage check to fail but we shouldn't mind too much. That is tested upstream in PHPCSExtra and here we are just testing the outcome for our very-own allowed multi-line arrays). Ciao :-) |
Comes with some tests to ensure that the case is now covered and we are allowing to miss those commas in the last array element when the array closer is in same line. Fixes moodlehq#76
We need this applied ASAP, because it's causing troubles with many arrays that are allowed, so we cannot wait for PHPCSExtra v1.2.0 to be released. So, with this commit, we are moving to own (copied verbatim) Sniff. And adjusting tests and other small bits. Note that this commit will be 100% reverted once PHPCSExtra is released and then we'll be back to the upstream Sniff. See moodlehq#82
5ff59e5
to
1c295bb
Compare
Self-merged. As commented above, the code-coverage report, missing 7 lines is ignorable, that Sniff is fully tested upstream and here we are only testing that the outcome matches Moodle coding style cases. |
This is a clone of #80 that was closed by mistake...
Comes with some tests to ensure that the case is now covered and we are allowing to miss those commas in the last array element when the array closer is in same line.
Fixes #76
Holding this as draft PR until PHPCSExtra 1.2.0 is released. Then we'll have to change
composer.json
to point to that new release and this PR will be ready.