├── .editorconfig ├── .gitignore ├── .nvmrc ├── .travis.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── HM-Minimum └── ruleset.xml ├── HM ├── Sniffs │ ├── Classes │ │ └── OnlyClassInFileSniff.php │ ├── Debug │ │ └── ESLintSniff.php │ ├── ExtraSniffCode.php │ ├── Files │ │ ├── ClassFileNameSniff.php │ │ ├── FunctionFileNameSniff.php │ │ └── NamespaceDirectoryNameSniff.php │ ├── Functions │ │ └── NamespacedFunctionsSniff.php │ ├── Layout │ │ └── OrderSniff.php │ ├── Namespaces │ │ └── NoLeadingSlashOnUseSniff.php │ ├── PHP │ │ └── IssetSniff.php │ ├── Performance │ │ ├── SlowMetaQuerySniff.php │ │ └── SlowOrderBySniff.php │ ├── Security │ │ ├── EscapeOutputSniff.php │ │ ├── NonceVerificationSniff.php │ │ └── ValidatedSanitizedInputSniff.php │ └── Whitespace │ │ └── MultipleEmptyLinesSniff.php ├── Tests │ ├── Classes │ │ ├── OnlyClassInFileUnitTest.fail.class │ │ ├── OnlyClassInFileUnitTest.fail.function │ │ ├── OnlyClassInFileUnitTest.php │ │ └── OnlyClassInFileUnitTest.success.const │ ├── Files │ │ ├── ClassFileNameUnitTest.php │ │ ├── ClassFileNameUnitTest │ │ │ ├── class-Foo.php │ │ │ ├── class-bar.php │ │ │ ├── class-test.php │ │ │ ├── class-two-parts.php │ │ │ ├── class-two_parts.php │ │ │ ├── class-twoparts.php │ │ │ └── test.php │ │ ├── FunctionFileNameUnitTest.php │ │ ├── FunctionFileNameUnitTest │ │ │ ├── matching-namespace.php │ │ │ ├── namespace.php │ │ │ ├── not-matching-namespace.php │ │ │ └── not-namespace.php │ │ ├── NamespaceDirectoryNameUnitTest.php │ │ └── NamespaceDirectoryNameUnitTest │ │ │ ├── inc │ │ │ ├── coffee │ │ │ │ ├── more │ │ │ │ │ └── fail.php │ │ │ │ └── namespace.php │ │ │ ├── namespace.php │ │ │ └── standards │ │ │ │ ├── camelcased-namespace.php │ │ │ │ ├── coffee │ │ │ │ ├── grinder.php │ │ │ │ ├── more │ │ │ │ │ └── grinder-fail.php │ │ │ │ └── namespace.php │ │ │ │ ├── fail.php │ │ │ │ └── underscored-namespace.php │ │ │ └── tests │ │ │ ├── coffee │ │ │ ├── grinder.php │ │ │ └── more │ │ │ │ └── fail.php │ │ │ ├── namespace.php │ │ │ └── standards │ │ │ ├── coffee │ │ │ ├── coffee.php │ │ │ └── more │ │ │ │ └── fail.php │ │ │ └── fail.php │ ├── Layout │ │ ├── OrderUnitTest.inc │ │ └── OrderUnitTest.php │ ├── Namespaces │ │ ├── NoLeadingSlashOnUseUnitTest.fail │ │ ├── NoLeadingSlashOnUseUnitTest.php │ │ └── NoLeadingSlashOnUseUnitTest.success │ └── Whitespace │ │ ├── MultipleEmptyLinesUnitTest.fail │ │ ├── MultipleEmptyLinesUnitTest.php │ │ └── MultipleEmptyLinesUnitTest.success ├── bootstrap.php └── ruleset.xml ├── README.md ├── composer.json ├── lerna.json ├── package.json ├── packages ├── README.md ├── eslint-config-humanmade │ ├── fixtures │ │ ├── eslint.config.js │ │ ├── fail │ │ │ ├── component-jsx-parentheses.js │ │ │ ├── import-order.js │ │ │ ├── jsx-boolean-value.jsx │ │ │ ├── jsx-curly-newline.jsx │ │ │ ├── semicolon.js │ │ │ ├── template-curly-spacing.js │ │ │ └── variable-declaration.js │ │ ├── pass │ │ │ ├── component-jsx-parentheses.jsx │ │ │ ├── import-order.js │ │ │ ├── jsdoc-inline-arrow.js │ │ │ ├── jsx-boolean-value.jsx │ │ │ ├── jsx-curly-newline.jsx │ │ │ ├── semicolon.js │ │ │ └── template-curly-spacing.js │ │ └── test-lint-config.js │ ├── index.js │ ├── package-lock.json │ ├── package.json │ └── readme.md └── stylelint-config │ ├── .stylelintrc.json │ ├── fixtures │ ├── fail │ │ ├── bad-bem-syntax.css │ │ ├── max-nesting-depth.scss │ │ └── no-color-named.css │ ├── pass │ │ ├── style.css │ │ └── style.scss │ └── test-lint-config.js │ ├── package-lock.json │ ├── package.json │ └── readme.md ├── phpunit.xml.dist ├── publish.sh ├── ruleset.xml └── tests ├── AllSniffs.php ├── FixtureTests.php ├── bootstrap.php └── fixtures ├── fail ├── consecutive-empty-lines.php ├── consecutive-empty-lines.php.json ├── escape-output.php ├── escape-output.php.json ├── isset.php ├── isset.php.json ├── meta-queries.php ├── meta-queries.php.json ├── not-namespace.php ├── not-namespace.php.json ├── order-by.php ├── order-by.php.json ├── server-input.php ├── server-input.php.json ├── use-order.php └── use-order.php.json └── pass ├── escape-output.php ├── inc ├── coffee │ ├── grinder │ │ └── grounds.php │ └── pot.php └── namespace.php ├── isset.php ├── load.php ├── meta-queries.php ├── nonce-verification.php ├── order-by.php ├── plugin.php ├── server-input.php ├── tests └── namespace.php └── use-order.php /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 22 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /HM-Minimum/ruleset.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM-Minimum/ruleset.xml -------------------------------------------------------------------------------- /HM/Sniffs/Classes/OnlyClassInFileSniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/Classes/OnlyClassInFileSniff.php -------------------------------------------------------------------------------- /HM/Sniffs/Debug/ESLintSniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/Debug/ESLintSniff.php -------------------------------------------------------------------------------- /HM/Sniffs/ExtraSniffCode.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/ExtraSniffCode.php -------------------------------------------------------------------------------- /HM/Sniffs/Files/ClassFileNameSniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/Files/ClassFileNameSniff.php -------------------------------------------------------------------------------- /HM/Sniffs/Files/FunctionFileNameSniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/Files/FunctionFileNameSniff.php -------------------------------------------------------------------------------- /HM/Sniffs/Files/NamespaceDirectoryNameSniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/Files/NamespaceDirectoryNameSniff.php -------------------------------------------------------------------------------- /HM/Sniffs/Functions/NamespacedFunctionsSniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/Functions/NamespacedFunctionsSniff.php -------------------------------------------------------------------------------- /HM/Sniffs/Layout/OrderSniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/Layout/OrderSniff.php -------------------------------------------------------------------------------- /HM/Sniffs/Namespaces/NoLeadingSlashOnUseSniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/Namespaces/NoLeadingSlashOnUseSniff.php -------------------------------------------------------------------------------- /HM/Sniffs/PHP/IssetSniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/PHP/IssetSniff.php -------------------------------------------------------------------------------- /HM/Sniffs/Performance/SlowMetaQuerySniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/Performance/SlowMetaQuerySniff.php -------------------------------------------------------------------------------- /HM/Sniffs/Performance/SlowOrderBySniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/Performance/SlowOrderBySniff.php -------------------------------------------------------------------------------- /HM/Sniffs/Security/EscapeOutputSniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/Security/EscapeOutputSniff.php -------------------------------------------------------------------------------- /HM/Sniffs/Security/NonceVerificationSniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/Security/NonceVerificationSniff.php -------------------------------------------------------------------------------- /HM/Sniffs/Security/ValidatedSanitizedInputSniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/Security/ValidatedSanitizedInputSniff.php -------------------------------------------------------------------------------- /HM/Sniffs/Whitespace/MultipleEmptyLinesSniff.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Sniffs/Whitespace/MultipleEmptyLinesSniff.php -------------------------------------------------------------------------------- /HM/Tests/Classes/OnlyClassInFileUnitTest.fail.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Tests/Classes/OnlyClassInFileUnitTest.fail.class -------------------------------------------------------------------------------- /HM/Tests/Classes/OnlyClassInFileUnitTest.fail.function: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Tests/Classes/OnlyClassInFileUnitTest.fail.function -------------------------------------------------------------------------------- /HM/Tests/Classes/OnlyClassInFileUnitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Tests/Classes/OnlyClassInFileUnitTest.php -------------------------------------------------------------------------------- /HM/Tests/Classes/OnlyClassInFileUnitTest.success.const: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Tests/Classes/OnlyClassInFileUnitTest.success.const -------------------------------------------------------------------------------- /HM/Tests/Files/ClassFileNameUnitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/humanmade/coding-standards/HEAD/HM/Tests/Files/ClassFileNameUnitTest.php -------------------------------------------------------------------------------- /HM/Tests/Files/ClassFileNameUnitTest/class-Foo.php: -------------------------------------------------------------------------------- 1 |