Skip to content

Add a Github Action to run phpcs (coding standards) #5245

Closed
backdrop/backdrop
#3749
@indigoxela

Description

Now that we have GHA up and running for Simpletest, we should also add a linter action using phpcs.

There's a related meta issue, but that one doesn't seem appropriate, as it's mostly about Zen.CI and about fixing standards in existing code.

What we need:

  • run phpcs in a GHA (automated job), showing annotations
  • run phpcs with our custom standards
  • run phpcs only against added/changed code in a PR, as we have a lot of legacy code not conforming yet

Turned out that this is feasible with an existing action


Related:

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions