? ? Success

User tests: Successful: Unsuccessful:

avatar photodude
photodude
15 May 2015

This brings in some of the changes from the Joomla coding standards

and some of suggested changes from the Joomla coding standard

A number of temporary exclude patterns were added following the pattern currently established, these should be eliminated as the coding standard deviations are corrected.

These changes build a foundation to facilitate a move to PHPCS 2.x

avatar photodude photodude - open - 15 May 2015
avatar zero-24 zero-24 - change - 15 May 2015
Labels Added: ? ?
avatar zero-24 zero-24 - change - 15 May 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 15 May 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 15 May 2015
Status New Pending
avatar zero-24 zero-24 - change - 15 May 2015
Category Repository Unit Tests
avatar photodude
photodude - comment - 15 May 2015

@zero-24 Should this PR get the "Code Style" label too?

avatar zero-24
zero-24 - comment - 15 May 2015

@photodude this has the label already :smile:

avatar photodude
photodude - comment - 15 May 2015

@zero-24 I see Unit/System Tests and PR-staging but I don't see Code Style :squirrel:

avatar zero-24
zero-24 - comment - 15 May 2015

Woops my eyes only read what they expect :smile:

To answer your question

@zero-24 Should this PR get the "Code Style" label too?

We label PRs that fix only codestyle issues with Code Style. This PR updates the tests for codestyle so it has the Unit/System Tests label :smile:

avatar photodude
photodude - comment - 16 May 2015

@zero-24 Thanks for the clarification

avatar javigomez
javigomez - comment - 20 May 2015

Thanks very much @photodude for working on this :smile:

avatar photodude
photodude - comment - 26 May 2015

@javigomez you're welcome. It looked like a good place to get my feet really wet with the the project. Still a lot to do to our custom sniffs up to get up to speed and running with PHPCS-2. So far the custom commenting sniffs are still failing in my test branch, https://github.com/photodude/joomla-cms/tree/PHPCS-2

avatar photodude
photodude - comment - 29 Feb 2016

I have rebased this PR to the current Stagging and fixed the merge conflicts so this can be reconsidered.

The PHPCS checks are failing since this PR is more accurately finding the code style issues. As such, it looks like I need to adjust more of the exclusion rules to temporarily account for the existing failures.

avatar photodude
photodude - comment - 7 Mar 2016

@javigomez @zero-24 @mbabker @wilsonge

This PR should now be in a state ready for review and consideration.

avatar wilsonge
wilsonge - comment - 7 Mar 2016

Can you ping me on this as soon as 3.5 ships. Moving to PHPCS 2 is rapidly rising up my priority list and would love to get this into 3.5.1!

avatar photodude
photodude - comment - 7 Mar 2016

Sure, But I do want to be clear this PR doesn't make the move to PHPCS 2 yet. This just cleans up the existing PHPCS 1.5 standards following what was done for the draft of the coding standards for PHPCS 2.

There is a Draft for the full Joomla Coding standard running PHPCS 2, it does need some additional work to fix some consistency issues and it is composer compatible .

So Ideally the Draft for the full Joomla Coding standard running PHPCS 2 should be completed and then brought over to the CMS either directly or via composer

avatar mbabker
mbabker - comment - 26 Mar 2016

Just on a quick glance, things seem fine here. :+1:

avatar brianteeman
brianteeman - comment - 8 May 2016

Can we get this merged? @wilsonge its not something that can really be tested at the CMS level


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6956.

avatar wilsonge
wilsonge - comment - 8 May 2016

@photodude can you fix the conflicts please? Let's get this show on the road :)

avatar photodude
photodude - comment - 8 May 2016

@wilsonge Is it worth fixing this PR again? Would it be better to just put the effort into finishing the PR for the full Joomla Coding standard running PHPCS2 and bring that in with composer?

avatar photodude
photodude - comment - 11 Jun 2016

@wilsonge I have fixed the merge conflicts. This PHPCS1.5.x improvement is again ready for consideration.

I do feel that effort should go into finishing the PR for running PHPCS2 and bring that in with composer. (The Full PHPCS2 version mostly needs testing and validation of the fixers)

In any case, this PR is an improvement in the PHPCS1.5.x code standards for the CMS, and will be beneficial until the PHPCS2.x version is ready.

avatar wilsonge wilsonge - assigned - 15 Jun 16
avatar wilsonge
wilsonge - comment - 15 Jun 2016

At a quick look over this looks good. But going to go through over the weekend to assure myself we aren't loosing any checks here :)

avatar wilsonge wilsonge - change - 15 Jun 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-06-15 23:42:29
Closed_By wilsonge
avatar wilsonge wilsonge - reference | 607b918 - 15 Jun 16
avatar wilsonge wilsonge - merge - 15 Jun 2016
avatar wilsonge wilsonge - close - 15 Jun 2016
avatar wilsonge wilsonge - change - 15 Jun 2016
Milestone Added:
avatar wilsonge wilsonge - unassigned - 15 Jun 16
avatar wilsonge
wilsonge - comment - 15 Jun 2016

Was easier than i thought to go through everything. Nice work :) Look forward to sitting down and trying to sort out v2

Add a Comment

Login with GitHub to post a comment