10up / wpcs-action

GitHub Action to help you lint your PHP without additional dependencies within your codebase
MIT License
54 stars 13 forks source link

Support 10up-Default #9

Closed dinhtungdu closed 1 year ago

dinhtungdu commented 2 years ago

Is your enhancement related to a problem? Please describe.

Support https://github.com/10up/phpcs-composer, so if a repository using the 10up-Default ruleset only need to set the standard to 10up-Default.

Designs

Ideal workflow:

name: PHPCS check

on: pull_request

jobs:
  phpcs:
      name: 10up PHPCS ruleset
      runs-on: ubuntu-latest
      steps:
        - uses: actions/checkout@v2
        - name: WPCS check
          uses: 10up/wpcs-action@stable
            with:
              standard: '10up-Default'

Describe alternatives you've considered

No response

Code of Conduct