Open willmot opened 8 years ago
Since #1032 we're down to only two sets of WPCS issues:
fopen
etc) or when calling functions which might be disabled (ini_set
for example). This is inline with what WordPress Core does and makes sense in our case as we genuinely have no way of knowing whether those function calls will throw a PHP error and if they do we really do want to just silently fail and fallback.Line indented incorrectly; expected 1 tabs, found 7.
which is clearly incorrect.
For our silenced function calls, I'm we should potentially audit our use to make sure we're not silencing when we shouldn't be (I don't think we need to silence ini_get
for example as Core doesn't). We can then wrap them in a // @codingStandardsIgnoreStart
block.
We have a lot of noise in our scrutinizer issue report which makes finding and fixing actual issues a pain. I've been through and added a bunch of issue filters to cover things we're not interested in changing. Documenting it here so we have a record.
We have a variety of ways of measuring the code quality of our plugin:
Refactoring our code with the sole purpose of reducing the issues reported by these tools is risky, however over the long term we should be working with towards improving our overall code quality.
This ticket will likely never be closed as there's always improvements to be made. However it's a useful place to collate the various issues and track conversation and progress.