ale/ale_linters
José Júnior 4caf273d53 Adds options to foodcritic linter (#437)
* Adds options to foodcritic linter

Adds a way to pass command line options to the foodcritic command and
documentation about it.

* Creates a simple test for foodcritic command callback

This test simply runs the GetCommand function for the foodcritic linter
and feeds it with some test variables to assert the command line is
being created/escaped correctly.

* Makes foodcritic linter use a command callback

Following review comments, changes the foodcritic linter to use a
`GetCommand` callback for the `command_callback` linter option.

Makes sure that `~` are escaped: flags on foodcritic command line are
negated by adding a `~` in front of the specific cop name:

```
foodcritic -t ~FC011
```

But the way the commands are executed cause foodcritic to fail (since
tilde is recognized as home directory).

* Fixes the doc to include new variables
2017-04-05 18:21:47 +01:00
..
ansible Replace every stdin-wrapper script with the new %t formatting support 2017-02-11 19:40:57 +00:00
asciidoc proselint: Add more supported filetypes (#367) 2017-03-02 00:06:09 +00:00
asm Add support for ASM files using GCC 2017-03-25 16:36:17 -07:00
c #277 #318 Support all same-directory includes for gcc and clang 2017-03-11 16:48:49 +00:00
chef Adds options to foodcritic linter (#437) 2017-04-05 18:21:47 +01:00
cmake Add cmakelint support for cmake filetype 2017-02-25 17:27:03 +00:00
coffee Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
cpp #277 #318 Support all same-directory includes for gcc and clang 2017-03-11 16:48:49 +00:00
cs Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
css Fix #260 automatically set .csslintrc files from ancestor directories 2017-03-29 00:56:39 +01:00
d Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
dockerfile Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
elixir Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
elm Add support for error details 2017-03-01 23:27:48 -08:00
erlang Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
fortran Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
go Add support for gosimple and staticcheck 2017-03-30 11:49:52 +10:00
haml Add hamllint linter for Haml (#377) 2017-03-03 20:27:07 +00:00
haskell Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
help proselint: Add more supported filetypes (#367) 2017-03-02 00:06:09 +00:00
html Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
java Fix #438 Create Java .class files for javac in a temporary directory 2017-03-31 20:14:53 +01:00
javascript Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
json Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
lua Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
markdown proselint: Add more supported filetypes (#367) 2017-03-02 00:06:09 +00:00
matlab Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
nim Fix problems with nim check (#404) 2017-03-22 09:11:32 +00:00
nix Add support for nix linting 2017-03-05 20:36:29 +00:00
nroff proselint: Add more supported filetypes (#367) 2017-03-02 00:06:09 +00:00
ocaml Add a script for custom checks to enforce using the abort flag for functions and trailing whitespace, and fix existing issues. 2017-01-22 14:54:57 +00:00
perl Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
php Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
pod proselint: Add more supported filetypes (#367) 2017-03-02 00:06:09 +00:00
pug Replace every stdin-wrapper script with the new %t formatting support 2017-02-11 19:40:57 +00:00
puppet Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
pyrex Replace every stdin-wrapper script with the new %t formatting support 2017-02-11 19:40:57 +00:00
python Copy all loclist items returned from handlers, and set up defaults for convenience 2017-02-26 14:51:22 +00:00
rst proselint: Add more supported filetypes (#367) 2017-03-02 00:06:09 +00:00
ruby Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
rust Use the lint_file option so the Cargo linter will only be run against files on disk 2017-03-29 00:34:03 +01:00
sass Replace every stdin-wrapper script with the new %t formatting support 2017-02-11 19:40:57 +00:00
scala Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
scss Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
sh #447 Pass a temporary file to the shell linter instead 2017-04-03 23:11:25 +01:00
slim add slim-lint (#388) 2017-03-13 23:21:59 +00:00
sml Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
swift Fix SwiftLint 2017-01-17 19:59:45 +01:00
testft Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
tex proselint: Add more supported filetypes (#367) 2017-03-02 00:06:09 +00:00
texinfo proselint: Add more supported filetypes (#367) 2017-03-02 00:06:09 +00:00
text proselint: Add more supported filetypes (#367) 2017-03-02 00:06:09 +00:00
typescript Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
verilog Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00
vim Support older versions of Vint 2017-03-11 19:45:33 +00:00
xhtml proselint: Add more supported filetypes (#367) 2017-03-02 00:06:09 +00:00
yaml Remove 'col' from linters where it is hardcoded to 1 (#434) 2017-03-30 23:33:38 +01:00