├── .editorconfig ├── .gitignore ├── .npmignore ├── .travis.yml ├── LICENSE ├── Makefile ├── README.md ├── bin └── index.js ├── lib ├── cli.coffee ├── editorconfig.coffee ├── editorconfigerror.coffee ├── index.coffee ├── line-rule.coffee ├── rule.coffee ├── rules │ ├── end-of-line.coffee │ ├── indent-char.coffee │ ├── insert-final-newline.coffee │ ├── max-line-length.coffee │ └── trim-trailing-whitespace.coffee └── util.coffee ├── package.json └── test ├── end-of-line.coffee ├── fixtures ├── end-of-line │ ├── .editorconfig │ └── file ├── indent-char-null │ ├── .editorconfig │ └── file ├── indent-char-space │ ├── .editorconfig │ └── file ├── indent-char-tab │ ├── .editorconfig │ └── file ├── insert-final-newline-false │ ├── .editorconfig │ └── file ├── insert-final-newline-true │ ├── .editorconfig │ └── file └── trim-trailing-whitespace-true │ ├── .editorconfig │ └── file ├── indent-char.coffee ├── insert-final-newline.coffee ├── mocha.opts └── trim-trailing-whitespace.coffee /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | .editorconfig 3 | .travis.yml 4 | src/ 5 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/README.md -------------------------------------------------------------------------------- /bin/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/bin/index.js -------------------------------------------------------------------------------- /lib/cli.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/lib/cli.coffee -------------------------------------------------------------------------------- /lib/editorconfig.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/lib/editorconfig.coffee -------------------------------------------------------------------------------- /lib/editorconfigerror.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/lib/editorconfigerror.coffee -------------------------------------------------------------------------------- /lib/index.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/lib/index.coffee -------------------------------------------------------------------------------- /lib/line-rule.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/lib/line-rule.coffee -------------------------------------------------------------------------------- /lib/rule.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/lib/rule.coffee -------------------------------------------------------------------------------- /lib/rules/end-of-line.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/lib/rules/end-of-line.coffee -------------------------------------------------------------------------------- /lib/rules/indent-char.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/lib/rules/indent-char.coffee -------------------------------------------------------------------------------- /lib/rules/insert-final-newline.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/lib/rules/insert-final-newline.coffee -------------------------------------------------------------------------------- /lib/rules/max-line-length.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/lib/rules/max-line-length.coffee -------------------------------------------------------------------------------- /lib/rules/trim-trailing-whitespace.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/lib/rules/trim-trailing-whitespace.coffee -------------------------------------------------------------------------------- /lib/util.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/lib/util.coffee -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/package.json -------------------------------------------------------------------------------- /test/end-of-line.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/test/end-of-line.coffee -------------------------------------------------------------------------------- /test/fixtures/end-of-line/.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | end_of_line = crlf 3 | -------------------------------------------------------------------------------- /test/fixtures/end-of-line/file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/test/fixtures/end-of-line/file -------------------------------------------------------------------------------- /test/fixtures/indent-char-null/.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/test/fixtures/indent-char-null/.editorconfig -------------------------------------------------------------------------------- /test/fixtures/indent-char-null/file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/test/fixtures/indent-char-null/file -------------------------------------------------------------------------------- /test/fixtures/indent-char-space/.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/test/fixtures/indent-char-space/.editorconfig -------------------------------------------------------------------------------- /test/fixtures/indent-char-space/file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/test/fixtures/indent-char-space/file -------------------------------------------------------------------------------- /test/fixtures/indent-char-tab/.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | indent_style = tab 3 | -------------------------------------------------------------------------------- /test/fixtures/indent-char-tab/file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/test/fixtures/indent-char-tab/file -------------------------------------------------------------------------------- /test/fixtures/insert-final-newline-false/.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | insert_final_newline = false 3 | -------------------------------------------------------------------------------- /test/fixtures/insert-final-newline-false/file: -------------------------------------------------------------------------------- 1 | line -------------------------------------------------------------------------------- /test/fixtures/insert-final-newline-true/.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | insert_final_newline = true 3 | -------------------------------------------------------------------------------- /test/fixtures/insert-final-newline-true/file: -------------------------------------------------------------------------------- 1 | line 2 | -------------------------------------------------------------------------------- /test/fixtures/trim-trailing-whitespace-true/.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | trim_trailing_whitespace = true 3 | -------------------------------------------------------------------------------- /test/fixtures/trim-trailing-whitespace-true/file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/test/fixtures/trim-trailing-whitespace-true/file -------------------------------------------------------------------------------- /test/indent-char.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/test/indent-char.coffee -------------------------------------------------------------------------------- /test/insert-final-newline.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/test/insert-final-newline.coffee -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/test/mocha.opts -------------------------------------------------------------------------------- /test/trim-trailing-whitespace.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notslang/editorconfig-tools/HEAD/test/trim-trailing-whitespace.coffee --------------------------------------------------------------------------------