diff --git a/.arclint b/.arclint --- a/.arclint +++ b/.arclint @@ -51,6 +51,14 @@ "lint-locale-dependence": { "type": "lint-locale-dependence", "include": "(^src/.*\\.(h|cpp)$)" + }, + "phpcs": { + "type": "phpcs", + "include": "(\\.php$)", + "exclude": [ + "(^arcanist/__phutil_library_.+\\.php$)" + ], + "phpcs.standard": "arcanist/linter/phpcs_ruleset.xml" } } } diff --git a/arcanist/linter/phpcs_ruleset.xml b/arcanist/linter/phpcs_ruleset.xml new file mode 100644 --- /dev/null +++ b/arcanist/linter/phpcs_ruleset.xml @@ -0,0 +1,49 @@ + + + + + BitcoinABC PHP coding standard. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +