include owncloud coding standard#31442
Conversation
composer.json
Outdated
| "zendframework/zend-servicemanager": "^3.3", | ||
| "symfony/translation": "^3.4" | ||
| "symfony/translation": "^3.4", | ||
| "owncloud/coding-standard": "^1.0" |
There was a problem hiding this comment.
shall be a dev dependency
9f07dde to
bceb875
Compare
Codecov Report
@@ Coverage Diff @@
## master #31442 +/- ##
============================================
- Coverage 62.65% 62.6% -0.06%
- Complexity 18248 18253 +5
============================================
Files 1145 1145
Lines 68464 68566 +102
Branches 1234 1234
============================================
+ Hits 42897 42925 +28
- Misses 25206 25280 +74
Partials 361 361
Continue to review full report at Codecov.
|
phil-davis
left a comment
There was a problem hiding this comment.
Looks like a great thing. Having this consistency of "crud" helps in general code-readability.
|
@DeepDiver1975 are you happy with the code now? Proposed "effective backport" to |
|
@DeepDiver1975 |
ignore |
|
fixing yoda style - owncloud/coding-standard#6 |
looks weird, but actually is handy to do as a habit because then if you accidentally write only a single it explodes immediately on you. is a "silent" bug. |
|
@phil-davis |
|
@DeepDiver1975 are you making a new release of the coding-standard? |
31a75fa to
5f0af49
Compare
|
@DeepDiver1975 @phil-davis |
|
regarding this is not catched by the code checker |
|
I found that you have to get rid of the places that have array references like Then it might be happy to un-Yoda itself. Bug report PHP-CS-Fixer/PHP-CS-Fixer#3754 and PR to fix PHP-CS-Fixer/PHP-CS-Fixer#3755 - should be in I pushed a commit that fixes |
|
This and other related PRs/commits are in backport PR #31722 which will likely be merged some time after 10.0.9 (to avoid huge rebasing effort while sorting out a release) |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Owncloud coding-standard 1.0.1 is available - use it in core https://github.com/owncloud/coding-standard
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: