PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions
-
Updated
Jul 31, 2020 - PHP
{{ message }}
PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions
phpcs-security-audit is a set of PHP_CodeSniffer rules that finds vulnerabilities and weaknesses related to security in PHP code
Allows old code to use new standards
Git pre-receive hook to check commits and code style
There's a potential issue with using target="_blank" and not using rel="noopener" or rel="noreferrer".
See: https://web.dev/external-anchors-use-rel-noopener/
Maybe warn about this if we see noopener or noreferrer present?
`<a target="_
Human Made coding standards for modern code
Java library for parsing report files from static code analysis.
Find undefined and unused variables with the PHP Codesniffer static analysis tool.
PHP_CodeSniffer v3.1.1 changed the search order for configuration files, we need to update to follow here.
Github Action to perform automated code review on pull requests
When requesting a report for a specific version of a plugin, if Tide doesn't yet have a report for it it'll start to generate one and return a <p>pending</p> response.
That response then gets cached, and will return the <p>pending</p> response until it expires.
Suffixing a ?1 to the URL to bypass the URL caching then results in being able to access it.
when cs2pr completes and no errors/warnings have to be emitted, the screen stays empty.
as a user I dont know whether everything worked well and nothing had to be reported or there was a error and I dont see it.
at best we could emit a processed x errors and y warnings or similar status message at the very end into STDERR, so we dont destory possible consumers of our gihtub-api checks
Style guide for writing consistent PHP for WordPress projects.
PHP CodeSniffer sniff to enforce PHP 7 types and documentation of array variables
Run the 'PHP Coding Standards Fixer' within Atom
Collection of packages and configs to lint and format code in your WordPress project.
A skeleton to start new high-quality PHP projects without worrying about bootstrapping everything from scratch.
Github Action helps you check your code with PHP_CodeSniffer
Boilerplate for WordPress plugin using autoload, coding standard, webpack, PHP/JS tests, etc.
Git pre-commit hook designed for any PHP projects
Symfony bundle for code analysis
Add a description, image, and links to the phpcs topic page so that developers can more easily learn about it.
To associate your repository with the phpcs topic, visit your repo's landing page and select "manage topics."
As per my comments in #1162:
warningerrorerrorSimilarly for the error