Skip to:
Content

bbPress.org

Opened 22 months ago

Closed 9 months ago

Last modified 9 months ago

#3614 closed regression (fixed)

PHPCS sorting: WordPress.WhiteSpace and WP.PostsPerPage

Reported by: SirLouen Owned by: johnjamesjacoby
Priority: normal Milestone: 2.7
Component: Tools - Code Improvements Version: trunk
Severity: normal Keywords: has-patch commit
Cc:

Description

This is the #2 part of a series of PHPCS WPCS sorting

Starting the series here:
https://bbpress.trac.wordpress.org/ticket/3613

I'm including in this issue sorting for:

WordPress.WP.I18n.NonSingularStringLiteralText
WordPress.WP.PostsPerPage.posts_per_page_posts_per_page
WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceAfterOpenParenthesis
WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceBeforeCloseParenthesis
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis
WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter
WordPress.WhiteSpace.OperatorSpacing.NoSpaceBefore
WordPress.WhiteSpace.OperatorSpacing.SpacingAfter
WordPress.WhiteSpace.OperatorSpacing.SpacingBefore

I want to divide this into different issues because dozens of files are getting involved. This way it will be easier to keep it short for a code review and more frequent releases for the committer than having all the full CS review just in one massive commit.

Change History (8)

This ticket was mentioned in PR #26 on bbpress/bbPress by @SirLouen.


22 months ago
#1

  • Keywords has-patch added

This ticket was mentioned in PR #27 on bbpress/bbPress by @SirLouen.


21 months ago
#2

This is an incremental update of #23, should be pushed after this to match changes
https://bbpress.trac.wordpress.org/ticket/3614#ticket

#3 @johnjamesjacoby
9 months ago

@SirLouen I'm having some trouble applying this diff after 3613.

The diff for this issue doesn't seem to take the changes on 3613 into account.

Any ideas?

#4 @johnjamesjacoby
9 months ago

  • Keywords commit added
  • Milestone Awaiting Review2.7
  • Owner set to johnjamesjacoby
  • Status newassigned

#5 @johnjamesjacoby
9 months ago

In 7357:

Tools - Code Improvement:

This commit modifies several PHP files to strictly adhere to the following PHPCS rules:

  • WordPress.WP.I18n.NonSingularStringLiteralText
  • WordPress.WP.PostsPerPage.posts_per_page_posts_per_page
  • WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceAfterOpenParenthesis
  • WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceBeforeCloseParenthesis
  • WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis
  • WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis
  • WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter
  • WordPress.WhiteSpace.OperatorSpacing.NoSpaceBefore
  • WordPress.WhiteSpace.OperatorSpacing.SpacingAfter
  • WordPress.WhiteSpace.OperatorSpacing.SpacingBefore

This commit does not include changes to the phpcs.xml.dist config file to add these rules yet - this will happen in a separate commit.

Props sirlouen.

In trunk, for 2.7.

See #3614.

#6 @johnjamesjacoby
9 months ago

In 7358:

Tools - Code Improvement: Updates to the phpcs.xml.dist config file.

Props sirlouen.

In trunk, for 2.7.

See #3614.

#7 @johnjamesjacoby
9 months ago

  • Resolutionfixed
  • Status assignedclosed

In 7359:

Tools - Code Improvement: Updates to the phpcs.xml.dist config file.

This commit reverts r7358, includes a few new exclusions, and ensures PHPCS has fully passes.

Props johnjamesjacoby, sirlouen.

In trunk, for 2.7.

Fixes #3614.

Note: See TracTickets for help on using tickets.