diff --git a/.arclint b/.arclint index 9ca590a83..fea307a14 100644 --- a/.arclint +++ b/.arclint @@ -1,56 +1,64 @@ { "linters": { "generated": { "type": "generated" }, "clang-format": { "type": "clang-format", "version": "7.0", "bin": ["clang-format-7", "clang-format"], "include": "(^src/.*\\.(h|c|cpp)$)", "exclude": [ "(^src/(secp256k1|univalue|leveldb)/)" ] }, "autopep8": { "type": "autopep8", "version": ">=1.3.4", "include": "(\\.py$)" }, "flake8": { "type": "flake8", "include": "(\\.py$)", "flags": [ "--select=F401,F403,F405" ] }, "lint-format-strings": { "type": "script-and-regex", "include": "(^src/.*\\.(h|c|cpp)$)", "exclude": [ "(^src/(secp256k1|univalue|leveldb)/)" ], "script-and-regex.script": "test/lint/lint-format-strings.sh", "script-and-regex.regex": "/^(?P.+): (?P.+:.+)$/m" }, "check-doc": { "type": "check-doc", "include": "(^src/.*\\.(h|c|cpp)$)" }, "lint-tests": { "type": "lint-tests", "include": "(^src/(rpc/|wallet/)?test/.*\\.(cpp)$)" }, "lint-python-format": { "type": "lint-python-format", "include": "(\\.py$)", "exclude": [ "(^test/lint/lint-python-format\\.py$)" ] }, "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 index 000000000..9f2e412fa --- /dev/null +++ b/arcanist/linter/phpcs_ruleset.xml @@ -0,0 +1,49 @@ + + + + + BitcoinABC PHP coding standard. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +