Skip to content

[CMSP-353] Add pantheon-wp-coding-standards#247

Merged
jazzsequence merged 4 commits intodevelopfrom
add-pantheon-wp-coding-standards
May 3, 2023
Merged

[CMSP-353] Add pantheon-wp-coding-standards#247
jazzsequence merged 4 commits intodevelopfrom
add-pantheon-wp-coding-standards

Conversation

@jazzsequence
Copy link
Contributor

Adds our coding standards.

Ignores all of the WPVIPMinimum standard. This flagged a lot of stuff around PHP sessions and manipulating php.ini which we would have otherwise had to ignore in the standard. I think those rules probably are okay most of the time, but obviously not in a plugin specifically designed to handle standards, so it makes sense to just ignore those rules here.

@jazzsequence jazzsequence requested a review from a team as a code owner April 14, 2023 20:55
@jazzsequence jazzsequence changed the base branch from main to develop April 14, 2023 20:56
@jazzsequence jazzsequence self-assigned this Apr 14, 2023
@jazzsequence jazzsequence merged commit d5d52b6 into develop May 3, 2023
@jazzsequence jazzsequence deleted the add-pantheon-wp-coding-standards branch May 3, 2023 14:33
@jazzsequence jazzsequence changed the title Add pantheon-wp-coding-standards May 4, 2023
pwtyler pushed a commit that referenced this pull request Jun 1, 2023
* use pantheon coding standards
exclude vip minimum which flags a lot of session-related code

* add phpcbf script and run it

* remove empty return statement per phpcs

* set the linting box to php8.0
@pwtyler pwtyler mentioned this pull request Jun 1, 2023
pwtyler pushed a commit that referenced this pull request Jun 1, 2023
* use pantheon coding standards
exclude vip minimum which flags a lot of session-related code

* add phpcbf script and run it

* remove empty return statement per phpcs

* set the linting box to php8.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants