Skip to:
Content

bbPress.org

Opened 16 months ago

Closed 4 months ago

Last modified 4 months ago

#3614 closed regression (fixed)

PHPCS sorting: WordPress.WhiteSpace and WP.PostsPerPage

Reported by: sirlouen's profile SirLouen Owned by: johnjamesjacoby's profile johnjamesjacoby
Milestone: 2.7 Priority: normal
Severity: normal Version: trunk
Component: Tools - Code Improvements 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.


16 months ago
#1

  • Keywords has-patch added

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


16 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
4 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
4 months ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 2.7
  • Owner set to johnjamesjacoby
  • Status changed from new to assigned

#5 @johnjamesjacoby
4 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
4 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
4 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

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.