Skip to content

Do not exclude tests from phpcs/phpcbf#6

Merged
wpscholar merged 1 commit intomainfrom
do-not-exclude-tests
Jul 22, 2024
Merged

Do not exclude tests from phpcs/phpcbf#6
wpscholar merged 1 commit intomainfrom
do-not-exclude-tests

Conversation

@BrianHenryIE
Copy link
Copy Markdown
Contributor

Proposed changes

Currently, tests do not get auto-formatted by phpcbf.

There are many rules that aren't relevant during tests, e.g. suggestions to use WordPress functions which would not be available in PhpUnit tests without WordPress loaded. I already have a list of some, but I'll look up is there a better way to exclude groups of rules than my current one-by-one approach.

Type of Change

Production

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update
  • Refactoring / housekeeping

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

@BrianHenryIE BrianHenryIE requested review from bradp and wpscholar July 19, 2024 18:02
@wpscholar wpscholar merged commit 7ef8833 into main Jul 22, 2024
@wpscholar wpscholar deleted the do-not-exclude-tests branch July 22, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants