From cd6d8f2ab62e30571da9384c561da03b36f60b1c Mon Sep 17 00:00:00 2001 From: w0rp Date: Thu, 22 Dec 2016 11:32:20 +0000 Subject: [PATCH] Fix #229 Disable text linters by default --- README.md | 5 +++-- autoload/ale/linter.vim | 3 +++ doc/ale.txt | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9ae147c1..2a6c9aca 100644 --- a/README.md +++ b/README.md @@ -82,13 +82,14 @@ name. That seems to be the fairest way to arrange this table. | Scala | [scalac](http://scala-lang.org) | | Swift | [swiftlint](https://swift.org/) | | Tex | [proselint](http://proselint.com/) | -| Text | [proselint](http://proselint.com/) | +| Text^^ | [proselint](http://proselint.com/) | | TypeScript | [tslint](https://github.com/palantir/tslint), typecheck | | Verilog | [iverilog](https://github.com/steveicarus/iverilog), [verilator](http://www.veripool.org/projects/verilator/wiki/Intro) | | Vim | [vint](https://github.com/Kuniwak/vint) | | YAML | [yamllint](https://yamllint.readthedocs.io/) | -*^ Supported only on Unix machines via a wrapper script.* +* *^ Supported only on Unix machines via a wrapper script.* +* *^^ No text linters are enabled by default.* If you would like to see support for more languages and tools, please [create an issue](https://github.com/w0rp/ale/issues) diff --git a/autoload/ale/linter.vim b/autoload/ale/linter.vim index 802d8646..8885e00b 100644 --- a/autoload/ale/linter.vim +++ b/autoload/ale/linter.vim @@ -15,9 +15,12 @@ let s:default_ale_linter_aliases = { " Default linters to run for particular filetypes. " The user defined linter selections will be merged with this Dictionary. +" +" No linters are used for plaintext files by default. let s:default_ale_linters = { \ 'zsh': ['shell'], \ 'csh': ['shell'], +\ 'text': [], \} " Testing/debugging helper to unload all linters. diff --git a/doc/ale.txt b/doc/ale.txt index bed7e31f..6ee90a51 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -93,6 +93,8 @@ The following languages and tools are supported. * SCSS: 'sasslint', 'scsslint', 'stylelint' * Scala: 'scalac' * Swift: 'swiftlint' +* Tex: 'proselint' +* Text: 'proselint' * TypeScript: 'tslint', 'typecheck' * Verilog: 'iverilog', 'verilator' * Vim: 'vint'