WPThemeReview icon indicating copy to clipboard operation
WPThemeReview copied to clipboard

#242

Open WraithKenny opened this issue 4 years ago • 6 comments

Doing external file gets for a version number that hasn't changed in 4 years is more than a waste, it creates crashes, when all we need to do is update the static if it ever changes.

WraithKenny avatar Oct 15 '20 13:10 WraithKenny

Fixes #242

WraithKenny avatar Oct 15 '20 13:10 WraithKenny

I personally don't have anything against it. @jrfnl what was the idea behind this sniff?

dingo-d avatar Oct 15 '20 20:10 dingo-d

@WraithKenny can you just rebase this PR so that we see if the checks are passing on GH Actions? Thanks

dingo-d avatar Feb 20 '21 10:02 dingo-d

@dingo-d I merged lastest into patch-1

WraithKenny avatar Jun 16 '21 14:06 WraithKenny

I personally don't have anything against it. @jrfnl what was the idea behind this sniff?

@dingo-d By the looks of it, the sniff itself hasn't changed, it's just the external call to the GH API to get the version number of the latest release of TGMPA which is being removed.

I'm fine with that (for now). At the time I added it, it was expected that there would be more regular TGMPA releases. The problem this code solved was that the sniff would have to be updated after every TGMPA release to make sure it would check for the latest release and then, of course, users would need to update their install of TRTCS regularly as well, as otherwise the sniff would still check against outdated version numbers. Removing this code, reintroduces that problem, but as stated above, there hasn't been a release of TGMPA for a number of years, so in practice, it's not a big thing at this moment.

If I ever find the time to do more regular maintenance of TGMPA again and we'd be releasing regularly again, we can always revisit and re-introduce this code.

jrfnl avatar Jun 22 '21 01:06 jrfnl

@WraithKenny there is just one small error I'm seeing in the actions run

FILE: WPThemeReview/Sniffs/Plugins/CorrectTGMPAVersionSniff.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 203 | ERROR | Empty line not required before block comment
     |       | (Squiz.Commenting.BlockComment.HasEmptyLineBefore)
----------------------------------------------------------------------

Can you fix this and then I can merge this PR 👍🏼 .

dingo-d avatar Jun 22 '21 06:06 dingo-d