├── .editorconfig ├── .eslintrc.js ├── .github └── workflows │ └── push.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── Dockerfile ├── LICENSE ├── README.md ├── bin └── readable.js ├── docs ├── add-rule.md ├── api.md ├── logo.png └── rules.md ├── package.json ├── src ├── config-loader.js ├── default.readable.json ├── errors.js ├── help.js ├── line-count.js ├── lint.js ├── rule-test.js ├── rules │ ├── argument-override.js │ ├── class-comment.js │ ├── complex-if.js │ ├── empty-catch.js │ ├── file-max-size.js │ ├── forbidden-function-prefix.js │ ├── forbidden-functions.js │ ├── function-max-size.js │ ├── if-assigment.js │ ├── loop-max-nest.js │ ├── loop-max-size.js │ ├── max-nest.js │ ├── missing-braces.js │ ├── namespace-max-files.js │ ├── ternary-max-length.js │ └── variable-length.js ├── stream.js ├── tokenize.js └── utils.js └── tests ├── errors.js ├── fixtures └── files │ ├── 1.php │ ├── ignore │ └── 4.php │ ├── inner │ ├── 2.php │ └── 3.php │ └── no.txt ├── help.js ├── rules ├── argument-override.js ├── class-comment.js ├── complex-if.js ├── empty-catch.js ├── file-max-size.js ├── forbidden-function-prefix.js ├── forbidden-functions.js ├── function-max-size.js ├── if-assigment.js ├── loop-max-nest.js ├── loop-max-size.js ├── max-nest.js ├── missing-braces.js ├── namespace-max-files.js ├── ternary-max-length.js └── variable-length.js ├── tokenize.js └── utils.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/push.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/.github/workflows/push.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .nyc_output 3 | coverage -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/README.md -------------------------------------------------------------------------------- /bin/readable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/bin/readable.js -------------------------------------------------------------------------------- /docs/add-rule.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/docs/add-rule.md -------------------------------------------------------------------------------- /docs/api.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/docs/api.md -------------------------------------------------------------------------------- /docs/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/docs/logo.png -------------------------------------------------------------------------------- /docs/rules.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/docs/rules.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/package.json -------------------------------------------------------------------------------- /src/config-loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/config-loader.js -------------------------------------------------------------------------------- /src/default.readable.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/default.readable.json -------------------------------------------------------------------------------- /src/errors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/errors.js -------------------------------------------------------------------------------- /src/help.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/help.js -------------------------------------------------------------------------------- /src/line-count.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/line-count.js -------------------------------------------------------------------------------- /src/lint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/lint.js -------------------------------------------------------------------------------- /src/rule-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rule-test.js -------------------------------------------------------------------------------- /src/rules/argument-override.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/argument-override.js -------------------------------------------------------------------------------- /src/rules/class-comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/class-comment.js -------------------------------------------------------------------------------- /src/rules/complex-if.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/complex-if.js -------------------------------------------------------------------------------- /src/rules/empty-catch.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/empty-catch.js -------------------------------------------------------------------------------- /src/rules/file-max-size.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/file-max-size.js -------------------------------------------------------------------------------- /src/rules/forbidden-function-prefix.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/forbidden-function-prefix.js -------------------------------------------------------------------------------- /src/rules/forbidden-functions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/forbidden-functions.js -------------------------------------------------------------------------------- /src/rules/function-max-size.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/function-max-size.js -------------------------------------------------------------------------------- /src/rules/if-assigment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/if-assigment.js -------------------------------------------------------------------------------- /src/rules/loop-max-nest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/loop-max-nest.js -------------------------------------------------------------------------------- /src/rules/loop-max-size.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/loop-max-size.js -------------------------------------------------------------------------------- /src/rules/max-nest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/max-nest.js -------------------------------------------------------------------------------- /src/rules/missing-braces.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/missing-braces.js -------------------------------------------------------------------------------- /src/rules/namespace-max-files.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/namespace-max-files.js -------------------------------------------------------------------------------- /src/rules/ternary-max-length.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/ternary-max-length.js -------------------------------------------------------------------------------- /src/rules/variable-length.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/rules/variable-length.js -------------------------------------------------------------------------------- /src/stream.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/stream.js -------------------------------------------------------------------------------- /src/tokenize.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/tokenize.js -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/src/utils.js -------------------------------------------------------------------------------- /tests/errors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/errors.js -------------------------------------------------------------------------------- /tests/fixtures/files/1.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/files/ignore/4.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/files/inner/2.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/files/inner/3.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/files/no.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/help.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/help.js -------------------------------------------------------------------------------- /tests/rules/argument-override.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/argument-override.js -------------------------------------------------------------------------------- /tests/rules/class-comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/class-comment.js -------------------------------------------------------------------------------- /tests/rules/complex-if.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/complex-if.js -------------------------------------------------------------------------------- /tests/rules/empty-catch.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/empty-catch.js -------------------------------------------------------------------------------- /tests/rules/file-max-size.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/file-max-size.js -------------------------------------------------------------------------------- /tests/rules/forbidden-function-prefix.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/forbidden-function-prefix.js -------------------------------------------------------------------------------- /tests/rules/forbidden-functions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/forbidden-functions.js -------------------------------------------------------------------------------- /tests/rules/function-max-size.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/function-max-size.js -------------------------------------------------------------------------------- /tests/rules/if-assigment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/if-assigment.js -------------------------------------------------------------------------------- /tests/rules/loop-max-nest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/loop-max-nest.js -------------------------------------------------------------------------------- /tests/rules/loop-max-size.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/loop-max-size.js -------------------------------------------------------------------------------- /tests/rules/max-nest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/max-nest.js -------------------------------------------------------------------------------- /tests/rules/missing-braces.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/missing-braces.js -------------------------------------------------------------------------------- /tests/rules/namespace-max-files.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/namespace-max-files.js -------------------------------------------------------------------------------- /tests/rules/ternary-max-length.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/ternary-max-length.js -------------------------------------------------------------------------------- /tests/rules/variable-length.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/rules/variable-length.js -------------------------------------------------------------------------------- /tests/tokenize.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/tokenize.js -------------------------------------------------------------------------------- /tests/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/officient/readable/HEAD/tests/utils.js --------------------------------------------------------------------------------