ale/ale_linters
Derek Prior f2fc7072b9
Fix Rubocop filename handling
In my previous change, I updated the Rubocop linter to pass the filename
to Rubocop. This change was tested on a file I expected Rubocop to
ignore and the experience in vim was as I expected. However, I soon
found that ALE wasn't finding errors in files that should not be
ignored. After investigation, I found a few issues that this commit
fixes:

1. We were not properly passing the current filename. We now use
   `expand` to get the filename.
2. The regular expression used in the callback was expecting the static
   value of `_` for the filename in output. We now use a looser regular
   expression that begins matching on the first `:`.
3. The linter was defined statically. By using the current filename when
   defining the command the linter would always use the filename of the
   first Ruby file the user opened. We now use a `command_callback` to
   inject the proper filename.

I tested these changes on a configuration with included and excluded
files and found it to work as I expected. Apologies for the earlier
incorrect change.
2017-02-03 16:03:52 -05:00
..
ansible Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
c Tell gcc to use C, not C++, when linting C source files 2017-02-01 11:22:21 +01:00
chef 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
coffee 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
cpp Added ability to reload compilation flags for c and c++ after loading plugin 2016-12-24 00:18:14 +01:00
cs Support C# linting with mono compiler mcs. (#250) 2017-01-15 12:42:17 +00:00
css [enhancement] add node_modules support for stylelint & htmlhint (#226) 2016-12-22 11:39:01 +00:00
d 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
dockerfile Dockerfile linting via hadolint (#282) 2017-01-30 15:27:26 +00:00
elixir Dockerfile linting via hadolint (#282) 2017-01-30 15:27:26 +00:00
elm 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
erlang Make the Erlang linter code match the style used in the rest of the codebase. Make the options match the new standard. 2017-01-22 13:51:57 +00:00
fortran 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
go Redirect go build output to /dev/null 2016-12-23 14:56:44 +08:00
haskell 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
html [enhancement] add node_modules support for stylelint & htmlhint (#226) 2016-12-22 11:39:01 +00:00
javascript 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
json 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
lua 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
markdown Add Proselint (#185) 2016-11-28 09:36:11 +00:00
matlab 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
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 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
php 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
pug Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
puppet 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
pyrex Remove many redundant handlers 2016-10-11 09:22:47 -05:00
python Improve mypy handling a little bit more 2017-01-20 17:30:34 +00:00
ruby Fix Rubocop filename handling 2017-02-03 16:03:52 -05:00
rust 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
sass [enhancement] add node_modules support for stylelint & htmlhint (#226) 2016-12-22 11:39:01 +00:00
scala 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
scss 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
sh 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
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 LaTeX Linters (#190) 2016-12-04 22:19:06 +00:00
text Fix the proeslint linter for plaintext files 2016-12-13 10:19:19 +00:00
typescript 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
verilog 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
vim Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
yaml 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