-
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
Add a new moodle-extra coding style #57
Conversation
aff8985
to
b75033e
Compare
Codecov Report
@@ Coverage Diff @@
## main #57 +/- ##
=========================================
Coverage 95.53% 95.53%
Complexity 440 440
=========================================
Files 19 19
Lines 1165 1165
=========================================
Hits 1113 1113
Misses 52 52 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
b75033e
to
2e0c996
Compare
I like this, and we can go promoting things from the "extra" ruleset to the "normal" one while things evolve... BTW, does "extra" sound ok for you? For some reason (not sure why, to be honest, maybe because of Spanish...) I'm not sure. Maybe "plus", "strict", "get_it_serious" (lol)... In any case I'm not strong at all with the above, if you're happy with "extra", I'm happy too. Just tell and I will proceed. Ciao :-) |
2e0c996
to
c0bc778
Compare
c0bc778
to
d7a9810
Compare
I went for Their description is:
I've also taken the liberty of updating the readme here to:
|
Here we go! (note, I'll be making a release later today if that's ok for you) |
Works for me. I considered adding some more rules but I feel we should add unit tests for what we have first. I was also wondering about writing a sniff for data providers to make them statically defined. |
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.
Thanks @andrewnicols,
it looks great!
As dicussed in #45, and #25 it would be good to have a strict option.
This is an attempt largely based on the one I use daily (https://github.com/andrewnicols/moodle-cs-strict) with a few additions and removals.