Skip to content

Add Coding Standards - #31

Open
n7studios wants to merge 1 commit into
usefathom:masterfrom
n7studios:add-coding-standards
Open

n7studios wants to merge 1 commit into
usefathom:masterfrom
n7studios:add-coding-standards

Conversation

@n7studios

Copy link
Copy Markdown

Adds WordPress Coding Standards for sanitization and escaping:

  • composer.json with dev dependencies and phpcs / phpcbf scripts
  • phpcs.xml using the WordPress ruleset (text domain + minimum WP version)
  • GitHub Actions workflow running coding standards on pushes and PRs across PHP versions
  • fathom-analytics.php brought in line with the ruleset: output escaping, explicit enqueue version/in-footer, Yoda conditions, strict in_array(), corrected @return types and WPCS whitespace

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.

1 participant