w0rp
0c6370f41a
Fix #2276 - Replace a potentially infinite loop for hie
2019-02-07 16:26:04 +00:00
w0rp
0ed3fbc596
Fix #2263 - detailed Flow errors should show the original message
2019-02-01 13:04:18 +00:00
w0rp
b315667ebe
Fix #2192 - Handle more ignore-pattern messages for ESLint
2019-01-27 12:10:03 +00:00
w0rp
0495a8be20
Merge pull request #2153 from deltaskelta/gqlint-fix
...
changed gqlint to lint the file on disk
2018-12-18 10:20:44 +00:00
w0rp
6ef54842de
Merge pull request #2136 from hsanson/368-chktex-latex-report-errors-from-wrong-file
...
Fix 368 - Lacheck reports errors from input{} files.
2018-12-16 13:18:51 +00:00
w0rp
df76d8a51c
Revert "Merge pull request #2083 from zackhsi/scalac-until-jvm"
...
This reverts commit 1c89495d77 , reversing
changes made to 4b4b09593b .
2018-12-03 20:42:06 +00:00
Ryan
1d4f985538
Merge pull request #2110 from w0rp/lazy-clipboard
...
Optimize :ALEIntoToClipboard to only copy to clipboard once
2018-11-30 09:39:57 -06:00
Ryan
8176f79fa1
Merge pull request #1734 from sridhars/master
...
Add language server source in ALEDetail
2018-11-30 09:36:37 -06:00
Bjorn Neergaard
d2b0ae8108
Merge branch 'master' into sridhars
2018-11-29 14:57:35 -07:00
Bjorn Neergaard
ef641dda80
Add test for detail in lsp ReadDiagnostics
2018-11-29 14:51:01 -07:00
Bjorn Neergaard
fcd5e18a99
Use single quotes to satisfy vint
2018-11-29 14:35:54 -07:00
Bjorn Neergaard
121ecf9262
Only set the unnamed register at the end of :ALEInfoToClipboard
...
This fixes performance problems in Neovim, where every character results
in spawning a new clipboard-tool process.
Behaviour is not similarly pathological in Vim, but it still results in
an unnecessary amount of register churn.
2018-11-29 13:48:17 -07:00
w0rp
0a384a49d3
Merge pull request #2096 from mgedmin/flake8-uses-vcols
...
flake8 reports visual columns
2018-11-28 09:49:31 +00:00
w0rp
7e28a61fac
Merge pull request #2104 from andys8/patch-1
...
Readme: Links for tsserver and cargo
2018-11-26 10:24:15 +00:00
Andy
44512bb8af
Readme: Links for tsserver and cargo
2018-11-25 16:52:32 +01:00
w0rp
51b6fa4aa2
Merge pull request #2103 from bfredl/ns
...
Don't hardcode the namespace id for virtual text
2018-11-25 14:05:39 +00:00
w0rp
6746cb3333
Fixing linter problems
2018-11-25 13:57:13 +00:00
Björn Linse
d18511f322
Don't hardcode the namespace id for virtual text
...
This makes collisions with other plugins less likely.
2018-11-25 11:06:55 +01:00
lfree
2ab64514d0
php: change phpstan's --errorFormat to --error-format ( #2005 )
...
* php: change phpstan's --errorFormat to --error-format
* add version check to phpstan
2018-11-23 09:39:50 +00:00
Marius Gedminas
a0baeec591
Fix unit tests
2018-11-22 12:09:45 +02:00
Marius Gedminas
9481f307fb
flake8 reports visual columns
...
Fixes #2092 .
2018-11-22 11:57:02 +02:00
w0rp
ff0bd14efe
Merge pull request #2068 from m-pilia/ispc
...
Add linter for ispc
2018-11-21 16:44:59 +00:00
Martino Pilia
66212966dd
Add --nowrap to ispc options
2018-11-21 10:40:07 +01:00
w0rp
a05a16b109
Merge pull request #2070 from meain/fixer-prettier-yaml
...
add yaml to registry for prettier
2018-11-19 20:22:35 +00:00
w0rp
e74d43fb25
Fix #2084 - Disable mix by default, as it causes too many problems
2018-11-19 20:14:30 +00:00
w0rp
1c89495d77
Merge pull request #2083 from zackhsi/scalac-until-jvm
...
Continue scalac compilation until just before bytecode generation
2018-11-19 20:02:07 +00:00
w0rp
4b4b09593b
Merge pull request #2087 from m-pilia/ada
...
Add GCC linter for Ada
2018-11-19 19:36:32 +00:00
Martino Pilia
d90673ab5b
Add GCC linter for Ada
2018-11-18 18:14:24 +01:00
Zack Hsi
1b779fbc08
Fix test
2018-11-17 13:02:16 -08:00
w0rp
f538bb440a
Merge pull request #1907 from guill/compile_commands_fix
...
Fix bug where last C compile flag was ignored
2018-11-17 20:28:11 +00:00
Jacob Segal
1b3fa9828c
Fix bug where last c flag was ignored
...
There is currently a check that tries to prevent c-flags that contain
'-' in them from being unintentionally split and included in the list of
commands. For example, we wouldn't want "-fno-exceptions " to appear as
"-fno" and "-exceptions ". The way this check was done was by making sure
the last character of the split string was a space.
This meant that the very last option to appear in the compile command
was ignored (as it doesn't end with a space). This fix explicitly skips
the ends-with-space check on the last option in the command-line.
This isn't the best fix. Really we should be using the same
argument-processing rules as a shell would rather than just splitting on
'-'. That's a much larger and more complicated change though.
2018-11-17 04:04:39 -08:00
Zack Hsi
c25582076c
Continue scalac compilation until just before bytecode generation
...
Previous behavior does not compile deep enough to surface errors.
See compiler phases:
https://docs.scala-lang.org/overviews/compiler-options/index.html#compilation-phases
2018-11-16 15:31:13 -08:00
w0rp
531868f759
Merge pull request #2079 from jeffkreeftmeijer/vale-asciidoc
...
Add Vale linter for AsciiDoc
2018-11-15 09:10:53 +00:00
Jeff Kreeftmeijer
7c73901199
Add Vale linter for AsciiDoc
...
Vale supports AsciiDoc. This patch adds a Vale linter for AsciiDoc
files, which is based on the existing Markdown linter.
2018-11-14 21:41:18 +01:00
w0rp
dd7b2188ab
Add style highlights for virtualtext and document all of them
2018-11-14 16:44:53 +00:00
jamestthompson3
f64f9aba16
Add specific highlight groups for virtualtext ( #2071 )
2018-11-14 16:21:35 +00:00
w0rp
3948638dbe
Merge pull request #2069 from meain/fixer-prettier-html-tests
...
add tests for prettier-html
2018-11-12 18:33:16 +00:00
Abin Simon
d045de2618
add yaml to registry for prettier
2018-11-12 12:43:08 +05:30
Abin Simon
1f4dbb82ec
add tests for prettier-html
2018-11-12 12:28:34 +05:30
Martino Pilia
9e8f2b0840
Lint ispc on disk to solve include imprecisions
2018-11-12 00:54:24 +01:00
Martino Pilia
0b4507ed56
Add linter for ispc
2018-11-11 18:26:37 +01:00
w0rp
d30da203b9
Merge pull request #2063 from languitar/better-checkstyle
...
Checkstyle improvements
2018-11-11 10:00:37 +00:00
w0rp
7dd460303d
Merge pull request #2060 from meain/fixer-pretty-html
...
Add prettier to html formatters
2018-11-11 09:57:48 +00:00
w0rp
d1d5292178
Fix #2054 - Make golint configurable
2018-11-11 09:42:57 +00:00
w0rp
b96105bebb
Merge pull request #2056 from luan/virtualtext
...
Add support for nvim's virtualtext on cursor
2018-11-11 09:17:53 +00:00
w0rp
6858b4a259
Merge pull request #2059 from jparise/test-elixir-paths
...
Remove test/command_callback/mix_paths/
2018-11-10 11:00:13 +00:00
w0rp
90f2875f29
Merge pull request #2053 from andreypopp/fix-ocamlformat-stdin-stdout
...
Make ocamlformat work without temporary files
2018-11-10 10:57:11 +00:00
w0rp
f8d3ffb60e
Fix #1960 - Do not fix files on :wq
2018-11-10 10:06:56 +00:00
w0rp
e4faf82cab
Enable ESLint for Vue files by default
2018-11-08 09:19:02 +00:00
Johannes Wienke
8e24a1a916
Let checkstyle only lint original files
...
Temporary files break checks like the one for a missing
package-info.java, as discussed in #1305 .
2018-11-07 13:26:54 +01:00
Johannes Wienke
5d6b4ef73f
Support older checkstyle versions
...
The output format used by older checkstyle versions differs from the one
of new versions. This commit adds a second parsing iteration on the
output lines with a suitable pattern to support both versions in
parallel. Due to the differences in the order of matching groups this is
hard to achieve in a single pass through the output lines.
An appropriate test case is added.
2018-11-07 13:25:48 +01:00
Luan Santos
ba9b056a57
Fix info text
...
Removed ale_virualtext_prefix from debugging since it's not requried for
the functionality to work.
Sorted debugging info to make the list easier to navigate/diff.
2018-11-06 22:38:47 -08:00
Luan Santos
3ec09f7826
Document ale_virtualtext_delay
2018-11-06 22:36:37 -08:00
Luan Santos
f58a5cba05
Move virtualtext handling to own file
...
This allows cursor and virtualtext to be independently autoloaded.
2018-11-06 22:31:35 -08:00
Abin Simon
ed8104b6ab
Add prettier to html formatters
2018-11-07 12:00:59 +05:30
Jon Parise
dd7501ee48
Remove test/command_callback/mix_paths/
...
All of the other tests were already using equivalent fixtures under
test/command_callback/elixir_paths/, so let's use that path everywhere.
2018-11-06 14:01:12 -08:00
w0rp
ad98cb7448
Merge pull request #2045 from jparise/elixir-ls-umbrella
...
elixir-ls now recognizes umbrella projects
2018-11-06 20:02:34 +00:00
w0rp
51341fbe36
Update the instructions for installing the tslint tsserver plugin
2018-11-06 19:57:36 +00:00
w0rp
25068de91d
Fix incorrect warning match
...
Co-Authored-By: luan <github@luan.sh >
2018-11-06 11:31:17 -08:00
Luan Santos
c41dbe2ba9
Add support for nvim's virtualtext on cursor
...
- Add g:ale_virtualtext_cursor boolean to enable/disable it
- Add g:ale_virtualtext_prefix to configure what prefix to use (default:
'> ')
- Requires neovim 0.3.2's unreleased API `nvim_buf_set_virtual_text`
2018-11-05 22:45:40 -08:00
w0rp
945dd2fa26
Explain how to configure aliases better, especially for Vue
2018-11-05 13:19:24 +00:00
Andrey Popp
b9fb62a4cd
Make ocamlformat work without temporary files
...
Problem: ocamlformat is configured to format files in-place and thus go
via creating a temporary file for that. Because temporary file resides
in a different directory ocamlformat can't find `.ocamlformat`
configuration files in an original location of source files.
Solution: ocamlformat since version 0.8 can read sources on stdin and
spur result on stdout. We reconfigure ocamlformat to use a simpler
interface.
2018-11-04 20:32:56 +03:00
Jon Parise
b25794e81b
elixir-ls now recognizes umbrella projects
...
Previously, elixir-ls would treat each sub-project within an umbrella as
standalone, which isn't desirable from a language server perspective.
Added ale#handlers#elixir#FindMixUmbrellaRoot, which locates the current
project's root and then continues searching upwards for a potential
umbrella project root. This literally looks just two levels up to keep
things simple while keeping in line with Elixir project conventions.
Use this new function to determine elixir-ls's LSP project root.
2018-11-04 06:40:25 -08:00
w0rp
acdc99b94d
Merge pull request #2051 from aclemons/ruumba
...
Add initial support for ruumba in eruby files.
2018-11-04 11:33:15 +00:00
Justin Howard
88d328739f
Allow configuration of hamllint executable ( #2048 )
...
* Allow configuration of hamllint executable
The hamllint executable was hard-coded, preventing it from being
overridden. Fix the executable to be dynamic to allow custom executable
paths.
2018-11-04 10:35:21 +00:00
w0rp
9171791646
Merge pull request #2046 from tyru/fix-unmatched-quote
...
[Doc] Fix unmatched backquote in doc
2018-11-04 10:19:11 +00:00
w0rp
71bb62c858
Clean up a buffer variable in a test file
2018-11-04 10:15:41 +00:00
w0rp
6aab3fe209
Merge pull request #2044 from Steap/bug/1388
...
PHP linter: make the path to the executable configurable
2018-11-04 10:13:44 +00:00
w0rp
93180239b9
Merge pull request #2042 from jparise/elixir-ls-config
...
Add configuration dictionary support to elixir-ls
2018-11-04 10:10:25 +00:00
Andrew Clemons
fa036ca72c
Add initial support for ruumba in eruby files.
...
Ruumba provides RuboCop linting for ERB templates.
https://github.com/ericqweinstein/ruumba
2018-11-04 19:55:06 +13:00
tyru
e3ca8831ea
fix unmatched backquote in doc
2018-11-02 12:15:18 +09:00
Cyril Roelandt
f34c089685
PHP linter: make the path to the executable configurable
...
Fixes #1388
2018-11-01 18:52:28 +01:00
Jon Parise
4bee0f1743
Add configuration dictionary support to elixir-ls
...
This adds generic configuration dictionary support to the elixir-ls
linter. This is useful for disabling its built-in Dialyzer support, for
example, which can improve startup time.
The configuration dictionary is a little verbose. I considered reducing
the user configuration to only the nested settings dictionary (and
having the linter implementation wrap it in the top-level `elixirLS`
dictionary), but leaving it fully configurable simplifies the code and
removes any assumptions about current or future ElixirLS behavior.
2018-10-31 10:32:48 -07:00
w0rp
4b841b5586
Fix the Windows tests
2018-10-31 16:25:04 +00:00
w0rp
5f206d900e
Merge pull request #2035 from jparise/lsp_config_callback
...
Add a `lsp_config_callback` linter option
2018-10-31 16:24:11 +00:00
w0rp
6212c22b5a
Add a bullet point about symbol search
2018-10-31 16:14:34 +00:00
w0rp
4ef2c81e95
Implement LSP symbol search
2018-10-31 16:13:31 +00:00
Jon Parise
2ac9e2a29e
Only send LSP config updates when the dict changes
...
Each LSP connection now stores its configuration dictionary. It is
initially empty (`{}`) and is updated each time the LSP connection is
started. When a change is detected, the workspace/didChangeConfiguration
message is sent to the LSP servers with the updated configuration.
2018-10-31 08:42:42 -07:00
Jon Parise
b5a7593577
Add a lsp_config_callback linter option
...
This is the callback-based variant of the existing `lsp_config` linter
option. It serves the same purpose but can be used when more complicated
processing is needed.
`lsp_config` and `lsp_config_callback` are mutually exclusive options;
if both an given, a linter preprocessing error will be raised.
The runtime logic has been wrapped in `ale#lsp_linter#GetConfig` for
convenience, similar to `ale#lsp_linter#GetOptions`.
This also adds documentation and an `AssertLSPConfig` test function for
completeness.
2018-10-31 08:42:42 -07:00
w0rp
20e4e3f9db
Merge pull request #2040 from leamingrad/jshint_filename
...
Pass the filename of the current file into jshint
2018-10-31 11:21:13 +00:00
James Owen
39fd7a0961
Add some basic callback tests for jshint
2018-10-31 11:48:52 +01:00
w0rp
cdda96154e
Merge pull request #2031 from capjo/master
...
Do not enable all clang-tidy checks by default
2018-10-31 10:26:08 +00:00
w0rp
73f9f3da23
Merge pull request #2036 from maxhungry/fix-rubocop-fixer
...
Use correct exclusion flag in rubocop fixer
2018-10-31 10:15:48 +00:00
w0rp
f01611464a
Tell people to write tests even more
2018-10-31 10:04:25 +00:00
James Owen
f75848b32c
Pass the filename of the current file into jshint
2018-10-31 10:17:55 +01:00
Max Hung
be02ba4ed7
Use correct exclusion flag in rubocop fixer
2018-10-31 11:18:07 +13:00
w0rp
709788084f
Try to fix the tests on Windows
2018-10-30 20:55:35 +00:00
Andreas Hollmann
ef7b4af917
Do not enable all clang-tidy checks by default
2018-10-30 11:46:53 +01:00
w0rp
cae40e1c34
Fix a typo
2018-10-29 18:36:03 +00:00
w0rp
caac5c93d6
#2017 Add support for display results from other sources
2018-10-29 18:28:28 +00:00
w0rp
2846e86217
#2017 Simplify lint cycles for supporting other sources later
2018-10-29 11:29:21 +00:00
w0rp
9dbebf1cb3
Merge pull request #2028 from capjo/master
...
Fix clazy tests
2018-10-29 09:42:29 +00:00
w0rp
70ea7a1338
Add a note about OmniSharp
2018-10-29 09:41:50 +00:00
Andreas Hollmann
4c14e6a5fd
Fix clazy tests
2018-10-28 17:44:45 +01:00
w0rp
70f2873699
Merge pull request #2024 from jpowell/1580-rubocop-fixer-force-exclusions
...
Adds missing "s" on rubocop exclusion flag
2018-10-26 18:19:42 +01:00
Justin Powell
90048ac933
fix missing (s) on rubocop exclusion flag
2018-10-26 11:47:28 -05:00
Alexander "Ananace" Olofsson
7af33637e8
Add the dockerfile_lint linter for Dockerfiles ( #1971 )
...
* Add the dockerfile_lint linter for Dockerfiles
2018-10-26 17:34:32 +01:00
Takuya Fujiwara
34318aedf4
Add prolog swipl linter ( #1979 )
...
* add prolog/swipl linter
* use load_files/2 instead of read_term/2
Because it also checks some semantic warnings / errors
not only syntactic warnings / errors.
e.g.:
* singleton warning
* discontiguous warning
* ...
cf. http://www.swi-prolog.org/pldoc/doc_for?object=style_check/1
* support error messages with no line number
:- module(module_name, [pred/0]).
causes
ERROR: Exported procedure module_name:pred/0 is not defined
* add test for prolog/swipl handler
* cosmetic fixes
* detect timeout using SIGALRM
* rename g:prolog_swipl_goals to g:prolog_swipl_load
* write doc for prolog/swipl linter
* update toc and README
* fix ignore patterns
2018-10-26 17:29:17 +01:00
w0rp
3d74a4f8a6
Merge pull request #2023 from jpowell/1580-rubocop-fixer-force-exclusions
...
Add force exclusions flag to rubocop fixer
2018-10-26 17:16:50 +01:00
Justin Powell
b7e0321890
closes #1580 add force exclusion to rubocop fixer
2018-10-26 10:40:02 -05:00
w0rp
86c035466b
Merge pull request #2022 from bengadbois/vim-plug-install-instructions
...
Add vim-plug installation instructions
2018-10-26 16:19:15 +01:00
Ben Gadbois
6c8e2f73f8
Add vim-plug installation instructions
2018-10-26 17:14:01 +02:00
w0rp
adc914a675
Merge pull request #1999 from stevenharman/expand_filename_for_reek
...
Reek: --force-exclusion flag
2018-10-26 10:21:33 +01:00
Dan Aloni
aa0203320b
Rust checker: allow secondary spans to be ignored ( #1696 )
...
* Rust checker: allow secondary spans to be ignored
* test/handler/test_rust_handler.vader: Add tests for g:ale_rust_ignore_secondary_spans
2018-10-26 09:38:20 +01:00
w0rp
77aacf0c91
#927 Allow b:ale_linter_aliases to be set to a String
2018-10-26 09:22:52 +01:00
Steven Harman
9c3daf3a66
Respect configured excluded_paths
2018-10-25 16:29:29 -04:00
w0rp
320c74ce1a
Merge pull request #1958 from Garland-g/perl6
...
Add Perl6 support via 'perl6 -c'
2018-10-25 15:38:33 +01:00
w0rp
3e65e85178
Merge pull request #2016 from terryding77/master
...
fix: change google_java_format_* to java_google_java_format_*
2018-10-25 15:34:31 +01:00
Anthony Poon
02c0d5bcb9
Only run stack if a stack.yaml config is found ( #1752 )
...
* Only run stack if a stack.yaml config is found
It is necessary to check for a stack.yaml file to distinguish between
cabal-only projects or stack projects (which are also cabal projects
since stack is built on top of cabal).
* Test that stack is called if stack.yaml exists
2018-10-25 15:30:49 +01:00
w0rp
9bdd5771ef
Merge pull request #2018 from muglug/patch-1
...
Update Psalm to use LSP
2018-10-25 15:22:34 +01:00
w0rp
b3829d043d
Merge pull request #2012 from paihu/fix-cdstring-win32-change-drive
...
Fix #2011 MS Windows, lint error when current drive and target file drive is different.
2018-10-25 14:24:56 +01:00
w0rp
68b5591299
Merge pull request #2015 from dsifford/dsifford-terraform
...
add terraform fmt fixer for terraform and hcl filetypes
2018-10-25 14:05:48 +01:00
Terry Ding
3ba9cad878
fix: change google_java_format_* to java_google_java_format_* for inject global variables according to doc/ale-java.txt
2018-10-24 20:10:31 +08:00
Derek P Sifford
395cabc22a
fix failed test
2018-10-23 21:20:03 -04:00
Derek P Sifford
90695c5082
update README.md
2018-10-23 21:02:08 -04:00
Derek P Sifford
e94a594e2e
add terraform fmt fixer for terraform and hcl filetypes
...
See #1718
2018-10-23 20:44:31 -04:00
paihu
d14db50c44
fix has('unix') equal 0 is windows.
2018-10-24 08:29:11 +09:00
paihu
f4395f5b8c
ale#path#CdString include ale#Escape
2018-10-23 23:20:27 +09:00
paihu
bc3ccd6e04
fix indent
2018-10-22 23:42:50 +09:00
paihu
2ea83939a5
fix testcase
2018-10-22 22:59:06 +09:00
paihu
0261dd2f51
cmd.exe, LABEL must have prefix ':' but have not suffix ':' ( https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/goto )
2018-10-22 22:58:11 +09:00
Daniel Welch
2000436dfd
LSP configuration via didChangeConfiguration ( #1852 )
...
* adding LSP configuration via workspace/didChangeConfiguration
2018-10-22 13:24:46 +01:00
paihu
eae3f70e75
fix CdString for MS Windows
2018-10-22 21:17:57 +09:00
Linda_pp
f57ad883f2
Add support for cargo clippy ( #2001 )
...
* Add support for `cargo clippy`
* Add tests for cargo-clippy support
* Add an example to doc for how to configure ale_rust_cargo_use_clippy
2018-10-22 09:21:48 +01:00
Matt Brown
7fa0d3dcc4
Add tests for updated Psalm plugin
2018-10-19 16:31:12 -04:00
Matthew Brown
0ed07a9ef5
Update Psalm plugin to use LSP mode
2018-10-19 15:51:16 -04:00
w0rp
3bda132988
Merge pull request #1991 from alskdj21/ruby_solargraph_init_options
...
Expose ruby-solargraph's initialization options
2018-10-18 14:32:23 +01:00
ix5
b8359c1114
Allow custom executable for ansible linters ( #1977 )
...
* Allow custom executable for ansible linters
* Add ansible-lint tests
* ansible-lint: simplify linter command
* Rename linter "ansible" to "ansible_lint"
* Add ansible-lint options to documentation
* Add alias ansible-lint for ansible_lint
2018-10-18 09:19:27 +01:00
w0rp
3b38a83ae9
Tell people to turn the completion option on before loading ALE
2018-10-18 09:11:06 +01:00
Auri
be21aa5cda
New linter: dls ( #1992 )
...
* New linter: dls
2018-10-17 16:11:41 +01:00
w0rp
d999eb1f35
#1970 Explain how to configure mouse hovering better
2018-10-15 18:01:49 +01:00
Kim Joseph S. Sadomia
cc1aece1e0
Rename solargraph initialization option variable
2018-10-12 18:16:28 +08:00
Aliou Diallo
b7ec11c93d
Allow custom filters for the jq fixer ( #1980 )
...
* Allow the jq filters to receive custom filters.
* Update documentation.
2018-10-12 09:15:32 +01:00
Kim Joseph S. Sadomia
12409fa73d
Expose ruby-solargraph initialization options
2018-10-12 13:03:06 +08:00
w0rp
e5b5ce9f51
Merge pull request #1956 from jparise/elixir-ls
...
Add elixir-ls language server support
2018-10-11 21:43:58 +01:00
Jon Parise
7eae781291
Add elixir-ls language server support
...
ElixirLS (https://github.com/JakeBecker/elixir-ls ) is an LSP server for
Elixir. It's distributed as a release package that can be downloaded
from https://github.com/JakeBecker/elixir-ls/releases or built locally.
The easiest way to start it is via Unix- and Win32-specific helper
scripts, so that's the basis of this command integration. Alternatively,
we could implement the contents of those platform-specific scripts in
the linter's command callback in a language-neutral way, but there isn't
any benefit to doing that aside from eliminating the platform check, and
that could prove to be too tight of a coupling going forward.
2018-10-11 08:31:12 -07:00
Linda_pp
87986520d6
Fix E523 on asynchronous truncated echo ( #1987 )
2018-10-11 15:01:27 +01:00
Filip Vavera
3dd2d9dedd
Fix Credo message types ( #1963 )
...
* Add more Credo message types
* Add tests
2018-10-11 10:00:10 +01:00
Matteo Centenaro
bf1ac8e822
FIX: use mix from the project root directory ( #1954 )
...
* FIX: use mix from the project root directory
* Move find root project function to autoloaded handlers
* add tests for #ale#handlers#elixr#FindMixProjectRoot
2018-10-10 17:19:47 +01:00
w0rp
ea49cc759f
Link to my site, so people can find it easily
2018-10-05 12:08:56 +01:00
Travis Gibson
adad9a21ab
Fix crashes with incomplete errors
2018-10-03 14:13:34 -07:00
w0rp
e984497ec9
Merge pull request #1964 from dlresende/master
...
Fix PMD not working with classes without package
2018-10-03 17:09:21 +01:00
Diego Lemos
607750eb02
Fix PMD not working with classes without package
...
PMD is currently not working properly for Java classes that use [unnamed
packages](https://docs.oracle.com/javase/specs/jls/se11/html/jls-7.html#jls-7.4.2 ).
Consider the following Java class that does not contain a `package`
declaration:
```java
public class App {
String getGreeting() {
return "Hello world.";
}
static void main(String... args) {
System.out.println(new App().getGreeting());
}
}
```
Running PMD in the command line agaist the Java class above produces an
output with empty string `""` in the `"Package"` column:
```sh
$ pmd -R category/java/bestpractices.xml -f csv -d './src/main/java/App.java'
Oct 02, 2018 9:10:39 PM net.sourceforge.pmd.PMD processFiles
WARNING: This analysis could be faster, please consider using Incremental Analysis: https://pmd.github.io/pmd-6.7.0/pmd_userdocs_incremental_analysis.html
"Problem","Package","File","Priority","Line","Description","Rule set","Rule"
"1","","/Users/diego/Projects/github.com/dlresende/kata-fizz-buzz/src/main/java/App.java","2","7","System.out.println is used","Best Practices","SystemPrintln"
```
But the pmd.vim handler's current pattern refuses everything coming
from a Java class that does not have a package name (2nd column):
```vim
let l:pattern = '"\(\d\+\)",".\+","\(.\+\)","\(\d\+\)","\(\d\+\)","\(.\+\)","\(.\+\)","\(.\+\)"$'
```
The solution I am proposing is to also accept empty strings as package names.
2018-10-02 21:34:11 +01:00
w0rp
ab3646862c
Update the bug reporting template
2018-10-02 11:28:13 +01:00
w0rp
5960a9ae4b
Encourage people to write tests even more
2018-10-02 11:23:23 +01:00
w0rp
04ed87c882
Merge pull request #1955 from eborden/eborden/mising_hlint_executable_var
...
Remove test vars that cover bug
2018-09-29 11:25:37 +01:00
Travis Gibson
2b2e766dc6
Add Perl6 support via 'perl6 -c'
2018-09-28 16:18:40 -07:00
Evan Rutledge Borden
eae8ffafb8
Set global vars in hlint linter file.
2018-09-28 13:54:21 -04:00
Evan Rutledge Borden
2a56475cf7
Remove test vars that cover bug
...
These test vars were covering up a bug in the hlint linter
implementation. Without these vars we can see the behavior that is
exhibited in `vim` proper.
2018-09-28 11:37:40 -04:00
Evan Borden
a8915d885b
Add better support for Haskell stack compiler tools ( #1851 )
...
* Add better support for Haskell stack compiler tools
This commit adds support for `stack` as the executable of a tool. This
follows a pattern that has been implemented for `bundler`'s tool chain.
* Move hlint command to linter file
* Add vader test for stack exec handling
* Update ghc-mod to support stack execution
`ghc-mod` was previously broken into 2 linters.
1. ghc_mod
2. stack_ghc_mod
This additional linter is not necessary with proper support for
executable variables and `stack exec` handling.
* Support stack exec in hfmt
* Support stack in hdevtools
2018-09-28 09:05:01 +01:00
w0rp
a26b3319a1
Merge pull request #1950 from yejingchen/ccls
...
Add ccls support for C/C++/ObjC
2018-09-28 09:02:00 +01:00
Ye Jingchen
8891b7c349
Move ccls functions to autoload/ale/handler
...
Tests are kept as-is.
2018-09-28 03:26:57 +08:00
w0rp
fd0467f992
Merge pull request #1917 from jpsouzasilva/fix-stylelint-scss
...
Support options when using Stylelint with SCSS
2018-09-27 16:54:17 +01:00
Richard Marmorstein
947360f714
Add psalm linter for PHP ( #1893 )
2018-09-27 16:48:47 +01:00
Ye Jingchen
17676f6a6d
Add missing files for ccls test
2018-09-26 23:17:19 +08:00
Ye Jingchen
626e47f5c9
Add ccls tests
2018-09-26 22:50:43 +08:00
w0rp
58ceb21cbc
Merge pull request #1908 from KtorZ/master
...
Allow extra options to be passed to haskell:hlint
2018-09-26 15:38:15 +01:00
Ye Jingchen
56658fd3ad
Add ccls support for C/C++/ObjC
2018-09-26 20:09:37 +08:00
w0rp
143c3cd09f
#1941 Explain how to alleviate a timeoutlen Vim bug by changing settings
2018-09-25 10:17:45 +01:00
Bert JW Regeer
8e7e810db6
Bugfix: python add blank lines ( #1944 )
...
* Don't add newlines when not a control statement for Python
* Add test for accidental newline fix
* Add docstring detection to avoid adding unnecessarily newlines
* Add tests for docstring detection
2018-09-25 10:02:01 +01:00
w0rp
aa5c82b171
Merge pull request #1932 from rhysd/shfmt-default-indent
...
shfmt: Use Vim's indent config as default indent width
2018-09-20 09:30:59 +01:00
w0rp
560749cf9e
Merge pull request #1939 from elebow/fix-typo-solargraph-docs
...
Fix typo in Solargraph documentation
2018-09-20 09:28:48 +01:00
w0rp
1900b76005
Fix #1938 - Set a default value for an undefined variable
2018-09-20 08:28:51 +01:00
Eddie Lebow
a59f5776fa
Fix typo in Solargraph documentation
2018-09-19 21:59:15 -04:00
w0rp
169a6e26b2
Merge pull request #1719 from elebow/auto-pipenv-option-for-python-linters
...
Add python_[linter]_auto_pipenv options for python linters (fixes #1656 )
2018-09-19 19:46:13 +01:00
Martin Tournoij
e82bcdb8a6
Add fixer for Go modules ( #1873 )
...
* Add fixer for Go modules
2018-09-19 19:33:23 +01:00
w0rp
a6c6e24d61
#1872 Remove extra carriage returns when fixing files on Windows
2018-09-19 19:28:57 +01:00
w0rp
9d50a06d48
Merge pull request #1937 from danielwe/master
...
Support both old (<0.7) and new Julia versions
2018-09-19 15:40:10 +01:00
Daniel Wennberg
d50e603177
Support both old (<0.7) and new Julia versions
...
Closes #1931
2018-09-19 07:34:11 -07:00
w0rp
b278927102
Merge pull request #1924 from fenuks/prospector-url-fix
...
Update prospector tool URL
2018-09-19 13:24:40 +01:00
w0rp
6bbbb9456c
Merge pull request #1926 from gnustomp/master
...
c#ParseCFlags: don't index empty list
2018-09-19 13:22:43 +01:00
w0rp
e5b920e387
Merge pull request #1934 from meunierd/solargraph-stdio
...
Support Solargraph stdio
2018-09-19 13:12:41 +01:00
w0rp
993f02ad80
Merge pull request #1928 from felipesere/master
...
To avoid blocking build tools, suspend ALE when suspending vim
2018-09-18 17:46:45 +01:00
w0rp
213a901ccd
Stop tsserver from causing errors to be rendered redundantly
2018-09-18 17:43:17 +01:00
Devon Meunier
4025030d86
Solargraph stdio
2018-09-18 11:20:29 -04:00
rhysd
532686102e
shfmt: Use Vim's indent config as default indent width
2018-09-18 17:51:00 +09:00
KtorZ
bd32b7c856
Add command_callback tests to cover hlint config variables
2018-09-18 08:25:49 +02:00
KtorZ
d84fcf6c3c
Define custom vim global variables to pass options to hlint
2018-09-18 08:25:41 +02:00
James Ye
3c067941f1
add test for arguments with '--'
2018-09-18 10:59:26 +10:00
Felipe Sere
f09e6d638f
Test that we CleanupEveryBuffer when vim supports it
2018-09-17 21:26:25 +01:00
w0rp
ddb3e6d57a
Handle failing to connect to eslint_d
2018-09-17 17:32:57 +01:00
Felipe Sere
cbf0568061
Join the ALECleanupGroup and ensure we don't run cleanup if ale.vim isn't loaded
2018-09-17 15:50:04 +01:00
w0rp
a4a4bba884
Merge pull request #1927 from jparise/thrift-includes-default
...
thrift: default thrift_thrift_includes to ['.']
2018-09-17 11:21:30 +01:00
w0rp
f9e99d81a4
#1794 - Handle LSP documentation content as a Dictionary
2018-09-17 11:16:46 +01:00
w0rp
1a13963f0d
Merge pull request #1925 from elebow/fix-markdown-error-in-readme-solargraph
...
Fix markdown error in README solargraph entry
2018-09-17 09:48:02 +01:00
w0rp
0b163ec656
Fix the Julia languagserver linter for Julia 0.7
2018-09-17 09:16:41 +01:00
Jon Parise
b7fcec4d17
thrift: default thrift_thrift_includes to ['.']
...
In a lint context, it's useful to assume that included files sit next to
the current file by default. Users can still further customize this
configuration variable to add more include paths.
2018-09-16 08:21:18 -07:00
Felipe Sere
fba4cfeae9
To avoid blocking build tools, suspend ALE when suspending vim
2018-09-16 15:57:13 +01:00
James Ye
87743faf2a
c#ParseCFlags: don't index empty list
2018-09-16 22:57:43 +10:00
Eddie Lebow
24e26b419a
Fix markdown error in README solargraph entry
2018-09-15 22:14:01 -04:00
Eddie Lebow
dbe9352935
Add python_auto_pipenv config var for all python linters.
...
This allows a user to set one variable instead of eight.
2018-09-15 22:10:46 -04:00
Eddie Lebow
56e67c5811
Add python_[linter]_auto_pipenv options for python linters ( fixes #1656 )
...
When set to true, and the buffer is currently inside a pipenv,
GetExecutable will return "pipenv", which will trigger the existing
functionality to append the correct pipenv arguments to run each linter.
Defaults to false.
I was going to implement ale#python#PipenvPresent by invoking
`pipenv --venv` or `pipenv --where`, but it seemed to be abominably
slow, even to the point where the test suite wasn't even finishing
("Tried to run tests 3 times"). The diff is:
diff --git a/autoload/ale/python.vim b/autoload/ale/python.vim
index 7baae079..8c100d41 100644
--- a/autoload/ale/python.vim
+++ b/autoload/ale/python.vim
@@ -106,5 +106,9 @@ endfunction
" Detects whether a pipenv environment is present.
function! ale#python#PipenvPresent(buffer) abort
- return findfile('Pipfile.lock', expand('#' . a:buffer . ':p:h') . ';') isnot# ''
+ let l:cd_string = ale#path#BufferCdString(a:buffer)
+ let l:output = systemlist(l:cd_string . 'pipenv --where')[0]
+ " `pipenv --where` returns the path to the dir containing the Pipfile
+ " if in a pipenv, or some error text otherwise.
+ return strpart(l:output, 0, 18) !=# "No Pipfile present"
endfunction
Using vim's `findfile` is much faster, behaves correctly in the majority
of situations, and also works reliably when the `pipenv` command doesn't
exist.
2018-09-15 22:10:46 -04:00
fenuks
21ac9bdcaf
Update prospector tool url in README
2018-09-15 16:51:11 +02:00
w0rp
f1f2a22228
Merge pull request #1921 from rrosenblum/ruby_linters
...
Fix bug with RuboCop linter when options are not set
2018-09-14 18:46:29 +01:00
jpsouzasilva
9bbea8b830
Add tests for assuring the SCSS stylelint options work
2018-09-14 13:32:42 -03:00
Ryan Rosenblum
a55b8d10b0
Fix bug with RuboCop linter when options are not set
2018-09-14 12:30:28 -04:00
w0rp
0868cb769d
Merge pull request #1906 from ngavalas/autocomplete-trigger-prefix
...
fix non-. prefix triggers overfiltering results
2018-09-14 13:32:25 +01:00
w0rp
7f1c411b5e
Merge pull request #1850 from rrosenblum/ruby_linters
...
Update all Ruby linters to work consistently with bundler
2018-09-14 13:27:07 +01:00
w0rp
b01470cbbc
Test for bundle paths with spaces again
2018-09-14 13:26:29 +01:00
w0rp
5c86ffd321
Return only the unescaped executables from executable callbacks
2018-09-14 13:24:59 +01:00
w0rp
43d7e8fde9
#1889 Add support for automatically previewing messages based on the cursor position
2018-09-14 12:42:26 +01:00
w0rp
f380d8508e
Merge pull request #1919 from saschagrunert/patch-1
...
Change PCRE escape to simple escape
2018-09-14 11:41:47 +01:00
Sascha Grunert
c48106f484
Adapt tests
2018-09-14 10:47:33 +02:00
Sascha Grunert
96e25d471c
Change PCRE escape to simple escape
2018-09-14 10:41:35 +02:00
jpsouzasilva
5901e1a879
Support options when using Stylelint with SCSS
...
Complement missing documentation
2018-09-13 08:51:33 -03:00
Ryan Rosenblum
9e09b7ca35
Update all Ruby linters to work consistently with bundler
2018-09-12 16:53:28 -04:00
Nick Gavalas
b4513fc4b0
fix non-. prefix triggers overfiltering results
2018-09-12 15:47:57 -04:00
w0rp
78af99c256
Merge pull request #1905 from ngavalas/tsserver-classname-fix
...
Fix tsserver `className` responses
2018-09-11 16:16:18 +01:00
Nick Gavalas
44070d8a45
fix tsserver className parsing
2018-09-11 10:56:58 -04:00
w0rp
99e9417ef9
Add support for Julia Language Server ( #1894 )
2018-09-10 17:24:04 +01:00
w0rp
bfba216e61
Merge pull request #1900 from McSwaggens/master
...
Fixed NASM linter from outputting junk file
2018-09-10 09:24:35 +01:00
w0rp
f00435e356
Merge pull request #1899 from blueyed/typo
...
doc: fix typo in ale-rust.txt
2018-09-10 09:21:01 +01:00
Daniel Jones
150015d0dc
Fixed NASM tests
2018-09-10 09:23:47 +10:00
Daniel Jones
8bbf1425bf
Fixed NASM linter from outputting junk file
2018-09-10 08:17:44 +10:00
Daniel Hahler
f516cac47c
doc: fix typo in ale-rust.txt
...
[ci skip]
2018-09-09 23:34:27 +02:00
Bartolomeo Stellato
169e4b67d3
Added julia to the list in ale-support docs
2018-09-09 14:47:55 -04:00
Bartolomeo Stellato
6e7b7b23e5
Updated readme
2018-09-09 14:18:15 -04:00
Bartolomeo Stellato
97ed25a8bf
Escape julia command + reorder table in README
2018-09-09 10:09:05 -04:00
w0rp
0948dcc435
Merge pull request #1897 from LEI/add-sqlfmt-fixer
...
Add support for sqlfmt
2018-09-09 11:55:42 +01:00
w0rp
395aba19c3
Merge pull request #1885 from dsifford/dsifford-fixer-uncrustify
...
add uncrustify fixer for several languages
2018-09-09 11:30:30 +01:00
Bartolomeo Stellato
b3adf241c3
Fix other warnings
2018-09-08 16:05:34 -04:00
Bartolomeo Stellato
91bb948b90
Try to fix CI
2018-09-08 14:11:11 -04:00
LEI
a97ef49c51
Add support for sqlfmt
2018-09-08 01:34:10 +02:00
Derek P Sifford
6e4dccc0e0
really fix lint errors
2018-09-07 15:28:51 -04:00
w0rp
0ae4ea23c8
#1888 Support names with minuses in Clojure and Lisp
2018-09-07 19:27:42 +01:00
Bartolomeo Stellato
68ac4d1095
Fix julia escaping + minor edits
2018-09-07 14:13:44 -04:00
Bartolomeo Stellato
f64f0bb48c
Added tests
2018-09-07 13:16:22 -04:00
Bartolomeo Stellato
df72c5f1c1
Added various files to integrate julia. Still not working.
2018-09-07 11:11:29 -04:00
Derek P Sifford
9ba2d209a8
fix lint test failures
2018-09-06 21:59:03 -04:00
w0rp
e0fe97e0a8
Merge pull request #1883 from hsanson/add-solargraph-yml-to-root-path-search
...
Add solargraph.yml file as root path search file.
2018-09-06 20:34:34 +01:00
Sascha Grunert
7b62a15739
Add golangci-lint ( #1890 )
2018-09-06 20:31:12 +01:00
w0rp
580bd36773
Fix #1800 - Enable non-blocking writes where available
2018-09-06 20:04:35 +01:00
w0rp
7086769289
#1891 Fix the go-langserver tests
2018-09-06 17:05:05 +01:00
w0rp
f1d5bcbf98
Merge pull request #1870 from hsanson/1822-add-go-langserver-support
...
Fix #1822 - support go-langserver lsp.
2018-09-06 14:50:00 +01:00
w0rp
f8beaa9e3e
Fix #1866 - Handle empty output from Perl
2018-09-06 09:23:36 +01:00
Horacio Sanson
a9333c2866
Fix #1822 - support go-langserver lsp.
2018-09-06 13:46:59 +09:00
Derek P Sifford
0ed4a5bbcc
add uncrustify fixer for several languages
2018-09-04 20:39:32 -04:00
Horacio Sanson
044c762c85
Add solargraph.yml file as root path search file.
...
Solargraph allows to set configuration options by creating a
.solargraph.yml file at the root of the project using it. Therfore this
file is a good canditate for finding ruby projects root paths.
Initial discussion:
https://github.com/w0rp/ale/issues/1874#issuecomment-418316168
2018-09-05 07:12:04 +09:00
w0rp
d476578a40
Improve ALE project style checking
...
* The project style linter now runs while you type.
* Now the scripts for checking the project require blank lines.
* Many style issues have been found and fixed.
2018-09-04 16:51:18 +01:00
w0rp
8f2e1c393f
Merge pull request #1871 from Ophirr33/master
...
added sbtserver linter
2018-09-04 11:22:57 +01:00
w0rp
43b04d4e5b
Fix the dart language server command and cover it with tests
2018-09-04 11:15:59 +01:00
w0rp
87f125ddcf
Merge pull request #1882 from jacobmischka/master
...
Replace removed function in dart#language_server
2018-09-04 11:12:44 +01:00
Jacob Mischka
24486fa628
Replace removed function
...
Replaces removed `ale_linters#dart#language_server#GetExecutable`.
Fixes #1881
2018-09-03 19:23:03 -05:00
w0rp
fddbfdef12
#1875 Do not lint and so on when an operator is pending
2018-09-03 13:59:56 +01:00
w0rp
a746ea2bfc
#1875 - Do not echo cursor messages when keys are pending
2018-09-03 11:41:54 +01:00
w0rp
c1f0956d9b
Merge pull request #1869 from Steap/feature/gitlint-ignore-whitespace
...
gitcommit: fully implement warn_about_trailing_whitespace
2018-09-03 11:27:19 +01:00
Ty Coghlan
3d016f1697
Changed sbtserver to just work off of the address variable
2018-09-01 21:03:29 -04:00
Ty Coghlan
8e3bf10592
added sbtserver linter
2018-08-30 22:10:38 -04:00
Bartolomeo Stellato
8bf5d144ed
Started adding julia languageserver
2018-08-30 15:40:04 -04:00
Cyril Roelandt
244c5a8ce5
gitcommit: fully implement warn_about_trailing_whitespace
...
Fixes #1761
2018-08-30 03:42:44 +02:00
w0rp
ea01cc708b
Merge pull request #1865 from TheLocehiliosan/puppet-options
...
Support options for puppet parser validate
2018-08-29 14:22:01 +01:00
Tim Byrne
ed26ddc09c
Always use --color=false when validating puppet
...
Colorized output is difficult for ALE to parse.
2018-08-29 07:15:03 -05:00
w0rp
ee3142b601
Merge pull request #1866 from Steap/feature/xmllint-fixer
...
Add support for xmllint as a fixer.
2018-08-28 23:36:00 +01:00
w0rp
79f02fce69
Merge pull request #1856 from sbl/ocamlformat
...
add ocamlformat support
2018-08-28 23:28:30 +01:00
w0rp
d4ce201cc2
Merge pull request #1849 from hsanson/1848-add-support-for-java-lsp
...
Add vscode-java-language-server linter
2018-08-28 22:53:11 +01:00
Cyril Roelandt
cc5ad6491f
Add support for xmllint as a fixer.
2018-08-28 23:43:52 +02:00
w0rp
09e43ab16b
Merge pull request #1847 from hsanson/1846-support-solargraph-lsp
...
1846 support solargraph lsp
2018-08-28 21:52:18 +01:00
w0rp
339930ad68
Fix #1859 - Make the connection ID available on the connection object
2018-08-28 10:18:37 +01:00
w0rp
b6112aedc3
Merge pull request #1861 from dimbleby/goto-definition-column
...
Fix out-by-one error in column on goto-definition
2018-08-28 10:11:44 +01:00
Tim Byrne
6212d9a515
Update TOC for ale-puppet-puppet
2018-08-27 13:12:56 -05:00
Tim Byrne
192f211a0e
Support options for puppet parser validate
...
It can be necessary to pass options to the puppet parser validation. The
most glaring example of this is when using Puppet 3, with the
`parser = future` option enabled. This update allows adding
`--parser=future` to the options passed to Puppet.
2018-08-27 12:59:38 -05:00
David Hotham
aef11cc0d2
Fix out-by-one error in column on goto-definition
...
Fixes #1860
2018-08-27 13:53:40 +01:00
Horacio Sanson
1980245b94
Add solargraph LSP linter.
2018-08-27 10:58:17 +09:00
Horacio Sanson
261c29c3d0
Add vader test and fix command callback.
2018-08-26 22:11:36 +09:00
Horacio Sanson
228aee71a5
Add java lsp linter to documentation
2018-08-26 22:11:04 +09:00
sbl
b7169c33e7
fix tests
2018-08-26 13:59:55 +02:00
sbl
aa015ec4db
add ocamlformat support
2018-08-26 13:47:56 +02:00
w0rp
3c85c7ef65
Sort the HTML documentation sections
2018-08-24 13:24:42 +01:00
w0rp
adc038f327
Merge pull request #1839 from filipekiss/feature/stylelint-inline-css
...
Add Stylelint as HTML Linter
2018-08-24 13:20:37 +01:00
w0rp
c4eca7c417
Use one LSP connection per project
2018-08-24 13:16:58 +01:00
Filipe Kiss
c253fb72e3
📚 Add html stylelint to TOC
2018-08-24 08:43:19 -03:00
fenuks
9d7c48038c
Add clazy as cpp linter
2018-08-24 10:52:33 +01:00
w0rp
08d141edfb
Fix #1844 - Make the kotlin languageserver linter work again
2018-08-24 10:41:33 +01:00
w0rp
1f26fc4013
Merge pull request #1841 from dabbeg/fix-importjs-fixer
...
importjs fixer not reading correct executable variable name
2018-08-24 10:31:18 +01:00
Davíð Guðni
f526fc68d1
importjs fixer not reading correct executable variable name
2018-08-24 09:04:17 +00:00
Horacio Sanson
3afff5a24c
Add vscode-java-language-server linter
2018-08-24 16:28:15 +09:00
Evan Borden
707b539969
Add hlint refactoring as a fixer ( #1836 )
2018-08-23 23:23:54 +01:00
Evan Borden
2600524274
Add stylish-haskell as a fixer ( #1837 )
...
* Add stylish-haskell as a fixer
`stylish-haskell` is a common formatting tool for the haskell toolchain.
It is not as advanced as `brittany` or `hindent`, but it is commonly
used for formatting of imports and data declarations. This adds it as a
fixer in ALE.
2018-08-23 23:14:59 +01:00
w0rp
81d0eccfab
Merge pull request #1835 from barreyra/master
...
Enabling clangd for cpp, objc and objcpp
2018-08-23 22:54:11 +01:00
w0rp
7c10249c52
Merge pull request #1820 from SuRaMoN/master
...
Added phpcs options support as described in #257
2018-08-23 22:42:45 +01:00
w0rp
c2f7b379ee
Merge pull request #1842 from kjagiello/patch-1
...
Fix case typo in the documentation
2018-08-23 22:34:12 +01:00
w0rp
774c02552f
Merge pull request #1840 from Carpetsmoker/gopath
...
Remove "go env" from gobuild linter
2018-08-23 22:33:01 +01:00
Krzysztof Jagiełło
aba4160553
Fix case typo in the documentation
2018-08-23 20:24:47 +02:00
Bruno R. Barreyra
795122a042
Enabling clangd for cpp, objc and objcpp
2018-08-23 05:58:06 +02:00
Martin Tournoij
18ec66bd21
Remove "go env" from gobuild linter
...
I see no reason to do this? It is just setting the environment to what
it already is?
It was originally added in #297 , but that entire PR is not a great idea
in the first place; that PR (together with #270 ) tried to make the Go do
non-standard and non-supported stuff like compiling packages outside of
GOPATH.
That's not something that works well (I tried), so was eventually
removed in #465 , but these "go env" calls remained, for no reason in
particular, as far as I can think of.
This will improve on #1834 ; you will now no longer get a confusing error
(but still won't get a meaningful error; need to think how to do that).
2018-08-23 00:42:19 +01:00
Filipe Kiss
935a132d8f
📚 Add docs for html stylelint
2018-08-22 19:00:42 -03:00
Filipe Kiss
b78ee18898
☔ Add html stylelint test
2018-08-22 19:00:42 -03:00
Filipe Kiss
4cd20b821f
Add html stylelint linter
2018-08-22 19:00:41 -03:00
w0rp
a366d325a7
Merge pull request #1815 from fredemmott/lsp-related-information
...
If present, use new-ish LSP 'relatedInformation' field for :ALEDetail
2018-08-20 16:59:21 +01:00
matthias
f82ab76833
Added and fixed tests
2018-08-18 20:59:35 +02:00
w0rp
61a0716837
Use &l:equalprg so local options do not override global ones
2018-08-17 10:10:49 +01:00
matthias
02fdfcda58
Added phpcs options support as described in #257
2018-08-16 16:44:41 +02:00
w0rp
ad8b260519
Fix #1816 - Fix a type error in the initialize message handler
2018-08-16 14:19:12 +01:00
w0rp
faaa11567a
Merge pull request #1818 from tyru/add-go-govet-options
...
Add ale_go_govet_options variable
2018-08-16 14:10:21 +01:00
tyru
88ffdb4736
feat: add ale_go_govet_options variable
2018-08-16 11:36:46 +09:00
Fred Emmott
4923d48d53
Correct related information line numbers from 0-based to 1-based
2018-08-15 14:46:57 -07:00
Fred Emmott
764da48c57
Test file was the wrong way around
2018-08-15 14:40:51 -07:00
Fred Emmott
c467db3ed9
Better formatting
2018-08-15 14:31:30 -07:00
Fred Emmott
484a70f0c0
Use new-ish LSP 'relatedInformation' field for :ALEDetail
2018-08-15 14:19:32 -07:00
w0rp
9cdd8b67b2
Stop creating closure function in global scope by using partials instead
2018-08-15 00:20:47 +01:00
w0rp
5323f000aa
Explain * for fixers in the README better
2018-08-13 11:38:43 +01:00
w0rp
04b25c8ee2
Merge pull request #1809 from nrhodes91/readme-global-fixers
...
Update README with the `*` ft option for the fixers object
2018-08-13 11:33:56 +01:00
w0rp
4179177830
Try again
2018-08-13 11:31:54 +01:00
w0rp
a034364994
#1808 Try to explain the color scheme for the example GIF
2018-08-13 11:31:32 +01:00
Nick Rhodes
cc114e2d0a
Include info about * being a fallback
...
The `*` filetype is just fallback, and will be overridden by specific
filetype matches.
2018-08-12 10:10:39 +01:00
w0rp
a88a6d5285
Merge pull request #1806 from jimenezrick/fix-rustc-linter
...
Fix #1684 : Use the correct flag name in rustc linter
2018-08-12 09:41:36 +01:00
Nick Rhodes
c898d5d130
Update README with the * ft option for the fixers object
...
It wasn't immediately obvious that the `g:ale_fixers` cannot be a list,
and would allow the use of `*` to match all filetypes. I was hoping to
add a bit more detail to the README to make this clearer.
2018-08-12 08:03:53 +01:00
Ricardo Catalinas Jiménez
db003a4361
Fix #1684 : Use the correct flag name in rustc linter
...
The rust compiler renamed the option '-Z no-trans' to '-Z no-codegen'.
https://github.com/rust-lang/rust-enhanced/issues/281
2018-08-10 21:50:52 +01:00
w0rp
6167f75628
Merge pull request #1802 from flybayer/fix-prettier-d
...
Don't use error output from prettier_d for fixing files
2018-08-10 18:28:38 +01:00
w0rp
a56e801567
Merge pull request #1793 from kodemeister/cquery
...
Use .cquery file to detect the project root
2018-08-10 18:23:55 +01:00
w0rp
e9086dd55c
Revert " #1459 Always run ESLint in the directory of the file being checked"
...
This reverts commit 634bf73f52 .
2018-08-10 11:49:17 +01:00
Brandon Bayer
63c66dc5d2
fix: Don't use error output from prettier_d for fixing files
2018-08-09 12:56:53 -04:00
w0rp
634bf73f52
#1459 Always run ESLint in the directory of the file being checked
2018-08-09 08:51:27 +01:00
kodemeister
0702e4699e
Add blank lines to conform the coding standards
2018-08-09 09:06:30 +06:00
kodemeister
cc84c19451
Add C/C++ tests for cquery LSP linter
2018-08-09 09:02:16 +06:00
w0rp
fc94fd4deb
Use lambdas for LSP message callbacks, which are easier to manage
2018-08-08 20:08:51 +01:00
Peter Benjamin
8faa11752c
Add prettier as a YAML option ( #1789 )
...
* Add prettier as a yaml fixer
* Sort yaml fixers alphabetically
* Add prettier to doc/ale.txt
* Add ale-yaml-prettier
* Add ale-yaml-prettier to the TOC
2018-08-08 18:48:28 +01:00
w0rp
7179f92e44
#925 Tell people not to use the tslint linter
2018-08-08 11:17:32 +01:00
w0rp
1a4456cf2a
Merge pull request #1797 from bradlarsen/master
...
Additionally adjust the jumplist with line numbers when opening a new file
2018-08-07 21:57:12 +01:00
Bradford Larsen
8a9b28daf9
Update tests in response to changes in #1797 .
2018-08-07 16:51:23 -04:00
Bradford Larsen
6f2d868baf
Update tests in response to changes in #1797 .
2018-08-07 16:41:12 -04:00
Bradford Larsen
023ade872e
Adjust the jumplist with line numbers too when opening a new file
...
This further addresses Issue #1758 .
2018-08-07 16:10:36 -04:00
kodemeister
212e3b0b2f
Use .cquery file to detect the project root
2018-08-07 01:39:04 +06:00
w0rp
5f5540c574
Merge pull request #1787 from polyzen/doc-lsp-completions
...
doc: LSP can provide completions
2018-08-06 10:18:05 +01:00
Daniel M. Capella
5ed99734bd
doc: LSP can provide completions
2018-08-05 01:42:16 -04:00
w0rp
03973c0d09
Explicitly disable ALE for NeoVim versions below 0.2.0
2018-08-04 07:52:34 +01:00
w0rp
fa30d90221
Merge pull request #1783 from dimbleby/yang-lsp
...
Add support for yang-lsp
2018-08-03 21:52:48 +01:00
David Hotham
d0e3302253
Add support for yang-lsp
2018-08-03 21:13:48 +01:00
w0rp
209cd54783
Fix #1781 - Fix me breaking the tsserver linter
2018-08-03 17:22:09 +01:00
w0rp
fefb8efff8
Merge pull request #1778 from fredemmott/hhast-perf
...
Tell HHAST to only look at open files
2018-08-03 09:12:12 +01:00
w0rp
41178425ab
Fix the Windows tests
2018-08-03 01:00:39 +01:00
w0rp
73d8c3b80a
Only run the custom ALE linting script if it's in runtimepath
2018-08-03 00:56:49 +01:00
w0rp
65880fec78
Add a linter for checking ALE code itself
2018-08-03 00:42:15 +01:00
w0rp
217284360d
Simplify the code for most linters and tests with closures
2018-08-02 23:44:12 +01:00
Fred Emmott
e3c81911d6
Tell HHAST to only look at open files
...
Given ALE only cares about open files, this has no observable change,
except for significantly reduced resource usage.
2018-08-02 14:23:03 -07:00
w0rp
9ef266d050
Merge pull request #1770 from fredemmott/hack
...
Split Hack out from PHP, modernize
2018-08-02 21:58:57 +01:00
Fred Emmott
a728f074f7
Disable HHAST by default
...
it executes $PROJECT/vendor/bin/hhast, so that's not a good idea.
2018-08-02 13:50:56 -07:00
w0rp
94270402cb
Fall back on flags for other C/C++ files in the same directory
2018-08-02 21:48:56 +01:00
w0rp
ccbdfcd76f
Include the error in the detailed error message in the GCC handler
2018-08-02 21:45:16 +01:00
Fred Emmott
de6cd961a8
Suggested changes
2018-08-02 12:59:04 -07:00
Luxed
6b3086237a
Add Haskell IDE Engine (hie) support ( #1735 )
...
* Adding support for haskell-ide-engine
* Work with the current directory if no stack.yaml file is found
* Added Cabal file detection, updated documentation and added tests
* Updated help
2018-08-02 20:24:58 +01:00
Paul Reimer
cb8ad9fbd8
Javascript prettier filetype detect fix ( #1769 )
...
Support fixing YAML and HTML files with prettier for files without file extensions.
2018-08-02 20:20:19 +01:00
Fred Emmott
e6bd4373f9
coding style
2018-08-02 11:44:17 -07:00
w0rp
649934230b
Fix the failing tsserver test
2018-08-02 19:32:57 +01:00
Fred Emmott
5ff4e27e17
Update suggested filetypes for hackfmt
2018-08-02 11:28:57 -07:00
Fred Emmott
238201805d
Split Hack out from PHP, modernize
...
fixes #1738
- Replace previous `hh_client` usage with LSP client
- Add `HHAST` linter
- Split Hack from PHP: Hack is increasingly diverging from PHP:
- Hack tools do not understand PHP
- Most PHP tools do not handle Hack code well (including vim's syntax
highightling files)
- http://github.com/hhvm/vim-hack now sets filetype to `hack`
2018-08-02 11:28:56 -07:00
w0rp
5f024eda09
Merge pull request #1771 from fredemmott/lsp
...
Show LSP diagnostic codes for `%code%` in message formats
2018-08-02 19:22:45 +01:00
Fred Emmott
04362c746d
Add test for LSP code of -1
2018-08-02 09:30:22 -07:00
Fred Emmott
e722841fa3
Improved documentation for code loclist item field
2018-08-02 09:24:45 -07:00
Fred Emmott
2768bf15ba
Handle LSP codes for %code% in message formats
...
fixes #1767
2018-08-02 09:06:48 -07:00
w0rp
589c8dbd94
Merge pull request #1776 from tmc/master
...
python: add lookup path for flake8 config
2018-08-02 13:01:04 +01:00
Travis Cline
2ac9e454d6
python: add lookup path for flake8 config
2018-08-01 20:07:11 -07:00
w0rp
3aa5e0f9dc
Add a type check for the error data from LSP servers
2018-08-01 23:01:30 +01:00
w0rp
c1fee3f23a
Merge pull request #1774 from polyzen/rust-runtime-docs
...
doc/rust: rust.vim distributed w/ Vim>=8.0.0501
2018-08-01 21:02:41 +01:00
w0rp
9a389b564c
Merge pull request #1775 from polyzen/patch-1
...
contrib: Fix link to ale-development.txt
2018-08-01 21:02:06 +01:00
Daniel M. Capella
3e8ae65278
contrib: Fix link to ale-development.txt
2018-08-01 18:13:07 +00:00
Daniel M. Capella
ab5e44249d
doc/rust: rust.vim distributed w/ Vim>=8.0.0501
...
3c2881dc11
2018-08-01 12:54:47 -04:00
w0rp
399a0d3c98
#1700 - Mention how to work around the completeopt bug in the documentation
2018-07-31 20:34:37 +01:00
w0rp
16d0c52d24
Indicate that a C compiler failed due to problems in a header file
2018-07-30 20:09:43 +01:00
w0rp
1e6b1d9be2
Try to fix the C parsing test on Windows
2018-07-29 19:30:12 +01:00
w0rp
ac4bac8ea4
Add support for parsing compile_commands.json files for C compilers
2018-07-29 19:24:27 +01:00
w0rp
a7b8cb4fe3
Mention v:t_TYPE variables in the developer documentation
2018-07-27 09:18:09 +01:00
w0rp
daab1a08db
#1700 - Try using a 0ms timer showing the completion menu
2018-07-26 23:08:38 +01:00
w0rp
f8e61ff907
Merge pull request #1762 from actionless/vulture-doc
...
mark `vulture` as file linter
2018-07-26 14:51:16 +01:00
actionless
eb38c4b3f1
fix(linters: python): mark as lint_file
2018-07-26 14:45:28 +02:00
actionless
c2cfe2326d
doc: mark vulture as file linter
2018-07-26 14:41:13 +02:00
Yauhen Kirylau
8517e901ff
Add support for 'vulture' for Python
2018-07-26 08:41:27 +01:00
w0rp
79ffdde267
Merge pull request #1757 from jtalowell/master
...
Providing cquery support for C files
2018-07-25 21:07:19 +01:00
w0rp
c52fffcd47
Merge pull request #1760 from morrifeldman/patch-1
...
Fix joker finding .joker file in project root
2018-07-25 21:05:45 +01:00
morrifeldman
845e588b71
Fix joker finding .joker file
...
Add --working-dir option so joker can find a .joker file in the project root directory.
2018-07-25 15:53:02 -04:00
w0rp
0012c78b02
#1700 - Temporarily change completion options when the feedkeys() keybind is fired
2018-07-25 20:13:59 +01:00
w0rp
4ed35f7247
Fix #1758 - Set marks before going to definitions
2018-07-25 19:43:25 +01:00
w0rp
c4cb1c7050
Merge pull request #1539 from JonnyRa/jump-list-fix
...
set marks to add to jump list
2018-07-25 19:41:00 +01:00
jtalowell
c57b031876
Providing cquery support for C files
2018-07-25 14:23:13 +10:00
w0rp
06132954b1
Switch to v:t_ variables for type checks
2018-07-25 01:27:28 +01:00
w0rp
9f8c37e17c
Ignore a shellcheck warning for custom linting rules
2018-07-25 00:41:26 +01:00
sridhars
4446cf15be
Merge pull request #1 from w0rp/master
...
update
2018-07-24 16:42:26 -05:00
w0rp
3418574770
Update the developer documentation
2018-07-24 10:11:14 +01:00
w0rp
d368f090ae
#1754 Require snake_case names for linters in the codebase
2018-07-24 10:05:44 +01:00
w0rp
95be2bf1ff
Try Vim 8.0 and 8.1 in separate jobs
2018-07-23 22:37:53 +01:00
w0rp
d7d54d09da
Try 3 builds on Travis CI
2018-07-23 22:33:03 +01:00
w0rp
338c233710
Split Vim and Neovim tests into separate builds
2018-07-23 22:28:22 +01:00
w0rp
9ade656661
Just remove the .git directory test for now
2018-07-23 22:22:19 +01:00
w0rp
44397dd6db
Skip the one failing test on Windows
2018-07-23 22:21:13 +01:00
w0rp
2a861dfd40
Make the test C import path test fail less
2018-07-23 22:03:28 +01:00
w0rp
d9579dbbe9
Get tests to pass in Vim 8.1
2018-07-23 20:41:48 +01:00
w0rp
11339ca730
Merge pull request #1745 from sharils/master
...
Work around hot-reloading issue again
2018-07-23 15:04:55 +01:00
sharils
e3749c4a75
Fix autoload for phoenix
...
When dializer isn't a dependency, mix dialyzer recompiles the whole
project because it's not possible to know if this command dialyzer exist
or not until recompilation is done. Then the timestamps of the project
is messed up which results in broken hot-loading. In this case, mix help
dialyzer would return zero which prevents compilation of the whole
project since dialyzer isn't installed, it's help manual doesn't exist.
When dialyzer is a dependency, mix dialyzer would just run the command.
In this case, mix help dialyzer would return 1 which allows mix dialyzer
to run.
2018-07-23 21:43:59 +08:00
w0rp
f6d18a0b10
Skip tests for Vim 8.1 for now
2018-07-23 10:45:22 +01:00
w0rp
7bf3a749d0
#1751 Handle LSP completion results without the 'kind' attribute
2018-07-23 10:21:09 +01:00
w0rp
3e4db9ed5c
Make the completion events test fail less
2018-07-22 22:42:41 +01:00
w0rp
0e71e8b465
Update the Dockerfile to test with a newer version of Vimt too
2018-07-22 22:35:49 +01:00
w0rp
846bfb47b2
Remove the redundant fix_buffer_data vars and filename variables
2018-07-22 22:31:46 +01:00
w0rp
81a8c77d20
#1692 - Only send completion requests to the first server supporting them
2018-07-22 21:14:56 +01:00
w0rp
9c849da8c4
Merge pull request #1751 from melentye/master
...
Add Clangd language server support for C
2018-07-22 20:55:01 +01:00
Andrey Melentyev
9b4963847d
Add Clangd language server support for C
2018-07-22 21:22:38 +02:00
w0rp
6dc737cda1
Check LSP capabilities before using them
2018-07-22 19:04:55 +01:00
w0rp
899b61c5cc
Merge pull request #1750 from kylef/kylef/apib-tmp
...
Make drafter linter use stdin instead of writing to tmp file
2018-07-22 17:07:47 +01:00
Kyle Fuller
f937b98e27
Make drafter linter use stdin instead of writing to tmp file
...
Writing to a tmp file is unnecessary as drafter will use stdin if a path
is not provided.
2018-07-22 16:32:39 +01:00
w0rp
baa44bb3a7
Merge pull request #1742 from typetetris/master
...
Add cabal-ghc linter
2018-07-22 14:12:23 +01:00
w0rp
8980591937
Move README.md back
2018-07-22 12:16:56 +01:00
w0rp
8062d6207e
Revert "Update the tests to check README.md in the new location"
...
This reverts commit 6c10be8992 .
2018-07-22 12:16:42 +01:00
w0rp
6c10be8992
Update the tests to check README.md in the new location
2018-07-22 12:15:15 +01:00
w0rp
014c924630
Move GitHub files to the .github directory
2018-07-22 12:10:35 +01:00
w0rp
04fbea6e80
Merge pull request #1736 from unpairedbracket/master
...
Add support for Fortran language server by @hansec
2018-07-20 21:05:24 +01:00
w0rp
0d37aaac7a
Fix #1631 - Disable balloon support for terminals by default
2018-07-20 16:10:25 +01:00
Eric Wolf
ac6bc6d0ae
Add cabal-ghc linter
...
cabal-ghc calls ghc via cabal exec and so ghc has access to packages
in cabal sandboxes for example
2018-07-20 16:48:27 +02:00
Ben Spiers
ad986a8d82
Add the .fortls file necessary for tests to work (defying .gitignore)
2018-07-19 22:37:06 +01:00
Ben Spiers
e8bea510df
Add documentation and testing for fortls
2018-07-19 22:27:47 +01:00
w0rp
61a5880747
Capture server capabilities from LSP servers
2018-07-19 21:15:05 +01:00
Ben Spiers
324838adae
Add support for Fortran language server by @hansec
2018-07-19 18:47:37 +01:00
w0rp
27f1915745
Capitalize Language Server Protocol
2018-07-19 17:06:39 +01:00
w0rp
dfa38ff0dd
Make LSP support more prominent in the README
2018-07-19 17:00:29 +01:00
Sridhar Srinivasan
0da4c6e4ad
Add language server source in ALEDetail (2)
2018-07-18 22:12:56 -05:00
Sridhar Srinivasan
0c4606651f
Add language server source in ALEDetail
2018-07-18 21:44:05 -05:00
w0rp
5453e0e1a4
Fix #1708 - Don't modify linters or register fixers in the sandbox
2018-07-17 21:39:50 +01:00
w0rp
7952ebe77e
#1700 - Don't send <C-x><C-o> for completion in Insert mode
2018-07-17 19:39:45 +01:00
w0rp
a01fab2ee6
Fix #1619 - Rewrite lint on enter events so they behave better
2018-07-17 00:18:34 +01:00
w0rp
37df1f8ceb
#1700 - Stop handling completion results if you leave insert mode
2018-07-16 17:57:07 +01:00
w0rp
aa54c10bae
Try to make tests pass on Windows again
2018-07-16 14:18:50 +01:00
w0rp
2a081e81db
Try and make the temporary file test fail less on Windows
2018-07-16 14:03:08 +01:00
w0rp
f235c4b3b9
Make NeoVim 0.3 tests fail a bit less
2018-07-16 13:46:44 +01:00
w0rp
8b707b4cdc
Add a missing ToC entry for remark-lint
2018-07-16 13:34:30 +01:00
w0rp
b413e03b69
Merge pull request #1730 from watagashi/local-remark-lint-with-new-test
...
Support remark-lint installed locally with new test
2018-07-16 13:32:26 +01:00
Takashi WADA
dbf051e62b
remark-lint without saving to disk
2018-07-16 18:33:22 +09:00
Takashi WADA
f369aa65a2
Support remark-lint installed locally
2018-07-16 18:33:21 +09:00
w0rp
fcd62342d5
Only temporarily replace TMPDIR if it's defined to be an empty string
2018-07-16 08:45:55 +01:00
w0rp
6e1a5d4189
Stop the no loclist clearing test from failing in NeoVim 0.3
2018-07-15 23:19:11 +01:00
w0rp
b2e2bbd042
unlet $TMPDIR too, where we can
2018-07-15 23:04:50 +01:00
w0rp
d9e12cb047
Re-run history tests, which can fail randomly
2018-07-15 21:20:56 +01:00
w0rp
d3ed1e52ba
Fix #1687 - Parse highlights when verbose > 0
2018-07-15 21:01:00 +01:00
w0rp
72f002de94
Update the Python documentation
2018-07-15 19:26:45 +01:00
w0rp
8141ced0d0
Merge pull request #1724 from randrej/master
...
Pipenv virtualenv and project path detection
2018-07-15 19:22:48 +01:00
MTDL9
5df735555c
Add kotlin language server support ( #1725 )
...
* Add kotlin languageserver linter definition
* Added kotlin languageserver references in docs, fix missing !! on other linters
* Added Vader tests for root path detection in Kotlin Language Server
2018-07-15 18:54:18 +01:00
w0rp
a42999a639
Massively reduce the amount of code needed for linter tests
2018-07-15 18:28:28 +01:00
Andrej Radovic
976c048e6e
Detect Python proj. roots by Pipfile
...
"Pipfile" and "Pipfile.lock" files are also often located in Python module or
package directories and their presence is an okay heuristic for finding project
roots.
2018-07-14 13:26:50 +02:00
Andrej Radovic
870e75eb64
Added the default local virtualenv name for Pipenv.
...
Pipenv doesn't do local virtualenvs by default, it uses a special local
directory to store them all.
However, if you run Pipenv with the PIPENV_VENV_IN_PROJECT environment variable
set to 1, it creates the virtual environment in the root of the project, under
the name ".venv". This is why I've added this as a possible virtualenv dir
name.
2018-07-14 13:24:46 +02:00
w0rp
5155a35a80
Retry the smoke test on Windows too
2018-07-13 09:53:07 +01:00
w0rp
a782e06223
Handle linter callback functions being unknown or deleted
2018-07-13 09:47:26 +01:00
w0rp
6d6cd6663e
Merge pull request #1720 from MTDL9/fix-error-response-string-data
...
Fix E712 error in ale#lsp#response#GetErrorMessage when receiving string primitives in the error.data field
2018-07-13 09:30:54 +01:00
MTDL9
021f59b3f4
Support strings in data field of error responses
2018-07-13 06:42:28 +02:00
w0rp
d22b9bf1a6
Try to start the NeoVim 0.3 tests more times
2018-07-12 14:02:38 +01:00
w0rp
ac0abc7c1f
Fix #1716 - Replace tempdir() with a wrapper to preserve TMPDIR
2018-07-12 13:05:59 +01:00
w0rp
6ef31073dd
Remove an unused variable
2018-07-12 09:21:28 +01:00
w0rp
0de3d24338
Try the smoke test a few times over in NeoVim 0.3, which fails randomly
2018-07-11 13:46:13 +01:00
w0rp
c9a6b04dc7
Update the sandbox test now that functions can be defined in the sandbox
2018-07-11 13:36:59 +01:00
w0rp
c1a2aa27f3
Merge pull request #1697 from ananace/add-puppet-languageserver
...
puppet: Add puppet-languageserver linter
2018-07-07 12:08:14 +01:00
w0rp
4999ad7e78
Add an AssertLinter command for tests
2018-07-06 22:46:36 +01:00
w0rp
344e0fec97
Fix tests on Windows
2018-07-06 20:52:47 +01:00
w0rp
6b20c906b3
Merge pull request #1703 from jamestthompson3/master
...
Add flow-language-server
2018-07-06 20:44:32 +01:00
jamestthompson3
eda3878a6c
Add flow-language-server
2018-07-06 21:24:19 +03:00
w0rp
cb8643ce74
Remove an outdated note from the documentation
2018-07-06 08:20:48 +01:00
w0rp
1e9b36cdbf
Fix tests on Windows
2018-07-06 08:15:54 +01:00
w0rp
0dd356aa52
Fix the broken tests
2018-07-06 01:00:30 +01:00
w0rp
d5b4f6f7e7
Fix command formatting for LSP linters
2018-07-05 21:48:47 +01:00
w0rp
da692b2e2d
Support formatting escaped executable names into commands with %e
2018-07-05 20:56:31 +01:00
Alexander Olofsson
f78db619d4
Clean up root detection for puppet languageserver
2018-07-05 21:35:51 +02:00
Alexander Olofsson
9ca133feb0
Start of vader tests for puppet root detection
2018-07-05 21:25:03 +02:00
w0rp
f002c2c9f0
Merge pull request #1699 from ananace/add-vue-vls
...
vue: Add the Vue 'vls' Language Server (#1296 )
2018-07-05 19:08:20 +01:00
Alexander Olofsson
fd42e8e935
vue: Add the vls language server linter
2018-07-05 14:04:20 +02:00
w0rp
d49daeb816
Merge pull request #1698 from dsifford/dsifford-isort-options
...
add options variable to isort
2018-07-05 09:25:16 +01:00
w0rp
b8591e1034
Fix the doctag alignment
2018-07-05 09:24:57 +01:00
Derek P Sifford
6dc69b2144
address code review issues
2018-07-04 21:16:57 -04:00
w0rp
14025c725f
Optimise ale#Set slightly
2018-07-05 00:40:15 +01:00
w0rp
13a8f9c061
Optimise ale#Var a little
2018-07-04 23:54:14 +01:00
Derek P Sifford
3251d95a91
add options variable to isort
2018-07-04 13:01:16 -04:00
Alexander Olofsson
42ae06a288
puppet: Add puppet-languageserver linter
2018-07-04 15:08:25 +02:00
w0rp
9ddf1b6a05
Make the language option for LSP linters optional
2018-07-04 13:12:58 +01:00
w0rp
00a3859304
Fix how Docker images are pulled for developers
2018-07-04 09:36:37 +01:00
w0rp
ca7fa31c61
Close #1690 - Respect the preview setting for completeopt
2018-07-04 08:52:18 +01:00
w0rp
db85b931ec
Remove deprecated code for the 2.0 release
2018-07-04 08:36:34 +01:00
w0rp
602e7fa00f
#1524 Avoid loading cursor code until engine code has been loaded
2018-07-03 21:14:00 +01:00
w0rp
e10e0934ab
Automatically retry running Vader tests so Travis CI will fail less
2018-07-03 20:50:56 +01:00
w0rp
1d8b326f62
Revert "Add a failing test to test re-running tests in AppVeyor"
...
This reverts commit 1565859eae .
2018-07-03 19:59:40 +01:00
w0rp
1565859eae
Add a failing test to test re-running tests in AppVeyor
2018-07-03 19:56:37 +01:00
w0rp
7ce919e690
Re-run Windows tests when they fail at least once
2018-07-03 19:53:40 +01:00
w0rp
25a03dcea1
Use the latest Docker image for tests
2018-07-03 19:21:58 +01:00
w0rp
73d3030cf1
Merge pull request #1691 from dsifford/dsifford-python-pyre
...
add pyre lsp linter to python linters
2018-07-03 08:31:01 +01:00
w0rp
4987946175
Enable verbose test output, to figure out why NeoVim 0.3 randomly fails
2018-07-03 01:52:18 +01:00
w0rp
e46474ac0a
Close #830 - Implement LSP connections via TCP sockets
2018-07-03 01:41:46 +01:00
w0rp
5aba55bb86
#830 Make the LSP socket code so far use the new socket API
2018-07-03 00:30:26 +01:00
w0rp
01c68fedd6
#830 Implement a socket wrapper API for use with LSP connections
2018-07-02 23:49:47 +01:00
Derek P Sifford
20ed48352f
add dummy pyre binary and executable
2018-07-02 18:49:12 -04:00
Derek P Sifford
09a53fb363
add command_callback test
2018-07-02 18:23:42 -04:00
w0rp
b637b35ea8
Delete misplaced issue template files
2018-07-01 20:51:34 +01:00
w0rp
ce7d648c7c
Update issue templates
2018-07-01 20:50:50 +01:00
w0rp
8ac43b1936
Update issue templates
2018-07-01 20:50:29 +01:00
w0rp
1c5c4a4c8e
Split the issue template into multiple files
2018-07-01 20:41:52 +01:00
w0rp
059c5cfca4
Fix a false positive linting issue
2018-07-01 20:37:32 +01:00
Derek P Sifford
23394bf4a5
add pyre to table in doc/ale.txt
2018-07-01 15:14:13 -04:00
Derek P Sifford
ea6d720fec
add pyre lsp linter to python linters
2018-07-01 14:59:49 -04:00
w0rp
2a78401066
Close #1685 - Move developer documentation to a help file
2018-07-01 19:56:24 +01:00
w0rp
d456ac19ca
Fix a typo in the documentation
2018-07-01 19:56:24 +01:00
Govind KP
9d98e6db0c
Added dartfmt fixer ( #1683 )
...
* Added dartfmt to Fixers
* Added dartfmt specific documentation
2018-07-01 13:55:41 +01:00
w0rp
06f61eeeb8
Respect ale_warn_about_trailing_whitespace for yamllint
2018-07-01 13:49:40 +01:00
w0rp
e5e14de9ae
Capture error codes for yamlllint
2018-07-01 13:15:12 +01:00
w0rp
fee5107d43
Add tests for the yamllint handler
2018-07-01 12:50:46 +01:00
w0rp
cd8dd099d8
Switch back to running everything in one build, which is twice as fast
2018-07-01 12:22:29 +01:00
w0rp
857a07f36a
Try running tests in parallel again
2018-07-01 12:18:42 +01:00
w0rp
26aa0cf358
Try splitting up the build into separate jobs
2018-07-01 12:07:54 +01:00
w0rp
3c5b6d1825
Run Vint and custom checks together with just --linters-only
2018-07-01 12:06:59 +01:00
w0rp
ccfed164bc
Revert "Try adding Docker caching for Travis CI"
...
This reverts commit 1990efdba7 .
2018-07-01 11:55:07 +01:00
w0rp
1487c8daa0
Make highlight tests pass more in Neovim 0.3
2018-07-01 11:52:02 +01:00
w0rp
1990efdba7
Try adding Docker caching for Travis CI
2018-07-01 11:38:07 +01:00
w0rp
b88bf6ecba
Fix #1412 - Use --stdin-filename for newer reek versions
2018-07-01 10:21:59 +01:00
w0rp
ee81351a63
Move design goals to online documentation
2018-06-28 16:20:30 +01:00
w0rp
0b7a29d73b
Disable non-Vader tests when targeting Vader tests
2018-06-28 14:00:12 +01:00
w0rp
fc041ae090
Make a test which can fail randomly synchronous instead
2018-06-28 13:59:52 +01:00
w0rp
d581fca35e
Get tests running and passing with NeoVim 0.2 and 0.3
2018-06-28 13:53:49 +01:00
w0rp
8b407ed0e7
Try NeoVim 0.2.1, as 0.2.0 is way too slow
2018-06-28 12:07:22 +01:00
w0rp
51a14a4ba8
Update Dockerfile to test NeoVim 0.2 and 0.3, with a newer Vint version
2018-06-28 11:29:20 +01:00
Dan Aloni
d9e139ae23
Rust Cargo linter: Improve workspace support ( #1679 )
...
* Rust Cargo linter: Improve workspace support
When using Cargo workspaces [1], there is a 'Cargo.toml' directory in a
top level directory, listing all the crates in the project. If we are
currently editing one of the crates, 'cargo build' should execute in
that directory for that crate's separate `Cargo.toml`, otherwise Cargo
may spend more time possibly rebuilding the entire workspace, and maybe
failing on one of the other crates, instead of succeeding on the current.
[1] https://doc.rust-lang.org/book/second-edition/ch14-03-cargo-workspaces.html
2018-06-27 22:36:02 +01:00
w0rp
980aa35566
Merge pull request #1675 from nicopauss/master
...
Improve pyrex cython linter.
2018-06-27 21:39:36 +01:00
w0rp
b047271051
Merge pull request #1682 from fennerm/fix_prospector_e474
...
Fix prospector empty string error
2018-06-27 21:34:28 +01:00
Fenner Macrae
1ca2334846
Fix prospector empty string error
...
Prospector linter is raising error when no warnings are present in file
(#1680 ). Copied fix from #779 .
2018-06-26 16:58:34 -07:00
Nicolas Pauss
4d935ff32a
Add test_pyrex_cython_command_callback.vader
...
Add common callback tests to check if executable and options are well
configurable.
2018-06-25 22:14:43 +02:00
w0rp
66820ed452
Merge pull request #1641 from docwhat/pr/add-bash-lsp
...
sh: add bash-language-server linter
2018-06-25 17:03:15 +01:00
Nicolas Pauss
d05936a489
Handle cython warning with custom handle and remove '--warning-errors'.
...
Add a custom handler to support cython warning format.
Remove '--warning-errors' to keep previous behaviour.
2018-06-25 17:33:53 +02:00
Christian Höltje
49d995a521
sh: add bash-language-server linter
2018-06-25 11:21:53 -04:00
Nicolas Pauss
bedd30ee11
Improve pyrex cython linter.
...
Like many other linters, use variables for the executable and options
used by the linter.
By default, the linter now report every warnings as errors with
`--warning-errors`.
Also add include directory and set working directory to file directory.
2018-06-25 10:28:59 +02:00
w0rp
620951b6d3
Close #1453 #1172 - Add ale_linters_ignore for ignoring linter results
2018-06-24 21:16:45 +01:00
w0rp
755f1a4ccf
Merge pull request #1673 from meain/fixer-tidy
...
Add fixer tidy for HTML
2018-06-23 22:51:30 +01:00
Abin Simon
17c1aefb5b
Add fixer tidy for HTML
...
Add tests for tidy HTML fixer
2018-06-23 22:59:13 +05:30
w0rp
0f377251dd
#1674 - Alias verilog_systemverilog to verilog by default
2018-06-23 18:20:39 +01:00
w0rp
935740cf93
Close #1590 - Automatically close previews for hover
2018-06-21 23:02:36 +01:00
w0rp
8bca073763
Fix #1661 - Do not use :edit when jumping inside of a file
2018-06-21 21:20:54 +01:00
w0rp
22533f2c1f
Close #1522 - Show suggested fixers in :ALEInfo
2018-06-21 02:26:41 +01:00
w0rp
69eb2fe86a
Close #1417 - Support wildcard filetypes for fixers
2018-06-21 01:21:11 +01:00
w0rp
34755eecdd
#1398 document the detail key
2018-06-20 23:10:01 +01:00
w0rp
90dfe8e2a4
Merge pull request #1665 from ashemedai/master
...
Make CloudFormation linter work again with latest version
2018-06-20 22:51:55 +01:00
w0rp
11f303f853
Merge pull request #1618 from colbydehart/master
...
[new linter] Add mix linter for elixir
2018-06-20 22:47:56 +01:00
w0rp
b8be25adb4
Remove redundant spaces.
2018-06-20 22:44:56 +01:00
w0rp
d7efb13203
Try to fix the tests on Windows
2018-06-20 22:41:19 +01:00
Jeroen Ruigrok van der Werven
f14e3bb109
Update test to match update to linter
...
Also make lnum and col proper strings, since that is how it is matched
by the regexp, ALE handles the conversion to number.
2018-06-20 15:29:26 +02:00
Jeroen Ruigrok van der Werven
b7db095221
Make CloudFormation linter work again with latest
...
- Fix regexp
- Get rid of +0 since ALE does a str2nr() on lnum and col
- Put all matches in numerical order for easier maintenance
2018-06-20 14:59:51 +02:00
w0rp
0e1528ec34
Set up most of the autocmd events in one group
2018-06-20 13:35:57 +01:00
w0rp
9674132933
Remove CallWithCooldown functions to save on time
2018-06-20 08:34:42 +01:00
w0rp
82ea36576c
Move ClockMilliseconds to events, so fewer files are loaded some times
2018-06-19 20:53:49 +01:00
w0rp
fd261d7a17
Move the initialization of augroups to then events file
2018-06-19 20:31:58 +01:00
w0rp
3a5887df2c
Remove a redundant variable in tests
2018-06-19 20:12:49 +01:00
w0rp
e306e5cdb0
Avoid calling ALE cleanup code if ALE never tried to check a buffer
2018-06-19 20:12:33 +01:00
Alvin Chan
b8a1038a41
Set --parser option in Prettier's fixer ( #1620 )
...
* Set `--parser` option in Prettier's fixer
* Add expected `--parser` option to tests
* Disable Prettier `--parser` detection if file extension exists
* Manually default Prettier `--parser` to "babylon"
* Add `--parser` test for TypeScript
* Add tests for Prettier `--parser`
* Add JSON5 to the suggested fixer for Prettier
2018-06-18 22:40:57 +01:00
w0rp
43ce8d7610
Merge pull request #1653 from chaucerbao/feature/js-tsserver-support
...
Add TSServer support for JavaScript files
2018-06-17 22:14:12 +01:00
w0rp
24fe195311
Merge pull request #1650 from yasuhiroki/support-cfn-python-lint
...
Add linter for AWS CloudFormation template file
2018-06-17 20:39:07 +01:00
w0rp
49a5d657ee
Tell people that there's no cost for LSP support if they don't need it
2018-06-15 10:24:09 +01:00
w0rp
bda89506ba
Lazy-load LSP linters, and check b:changedtick before notifying about changes
2018-06-15 10:01:28 +01:00
Alvin Chan
bd4da116ee
Add TSServer support for JavaScript files
2018-06-13 17:37:20 -07:00
yasuhiroki
eabf5d55d6
Add end_lnum and end_col in cfn_python_lint handler
2018-06-13 09:11:14 +09:00
P M
f1b72218c3
Add support for qmlfmt fixer ( #1651 )
...
* Add support for qmlfmt fixer
2018-06-12 19:38:16 +01:00
w0rp
5283faa511
Try speeding up Travis builds with a generic environment
2018-06-12 19:31:44 +01:00
w0rp
87455a2ef4
Add a test for handling missing detail keys for LSP completion
2018-06-12 19:31:08 +01:00
w0rp
d9746a4572
Merge pull request #1638 from ssiegel/use-vanilla-rscript
...
Use --vanilla switch for Rscript
2018-06-12 19:01:45 +01:00
yasuhiroki
ae25d71fa8
Add linter for AWS CloudFormation template file
2018-06-12 15:11:53 +09:00
w0rp
22a9dcd03e
Merge pull request #1640 from docwhat/pr/lsp-handle-missing-details
...
lsp: handle missing "detail" key
2018-06-11 21:33:49 +01:00
Christian Höltje
fd7456fce0
lsp: handle missing "detail" key
2018-06-07 13:43:08 -04:00
Colby Dehart
864818a385
WIP cd to project path
2018-06-07 11:47:57 -05:00
Colby Dehart
f0f569f14a
added test for command callback
2018-06-07 10:09:08 -05:00
Stefan Siegel
42192c1593
Adapt test to also use Rscript --vanilla
2018-06-07 15:56:14 +02:00
Stefan Siegel
252097bee0
Use --vanilla switch for Rscript
...
This prevents possibly bad interference with the user's R environment,
e.g. by an auto-activating packrat.
2018-06-07 15:06:09 +02:00
w0rp
10a9177b6b
Merge pull request #1636 from zed0/master
...
#1635 - Use the project base rather than its parent for cquery
2018-06-07 07:23:44 +01:00
Ben Falconer
d1be72f438
#1635 - Use the project base rather than its parent for cquery
2018-06-07 00:12:38 +01:00
w0rp
67753de531
Merge pull request #1632 from zed0/master
...
Add the cquery LSP
2018-06-06 21:31:36 +01:00
Ben Falconer
20db9ab719
Add the cquery LSP #1475 #1594
2018-06-06 17:58:47 +01:00
Ben Falconer
641c0c797b
Pass rootUri to LSPs in addition to rootPath
2018-06-06 17:53:36 +01:00
Ben Falconer
1a4b08539b
Allow initialization options to be passed to language servers
2018-06-06 17:53:36 +01:00
w0rp
c49ea1a5e3
Merge pull request #1629 from elebow/pipenv-executable-python-tools
...
Allow all Python linter executables to be set to `pipenv`.
2018-06-05 08:32:45 +01:00
w0rp
3a6a92283e
Merge pull request #1628 from rmorabia/patch-1
...
Readme Typo: TypeSript -> TypeScript
2018-06-05 07:12:53 +01:00
Eddie Lebow
ca88e67af0
Allow all Python linter executables to be set to pipenv.
...
It appends ` run {linter_name}`, analogously to the Ruby linters when
the executable is set to `bundle`
2018-06-05 00:33:26 -04:00
Radhika Morabia
b3da52d38d
Typo: TypeSript -> TypeScript
2018-06-04 20:22:53 -07:00
w0rp
5addd3abef
Merge pull request #1627 from budziq/master
...
Added linting of tests and examples for rust cargo linter
2018-06-04 13:33:08 +01:00
Michał Budzyński
e272207114
Allow linting rust tests and examples with cargo
2018-06-04 11:08:49 +02:00
w0rp
4ec661b305
Merge pull request #1623 from zoonfafer/scalafmt-fixer
...
Add 'scalafmt' fixer for Scala files
2018-06-03 19:12:09 +01:00
Jeffrey Lau
03d14324ea
doc/scalafmt: Remove wrong bits on initial "enabledness" of fixers
2018-06-04 02:05:19 +08:00
w0rp
a8bbf49a31
Merge pull request #1625 from elebow/flake8-pipenv-run
...
Allow flake8 executable to be set to `pipenv`.
2018-06-03 18:52:15 +01:00
w0rp
0db12702f3
Respect warn_about_trailing_whitespace for gitlint
2018-06-03 10:46:39 +01:00
Eddie Lebow
dd642b117c
Allow flake8 executable to be set to pipenv.
...
It appends ` run flake8`, analogously to the Ruby tools when the
executable is set to `bundle`
2018-06-02 21:49:12 -04:00
Jeffrey Lau
77d0ac58ed
Add 'scalafmt' fixer for Scala files
...
closes https://github.com/w0rp/ale/issues/1299
2018-06-03 04:40:52 +08:00
Colby Dehart
81739be0a0
handled temp file and env variable correctly; added tests
2018-06-02 13:03:56 -04:00
w0rp
786fc0a62f
Merge pull request #1617 from luitzifa/master
...
Fix for puppet version >= 5.4.0
2018-06-02 12:36:24 +01:00
w0rp
014d27c882
#1621 - Tolerate SetOptions calls when ALE is loaded in a weird way
2018-06-01 21:03:22 +01:00
Colby Dehart
d760558007
added mix build path env var to the mix compile
2018-06-01 11:56:47 -04:00
w0rp
fae9167083
Fix LSP message handling when the handler doesn't get strings, somehow
2018-06-01 14:49:13 +01:00
w0rp
201f8519d9
Update the gitcommit documentation with more examples
2018-06-01 14:22:23 +01:00
w0rp
6a7e00d9ac
Handle definition responses without files
2018-06-01 14:15:32 +01:00
w0rp
10e1545630
Mention g:ale_linters_explicit in the README
2018-05-30 21:15:00 +01:00
w0rp
970b62756e
Fix #1610 - Encourage the use of ftplugin files more
2018-05-30 21:10:37 +01:00
w0rp
db64571b4c
Fix #1523 - Document completion_filter
2018-05-30 20:44:09 +01:00
w0rp
c8b77fd4b8
Fix a typo in the LSP linter documentation
2018-05-30 20:23:57 +01:00
w0rp
bd92616e2a
Fix #1219 - Mention FindProjectRoot behavior for Python in the documentation
2018-05-30 20:09:33 +01:00
w0rp
f95bc00bd6
Clean up grammar for hover documentation a little
2018-05-30 19:44:01 +01:00
w0rp
106d439f56
Merge pull request #1589 from gagbo/balloon_doc
...
Documentation : document the mouseover magic
2018-05-30 19:31:41 +01:00
Magnus Ottenklinger
801c12a881
Add mix linter for elixir
2018-05-30 10:38:14 -04:00
Daniel Kraemer
3a1d21e5dd
Fix for puppet version 5.4.0
...
i don't know of any version lower than 5.4.0
2018-05-29 08:55:08 +02:00
w0rp
3014d85325
Encourage people to use NeoVim 0.2.0 or above in the README.
2018-05-28 20:20:05 +01:00
w0rp
f84411f3f1
Remove a test for a deprecated variable that seems to trip up Travis
2018-05-28 20:08:27 +01:00
w0rp
191967cfee
#1587 - Add deprecation warnings for old linter options
2018-05-28 19:52:27 +01:00
w0rp
c0a279f967
Indicate things to be removed in version 2.0
2018-05-28 19:39:49 +01:00
w0rp
f2837b5802
#1524 - Define global variables where they are needed
2018-05-28 19:19:20 +01:00
w0rp
cae194d1bd
#1524 Replace ale#Set with let in the main file
2018-05-28 17:57:58 +01:00
w0rp
18509195f5
#1524 Do not try to check buffers with empty filetypes
2018-05-28 17:38:14 +01:00
w0rp
ce89d93e1c
Remove a now defunct test
2018-05-28 17:11:21 +01:00
w0rp
e49e7d52bc
#1524 Remove the plugin conflict warnings
2018-05-28 16:47:32 +01:00
w0rp
8a659b7cc6
Fix #1566 - Add g:ale_python_flake8_change_directory
2018-05-28 16:34:54 +01:00
w0rp
d9717147bf
Close #1559 - Report errors from LSP servers in :ALEInfo
2018-05-28 16:24:15 +01:00
w0rp
3c55cb087d
Close #1553 - Support some tsserver completion for strings
2018-05-28 15:16:15 +01:00
w0rp
ef1ec5341f
Fix #1568 - Filter LSP completion results with the prefixes
2018-05-28 14:45:07 +01:00
w0rp
cd0dc0a227
Fix #1611 - Fix perlcritic escaping on Windows
2018-05-28 12:51:06 +01:00
w0rp
eaf35bc611
Merge pull request #1562 from haginaga/support_phan_client
...
Add support phan_client for php
2018-05-28 12:41:13 +01:00
haginaga
ae8dd39760
Fix an incorrect argument of ale#Var in ale_linters#php#phan#Handle
2018-05-27 22:45:43 +09:00
haginaga
feab494286
Fix code style issues and refactor to use ale#Var
2018-05-27 22:21:02 +09:00
w0rp
29a9c9a255
Merge pull request #1564 from aliou/ad-alefix-fixer-cmdline-completion
...
Use the command line to filter ALEFix's command line completion.
2018-05-26 21:34:29 +01:00
w0rp
6fce8ddc5a
#1600 Alias vimwiki to markdown
2018-05-26 11:41:52 +01:00
w0rp
b67c9a83b2
Merge pull request #1574 from hecrj/elm-0.19
...
Support Elm 0.19
2018-05-26 09:19:30 +01:00
Héctor Ramón Jiménez
7fd0fd514b
Fix multiline indentation
2018-05-25 22:22:47 +02:00
w0rp
51a063be31
Move the sasslint handlers to one location
2018-05-25 20:59:35 +01:00
w0rp
8d49da1f1c
Merge pull request #1573 from zed0/master
...
Run sass-lint from the target's directory
2018-05-25 20:48:16 +01:00
w0rp
d0f579c5fc
Merge pull request #1575 from tsuburin/enable_dmd_warnings
...
Enable warnings of dmd command
2018-05-25 19:38:40 +01:00
w0rp
d8d13ef264
Do not echo messages to the echo line for mouse movements unless the user says so
2018-05-17 16:23:29 +01:00
Gerry Agbobada
1258b032e6
Documentation : Add mention of mouseover in README
2018-05-17 11:06:37 +02:00
Gerry Agbobada
e5ad9076b3
Documentation : document the mouseover magic
...
This first try is focused on fitting the information in existing
paragraphs
2018-05-17 10:57:04 +02:00
Gerry Agbobada
3a3c244723
TUI / GUI tooltip with content from ALEHover ( #1556 )
...
* Guard the ballooneval settings
* Mark main objectives to do to get nice Hover
* Make tweaks to make the tooltip work - See " XXX: comments
* Guard balloon_show call
* Use return instead of finish for functions
* ale#hover#show : Add optional arguments to specify arbtirary position
This change is requested to be able to call the function with mouse
position to enable hover information in vim's balloon
* ale#ballon#Disable : Remove feature guards
* ale#balloon : Show 'ALEHover' output on balloon if no diagnostic found
* ale#hover#HandleLSPResponse : remove the check for cursor position
This check prevented the 'ALEHover in balloon' feature, since mouse
position is almost never cursor position.
* ale#balloon#MessageForPos : Change the return of balloonexpr
balloonexpr evaluation now works even without balloon_show for basic
diagnostics, leaving the balloon_show call to ale#hover#Show, which can
then feature guard the call to avoid errors
* ale#hover#Response : Feature guard balloon_show calls
* ale#hover : always display 'Hover' information in messages
Also add a small comment to warn readers the different outputs the
ale#hover#Show will write to
* {LSP,TS}Response : use only variables from the Response
It is clearer that we only rely on l:options to get the relevant data to
build the LSP Response string
* hover#ShowDetails : fix an issue where not having focus broke balloons
The issue was caused by not using a buffer-specific version of getline()
to cap the value of the column sent in the message to LSP. Therefore a
cursor on column 10 in an inactive window could send a message with
column=0, if the active window had a buffer with too few lines
* {LSP,TS}Response : Remove redundant checks for balloon_show call
With the upcoming change in ale_set_balloons default value (see Pull
Request w0rp/ale#1565 ), this check will be useless
* balloonexpr? : Add a flag to separate hover#Show() calls
The goal of this flag is to make `:ALEHover` calls not pop a balloon
under the cursor, since the user has probably no interest in their
cursor while typing the command
The flag is a default argument which is overridden only in ballonexpr
call of ale#hover#Show, and stays set in the hover_map until the
callback for the LSP handles it.
There are no automated tests for this feature right now, and the nature
of the addition (one optional argument in the API) should make it
transparent to existing tests.
Since the differentiation is now possible, the check for moved cursor
has been put back in ale#hover#HandleLSPResponse
* ale#hover#hover_map : Protect accesses to hover_map
Using get() is safer than trying to access directly with ., as the tests
show.
* Raise timeout to try to get Appveyor happy
* Review : Fix comments
* Review : pass the optional argument 'called_from_balloonexpr' in a Dict
This optional dictionary has documentation just before the function
using it, ale#hover#Show, and allows easier extension in the future.
2018-05-16 21:23:48 +01:00
w0rp
c1da7866d0
Fix #1584 - Make duplicate msgfmt messages easier to navigate
2018-05-15 18:01:49 +01:00
Héctor Ramón Jiménez
b071f1a795
Make Elm linter backwards compatible with Elm 0.18
2018-05-15 17:06:52 +02:00
Ben Falconer
8a1099bb59
Run sass-lint from the target's directory
2018-05-15 14:36:31 +01:00
w0rp
c23acb00e2
Merge pull request #1565 from rhysd/improve-balloon-support-detection
...
Improve g:ale_set_balloons default value
2018-05-15 13:16:33 +01:00
w0rp
4a76cb0dd5
Update the issue template to tell you where to find command callback tests
2018-05-15 13:14:28 +01:00
Héctor Ramón Jiménez
115952fae3
Show Elm.Kernel as location when report.path is null in a general problem
2018-05-12 20:27:33 +02:00
tsuburin
0c472c2244
Added "-wi" to the dmd command to endable warning messages.
2018-05-12 15:03:35 +09:00
Héctor Ramón Jiménez
c3f61c391b
Use message as text instead of title
...
`title` does not contain much information which forces to use :ALEDetail most of the time
2018-05-12 04:16:14 +02:00
Héctor Ramón Jiménez
089a07c6a6
Update ale-elm doc
2018-05-11 20:14:00 +02:00
Héctor Ramón Jiménez
2f40da76e6
Test global problems and imported module errors
2018-05-11 20:07:28 +02:00
Héctor Ramón Jiménez
d40f447931
Upgrade Elm linter to support 0.19 error reports
2018-05-11 19:15:40 +02:00
rhysd
168569b8b0
Fix condition to test a balloon feature
2018-05-11 19:07:16 +09:00
rhysd
57f0454a55
Improve g:ale_set_balloons default value
2018-05-11 17:46:40 +09:00
Aliou Diallo
199fcd48ac
Use the command line to filter ALEFix's command line completion.
2018-05-10 16:15:08 +02:00
w0rp
38c66d33fe
Merge pull request #1563 from IngoHeimbach/fix/gcc-fatal-error
...
Fatal GCC errors are handled as errors not warnings
2018-05-09 09:14:38 +01:00
Ingo Heimbach
5fe74c7dc8
Fatal GCC errors are handled as errors not warnings
2018-05-09 09:01:41 +02:00
w0rp
f7ecf3f47a
Merge pull request #1555 from BobuSumisu/nasm-linter
...
Added NASM assembly linter
2018-05-08 19:02:17 +01:00
w0rp
7541a40859
#852 Update the REAME to mention %...code...%
2018-05-08 18:32:18 +01:00
w0rp
9023987fe0
Merge pull request #1552 from a-marquez/master
...
Add XO fixer
2018-05-08 17:53:12 +01:00
haginaga
230656e678
Fix to follow the Google VimScript Style Guide
2018-05-08 23:47:35 +09:00
haginaga
ffa6fd4bed
Fix to follow the Google VimScript Style Guide
2018-05-08 23:35:14 +09:00
haginaga
eb3ab87569
Modify to be able to use phan_client without g:ale_php_phan_executable
2018-05-08 23:25:11 +09:00
haginaga
8cee39c614
( close w0rp/ale#1561 ) Add support phan_client for php
2018-05-08 14:19:47 +09:00
Øyvind Ingvaldsen
3bc07b482b
Fixed handle test for Windows
...
Needed to add correct separator to test data.
2018-05-04 23:04:45 +02:00
Øyvind Ingvaldsen
df8c45ed55
smallfix
2018-05-04 22:33:08 +02:00
Øyvind Ingvaldsen
27144eee8c
Added NASM linter
...
Added NASM linter (for nasm filetype).
2018-05-04 21:44:32 +02:00
w0rp
726a768464
Merge pull request #1550 from deivid-rodriguez/bundle_option_for_mdl
...
Add bundle option to mdl
2018-05-03 22:20:39 +01:00
w0rp
7c0219efcc
#1503 Call setline() after d, in case there are folds at the end of the file
2018-05-03 22:14:29 +01:00
w0rp
6495fac820
Tell people to install prettier-eslint-cli instead
2018-05-03 19:48:15 +01:00
w0rp
e2c33f2f6c
Add g:ale_completion_excluded_words for completion filtering
2018-05-03 11:17:41 +01:00
a-marquez
14dc05f36b
Add XO fixer to fixers registry
2018-05-02 18:26:46 -04:00
a-marquez
12d79894a4
Add fixer definition for XO
2018-05-02 18:26:13 -04:00
w0rp
e59cd6b7c0
Make the features ALE supports clearer in the README
2018-05-02 13:38:52 +01:00
David Rodríguez
f11637b62b
Add bundle option to mdl
2018-05-01 19:49:45 -03:00
Bjorn Neergaard
ae85695543
Update run-tests to make use of /usr/bin/env ( #1548 )
...
* Update run-tests to make use of /usr/bin/env
* Update run-vint
* Update run-vader-tests
* Update custom-linting-rules
* Update custom-checks
* Update check-toc
* Update check-supported-tools-tables
2018-05-01 13:18:03 +01:00
w0rp
3331f6c8f4
Merge pull request #1543 from vancluever/f-add-JobStartedAutoCmd
...
Add ALEJobStarted User autocommand event
2018-04-29 20:16:59 +01:00
Chris Marchesi
b81bc8d481
A couple of more doc fixes
...
* Update section 5.viii in the README with ALEJobStarted and re-format
the example.
* Add an extra line after documentation update to ensure consistency
with the rest of the doc.
2018-04-28 15:10:59 -07:00
Chris Marchesi
11780e1d3d
Add some tests for IsCheckingBuffer
...
Adding a couple of tests to demonstrate how IsCheckingBuffer behaves
during specific autocommand hooks:
* At ALELintPre, no linters have actually executed yet, hence
IsCheckingBuffer should be returning false.
* ALEJobStarted, fires as early as reasonably possible after a job has
successfully started, and hence hooking into IsCheckingBuffer here
should return true.
This distinction is important when using these two events during things
like statusline refreshes, namely for "linter running" indicators.
2018-04-28 14:50:20 -07:00
Chris Marchesi
129eb96561
Fix tests by setting proper link tag in doc for ALEJobStarted
2018-04-27 22:32:21 -07:00
Chris Marchesi
9da015f74f
Add test for ALEJobStarted
2018-04-27 22:00:50 -07:00
Chris Marchesi
b7996803c9
Add ALEJobStarted User autocommand event
...
The ALELintPre and ALELintPost autocommand events are currently being
used by lightline-ale to refresh the status line and check the linter
status for a current buffer. One of the plugin's checks looks to see if
linters are currently running, via ale#engine#IsCheckingBuffer(). This
currently only works partially in certain situations. In my particular
case, working with Go files, this only seems to function properly when a
file is initially opened. Saving a file does not correctly update the
status.
This seems to be due to the fact that ALELintPre actually runs before
any jobs are carried out, making it plausible that hooking into
ALELintPre for the purpose of checking to see if there are any currently
running linters for a buffer is unreliable as it would be prone to
pretty obvious race conditions.
This adds a new User autocommand, ALEJobStarted, that gets fired at the
start of every new job that is successfully run. This allows a better
point to hook into checking the linter status of a buffer using
ale#engine#IsCheckingBuffer() by ensuring that at least one job has
started by the time IsCheckingBuffer is run.
2018-04-27 15:40:02 -07:00
w0rp
6ab3fdc4d0
Close #1521 - Allow the language to be set with simple strings for LSP linters
2018-04-27 22:52:11 +01:00
w0rp
d1d705cc84
Merge pull request #1533 from inducer/master
...
flake8: Move to the buffer's directory before running flake8 command
2018-04-27 21:39:04 +01:00
w0rp
4a63a90d0d
Merge pull request #1540 from maximbaz/fix-docs-ale-go
...
Fix typos in "lint package" options in docs/ale-go
2018-04-27 19:23:34 +01:00
Maxim Baz
04b54f5c17
Fix typos in "lint package" options in docs/ale-go
2018-04-27 19:49:33 +02:00
Jonny Ramsden
cf174d3b9b
set marks to add to jump list
2018-04-27 17:18:18 +01:00
Andreas Kloeckner
603e61ad71
flake8: Move to the buffer's directory before running flake8 command
2018-04-26 18:53:44 -05:00
w0rp
d8d09c2048
Close #1428 Implement LSP hover-like functionality for tsserver too
2018-04-26 21:54:11 +01:00
w0rp
e6fe2d86b8
Add an American English tag for behaviour too
2018-04-24 21:56:34 +01:00
w0rp
41c0b837ae
#1278 Allow linters to be defined pretty much anywhere
2018-04-24 21:48:33 +01:00
w0rp
ebbf7d0353
#1428 Show multiline hover messages, and document the new command
2018-04-24 21:03:06 +01:00
w0rp
93a046a78f
#1236 Explain how to use Vim jumps
2018-04-23 21:18:58 +01:00
w0rp
7d6a303592
Move autocmd commands out of the toggle file, to improve load times
2018-04-23 10:16:48 +01:00
w0rp
ef130c4428
#1428 Start implementing LSP hover support
2018-04-22 22:00:25 +01:00
w0rp
0b3ee11546
Fix a typo
2018-04-22 20:32:39 +01:00
w0rp
286abd12d3
Add support for finding references using LSP servers or tsserver
2018-04-22 19:49:30 +01:00
w0rp
5a365e7926
Merge pull request #1517 from kfly8/perltidy-fixer
...
Added perltidy fixer
2018-04-22 18:02:19 +01:00
w0rp
87ad4dfbe7
Implement a preview window for selecting locations to open
2018-04-22 15:53:01 +01:00
w0rp
d8a673515a
Close #1162 - Implement completion support with LSP servers
2018-04-22 12:28:19 +01:00
Kenta, Kobayashi
498be478be
add perltidy fixer
2018-04-21 22:09:38 +09:00
w0rp
20241c87ef
Merge pull request #1511 from elebow/add-cucumber-checker
...
Add `cucumber` checker for Cucumber files
2018-04-21 09:23:07 +01:00
Eddie Lebow
1e6651e0a0
Add cucumber checker for cucumber files
...
For now, it only detects undefined steps. The nearest `features` dir
above the buffer file is loaded, so step definitions should be found
correctly.
Tested only with Cucumber for Ruby, but it should work for any cucumber
that follows a substantially similar directory structure.
2018-04-20 22:54:29 -04:00
w0rp
63bbb38c0c
Merge pull request #1510 from fenuks/issue-1471
...
Support passing fixers names to ALEFix as arguments
2018-04-20 21:38:11 +01:00
fenuks
6f6d35c0bd
Add information that ALEFix can now accept arguments
2018-04-18 02:28:17 +02:00
fenuks
f16384f323
Add tests for ALEFix commandline parameters
2018-04-18 02:13:24 +02:00
fenuks
a591b191db
Make ALEFix support arguments
2018-04-18 02:13:24 +02:00
w0rp
f9ba3d924f
Fix #1507 - Add an option for disabling switching directories for pylint
2018-04-17 13:30:30 +01:00
w0rp
fb720251bf
Close #1504 - Add an option for removing --respect-pragma for flow
2018-04-15 12:25:15 +01:00
w0rp
60917c9005
Revert " #1277 Try to get eslint_d to run the right version of eslint"
...
This reverts commit 56c7957a75 .
2018-04-13 21:02:56 +01:00
w0rp
f5f3424fcf
#1501 Pass the buffer number from BufWritePost on to ale#fix#Fix
2018-04-13 20:59:05 +01:00
w0rp
56c7957a75
#1277 Try to get eslint_d to run the right version of eslint
2018-04-13 20:49:03 +01:00
w0rp
a0aa9aa9b7
Fix #1495 - Fall back to /bin/sh when shell=pwsh
2018-04-12 21:01:35 +01:00
w0rp
0cd8e8630b
#1497 Tolerate important ALE variables being undefined for some reason when viewing buffers like git commits
2018-04-12 20:31:45 +01:00
w0rp
3401a4e8ea
Merge pull request #1498 from Eyenseo/master
...
Fix rust rls linter argument
2018-04-12 20:01:00 +01:00
eyenseo
6c93cded64
Fix rust rls linter toolchain argument
...
This removes the argument if the specified toolchain is empty.
As far as I can tell there is no +nighly (or similar) option [1] leading to
the termination of the server. But since people needed this option and
have yet to complain about it it stays the default for now.
[1] https://github.com/rust-lang-nursery/rls/blob/master/src/main.rs#L87
2018-04-12 20:42:38 +02:00
w0rp
f064ba48f5
Close #1494 - Prefer displaying higher severity problems for cursor messages, balloons, and highlights
2018-04-10 21:05:22 +01:00
w0rp
3f0e1cd05d
Fix #1492 - Make pylint error parsing work on Windows
2018-04-10 15:18:16 +01:00
w0rp
9d00695249
#1486 - Default exit_code to 1, if it isn't set.
2018-04-10 09:57:21 +01:00
w0rp
da9a005c60
Fix #1490 - Rename the g++ linter to gcc, and add an alias for the old name
2018-04-10 09:31:22 +01:00
w0rp
697fd4ac75
Merge pull request #1488 from languitar/pmd
...
Add support for the java PMD linter
2018-04-09 19:22:14 +01:00
w0rp
719b790574
Close #542 - Add an option for disabling running locally installed executables by default
2018-04-09 19:11:20 +01:00
w0rp
3a47413286
Merge pull request #1487 from rhysd/fix-1472
...
pylint: Move to the buffer's directory before running pylint command
2018-04-09 18:14:42 +01:00
Johannes Wienke
49c4bfde14
Add support for the java PMD linter
2018-04-09 17:48:00 +02:00
rhysd
4903b966a7
pylint: Move to the buffer's directory before running pylint command ( Fix #1472 )
2018-04-09 16:43:10 +09:00
w0rp
2f2dcb8444
Close #1476 - Make the javac executable configurable
2018-04-08 20:35:06 +01:00
w0rp
7cf3ddf6c4
Close #1439 - Add an :ALEInfoToFile command
2018-04-08 19:04:07 +01:00
w0rp
1123669839
Close #1315 - Make the vint executable configurable
2018-04-08 18:10:00 +01:00
aspidiets
f9ae58849a
Fix #1424 - Make the brittany fixer work
2018-04-08 17:38:43 +01:00
w0rp
91d7e81ebc
Fix #605 - Support vcol: 1 for multi-byte character positions
2018-04-08 17:17:46 +01:00
Adriaan Zonnenberg
121e806423
Add g:ale_php_cs_fixer_options variable ( #1477 )
...
* Add g:ale_php_cs_fixer_options variable
* Fix test
2018-04-07 23:53:03 +02:00
w0rp
bb775e4e22
Fix #1479 - Respect g:hdevtools_options for hdevtools
2018-04-07 22:50:31 +01:00
Jack Evans
c5d3af04fc
Added support for Python black fixer ( #1451 )
2018-04-06 11:08:25 +02:00
P M
85a2a00826
Integration of qmlfmt linting tool ( #1462 )
...
* Add first qmlfmt support
* Add GetCommand() function
- pass --error/-e option
* Add handle unittest
- fix pattern regex
- store col as integer
* Update docs
* Add command callback unit test
2018-04-05 21:09:41 +02:00
Nils Leuzinger
912f632bf5
Add fsc linter for Scala ( #1452 )
...
* Add fsc as a Scala linter
* Pull reused code into `autoload/ale/` directory
* Include fsc into the README
* Add unit test for testing the scala handler
* Add unit test for scala's fsc linter
* Rename scala unit tests for clarity
* Fix typo in README
* Fix typos in doc/ale.txt
* Fix author headline
* Put methods for fsc commands back into fsc.vim
* Move command_callback tests to correct location
* Rewrite handler test so it actually tests handler
* Clarify description of test in test_scala_handler
2018-04-05 21:04:11 +02:00
w0rp
a2acdecbc2
Merge pull request #1455 from Christian-Gibbons/flawfinder_cpp_severity_fix
...
Fix Flawfinder for C++
2018-04-05 15:00:08 +01:00
w0rp
8baab691e9
Merge pull request #1429 from stewy33/master
...
Add support for Mercury language using mmc as a linter.
2018-04-05 12:34:45 +01:00
christian-gibbons
f1d56a343e
Flawfinder for C++:
...
Fix missing variable causing flawfinder to fail for c++
2018-03-28 14:09:03 +00:00
w0rp
95ec9bb780
#1167 Use the make -n parsing for C++ compilers, and document the new option
2018-03-27 19:24:22 +01:00
w0rp
018831d601
Merge pull request #1434 from roel0/master
...
Automatically determine build flags by parsing `make -n` output #1167
2018-03-27 09:55:43 +01:00
roel0
dfb3e194d7
Extended unit tests + simplified parsing algoritme #1167
2018-03-27 10:18:24 +02:00
w0rp
27c5faeafe
Use the --stdin-filename option for textlint, so configuration files will be discovered better
2018-03-26 10:35:10 +01:00
w0rp
8e9ae59e5e
Fix paths for running tests on Windows
2018-03-26 09:58:48 +01:00
w0rp
8b34a4bf6b
Fix config and executable issues with the textlint linter
2018-03-26 09:55:18 +01:00
w0rp
45c5fe7f43
Fix a typo in the documentation
2018-03-26 09:19:58 +01:00
Stewy Slocum
8d4852a127
add documentation on mmc linter
2018-03-25 13:43:51 -04:00
Stewy Slocum
84952918cc
add support for mercury language using mmc as linter
2018-03-25 13:33:24 -04:00
w0rp
164c711b3d
Fix #1404 - Do not show balloons when g:ale_set_balloons is 0. Add b:ale_set_balloons
2018-03-25 12:57:08 +01:00
P M
107516c757
Add basic qmllint support ( #1419 )
...
* Add basic qmllint support
* Use temp file, remove superfluous error code key, adjust author info
* Add qmllint handler parse test
2018-03-25 11:55:59 +01:00
w0rp
d14558da32
Merge pull request #1448 from yasuhiroki/support-textlint-plaintext
...
Support textlint for plaintext
2018-03-24 13:19:38 +00:00
yasuhiroki
562862073f
Update document for textlint
2018-03-24 16:04:47 +09:00
yasuhiroki
1d33d2cacf
Support textlint for plaintext without textlintrc
2018-03-24 14:40:44 +09:00
w0rp
dbf530e87f
Fix #1373 - Fix a bug with Fish errors not being handled on Linux
2018-03-23 12:17:54 +00:00
w0rp
ec5750f57b
Merge pull request #1441 from adrigzr/bugfix-1207-remark-lint-ranges
...
Handle ranges for the remark linter #1207
2018-03-22 15:20:25 +00:00
w0rp
c525f49f09
Fit documentation to the column size in ale-cs.txt
2018-03-22 15:18:41 +00:00
w0rp
722607b866
Merge pull request #1442 from Crysikrend/master
...
Added the word 'find' as it was missing in docs/ale-cs.txt
2018-03-22 15:17:56 +00:00
Ashley Smith
7a87520ba5
Added the word 'find' as it was missing in docs/ale-cs.txt
2018-03-22 14:20:45 +00:00
Adrián González Rus
87217ae347
fix: Handle ranges for the remark linter #1207
2018-03-22 11:47:16 +01:00
roel0
cf62ef7b07
Fixed windows compatibility unit tests #1167
2018-03-21 20:56:29 +01:00
roel0
69237a7e57
Added additional unit tests + adapted review comments #1167
2018-03-21 20:44:35 +01:00
w0rp
0678eb1f45
Merge pull request #1409 from x1024/patch-1
...
Add new FAQ item for g:ale_list_window_size
2018-03-21 17:41:55 +00:00
w0rp
b769b67b2f
Update the table of content for the new FAQ entry.
2018-03-21 17:41:24 +00:00
w0rp
ca2472a460
Merge pull request #1438 from lepistone/doc-timers
...
doc: fix misspelled feature name
2018-03-21 17:35:34 +00:00
Leonardo Pistone
f0325d7322
doc: fix misspelled feature name
2018-03-21 17:02:43 +01:00
w0rp
c0279de661
Merge pull request #1436 from bmihelac/fix-1435-msgfmt-output-stdout
...
fix: po msgfmt output to stdout (#1435 )
2018-03-21 10:56:31 +00:00
Bojan Mihelac
763fcb8512
fix: po msgfmt output to stdout ( #1435 )
2018-03-21 09:21:20 +01:00
roel0
7593e20377
Fix failing unit tests for windows
2018-03-21 07:37:32 +01:00
roel0
18d0aeb1a0
* Shell commands should by called async with the help of a command chain
...
* The makefile parser unit test should only test the cflag parser itself
#1167
2018-03-20 21:49:31 +01:00
w0rp
64c95d4881
Merge remote-tracking branch 'tylucaskelley/master'
2018-03-20 20:27:50 +00:00
w0rp
57a93cbc04
Merge pull request #1433 from benpaxton-hf/lint-whole-package
...
Lint whole package for gosimple and gotype
2018-03-20 20:17:43 +00:00
Ben Paxton
6452c5e2f0
Use govet handler for gosimple, gotype, staticcheck
2018-03-20 14:19:48 +00:00
roel0
38953c4626
Clang parser shoud fallback on old method if parsing fails #1167
2018-03-20 12:37:53 +01:00
roel0
3fb7efa2c6
Added some unit tests and fixed some linting errors for automatic makefile parsing in C #1167
2018-03-20 11:56:46 +01:00
roel0
c47b5fd4b8
Automatically determine build flags by parsing 'make -n' output #1167
2018-03-19 21:56:18 +01:00
Ben Paxton
0cb3e36554
Lint whole package for gosimple and gotype
...
Fixes #936
2018-03-19 15:52:42 +00:00
w0rp
43e8f47e6e
#1431 Normalize paths when checking for temporary paths on Windows
2018-03-18 20:39:50 +00:00
INOUE Yosuke
68b9399d4c
handle multibyte string when linting text with redpen ( #1416 )
...
* handle multibyte string when linting text with redpen
* fix error when no string is provided, fix test's expect value
* remove ambiguious `==` operator
2018-03-18 18:12:47 +00:00
w0rp
434f22e44a
Merge pull request #1415 from fohte/fixer-rufo
...
Add rufo fixer for Ruby files
2018-03-18 17:42:07 +00:00
w0rp
440502dc93
Clean up the mix format command and tests
2018-03-18 17:40:34 +00:00
w0rp
92612a9eab
Merge pull request #1410 from fribmendes/frm/mix_format_options
...
Allow passing options to mix_format
2018-03-18 17:36:33 +00:00
Hideaki Tokida
1b1e53ef61
add textlint support for markdown ( #1383 )
2018-03-18 17:28:26 +00:00
w0rp
c112ee9dff
Fix #1392 - Only check files on disk for gotype
2018-03-18 17:16:13 +00:00
w0rp
bdd8d2399f
#416 Escape the tslint command
2018-03-18 16:48:28 +00:00
w0rp
b08fdd16b8
Merge pull request #1248 from Carpetsmoker/autocmd-fixer
...
Add ALEFixPre and ALEFixPost events
2018-03-18 16:37:16 +00:00
Martin Tournoij
302f69e933
Add ALEFixPre and ALEFixPost events
...
To run autocmd before and after every fix cycle.
Fixes #623 (`ALELintPre` was added in #1203 ).
2018-03-17 18:24:38 +00:00
Anthony DeDominic
92e6e4d1ba
Fix awk linter and security concerns. ( #1411 )
...
* Fixed (g)awk linter
* Made it secure, albeit less useful.
* Added gawk handler; the cpplint one was not working?
* Added gawk handler test.
* added warning to gawk handler.
* added gawk command callback test
* added comment about --source
* added back optional commandline option
2018-03-14 17:46:57 +00:00
Hayato Kawai
7e1a9a9810
Add rufo fixer for ruby files
2018-03-11 13:33:57 +09:00
w0rp
05d39bc1a9
Merge pull request #1395 from gfontenot/gfontenot/fix-elm-format-name
...
Fix elm-format fixer name
2018-03-10 10:51:27 +00:00
Christian-Gibbons
b586eba4a4
Handle flawfinder severity level ( #1400 )
...
* Handle flawfinder severity level
* Reverted code allowing Flawfinder to piggyback off of gcc's format handler
* Gave Flawfinder its own format handler and made requested changes.
2018-03-10 10:44:55 +00:00
Fernando Mendes
6320ce6674
Allow passing options to mix_format
2018-03-08 15:29:10 +00:00
Gordon Fontenot
9258c73680
Fix elm-format fixer name
...
Support for elm-format as a fixer has existed since Sept 2017, but it's not
easy to discover because the fixer was named `format`. This breaks the
convention of the other fixers that use the full name in the registry.
I've gone ahead and fixed this discrepancy, but I left the existing registry
entry in place. We should move people towards using `elm-format` as the fixer
name, but I'd hate to break existing setups.
2018-03-08 09:19:12 -06:00
x x
1995afa855
Add new FAQ item for g:ale_list_window_size
2018-03-08 12:17:29 +02:00
w0rp
0a0535546f
Add a command for stopping all LSP clients
2018-03-06 10:23:55 +00:00
w0rp
b7363bef7d
Update the licence year.
2018-03-04 11:50:39 +00:00
Ty-Lucas Kelley
32091fb8ad
add test for markdownlint hander
2018-03-03 19:32:32 -05:00
Ty-Lucas Kelley
c572cfd2d2
add vim README.md to readme
2018-03-03 19:17:31 -05:00
Ty-Lucas Kelley
2a575ca551
add basic support for markdownlint
2018-03-03 19:16:41 -05:00
w0rp
193a4b9336
Satisfy my own checks
2018-03-03 18:13:57 +00:00
w0rp
f476c28b29
Add deprecation warnings for old NeoVim versions and old functions
2018-03-03 17:50:09 +00:00
w0rp
08cfd5f90c
Close #1379 - Increment b:ale_linted when a buffer is checked
2018-03-03 16:22:56 +00:00
w0rp
565ffa0dc5
Use the configured mdl executable, escape it in the command, and add test for it
2018-03-03 13:27:19 +00:00
w0rp
857723e7d5
Merge pull request #1377 from joshleeb/markdown-mdl-options
...
Add options for markdown_mdl linter
2018-03-03 13:16:27 +00:00
Olaf Alders
8a77290553
[WIP] Begin to distinguish between Perl warnings and errors ( #933 )
...
* If a Perl script compiles, there are only warnings and no errors
* Let the first Perl error or warning win.
Take the following example:
***
sub foo {
my $thing;
***
This might have the following messages when we compile it:
Missing right curly or square bracket at warning.pl line 7, at end of
line
syntax error at warning.pl line 7, at EOF
warning.pl had compilation errors.
With the current behaviour, we just get a "syntax error" message, which
isn't all that helpful. With this patch we get "Missing right curly or
square bracket".
* Fix variable scope and pattern matching syntax
* Use named variable to enhance clarity when matching Perl output
* Add more tests for Perl linter
* Remove unnecessary parens
* Simplify check for pattern match
2018-03-02 21:04:52 +00:00
w0rp
b6bf6ecdbc
Try to fix it again
2018-03-02 20:57:55 +00:00
w0rp
540952ca8e
Try to fix a test which is failing on Windows
2018-03-02 20:47:21 +00:00
w0rp
ad7ffe2875
Merge pull request #1390 from jdeniau/jd-feat-phpCsFixer
...
add php-cs-fixer to list of fixers
2018-03-02 20:40:31 +00:00
w0rp
2c2c7ceb1d
Fix #1384 - Handle warnings and suggestions for tsserver
2018-03-02 20:33:45 +00:00
Andrew Crites
acbe527e15
Option to open lists vertically ( #1381 )
...
* Add configuration option to open lists vertically
* Add tests, clean up vertical list config
* Vertical list option cleanup
* Use is# for tests
* Order properties in documentation alphabetically
2018-03-02 20:22:29 +00:00
w0rp
2096562899
Make updating linter results slightly faster when the list is empty
2018-03-02 12:10:27 +00:00
Julien Deniau
fbbb8c17d9
add php-cs-fixer to list of fixers
2018-03-01 15:48:47 +01:00
w0rp
1d0690f6d7
Merge pull request #1387 from oalders/oalders-perl-docs
...
Explain in more detail why perl checks are disabled by default
2018-02-28 15:42:04 +00:00
Olaf Alders
aea5de282e
Explain in more detail why perl checks are disabled by default
2018-02-28 10:26:44 -05:00
w0rp
f64db199f1
Fix a typo in the documentation
2018-02-26 17:04:54 +00:00
Josh Leeb-du Toit
7e20d9c639
Add options for markdown_mdl linter
2018-02-26 20:10:55 +11:00
w0rp
7ec684206c
Merge pull request #1376 from zchee/doc-cpp-duplicate-tag
...
doc/cpp: fix duplicate ale_cpp_flawfinder_executable help tag
2018-02-25 15:09:52 +00:00
Koichi Shiraishi
b15706d9a9
doc/cpp: fix duplicate ale_cpp_flawfinder_executable help tag
...
both of 'g:' prefix.
2018-02-26 00:04:56 +09:00
w0rp
d86371cd29
Merge pull request #1375 from zchee/doc-c-duplicate-tag
...
doc/c: fix duplicate ale_c_flawfinder_executable help tag
2018-02-25 14:39:49 +00:00
Koichi Shiraishi
cfa3e6a924
doc/c: fix duplicate ale_c_flawfinder_executable help tag
2018-02-25 23:31:38 +09:00
Christian-Gibbons
82f8a04e18
New linter: Flawfinder ( #1361 )
...
* Flawfinder support added for C and C++
A minor modification to gcc handler was made to support flawfinder's
single-line output format that does not have a space following the
colon denoting the warning level. gcc handler still passes its
Vader tests after this modification.
* Documentation fixes
* Revert documentation regression
* Added Flawfinder to table of contents
* Removed trailing whitespace
* Follow ALE conventions better
Added additional documentation and Vader tests
2018-02-25 14:11:04 +00:00
w0rp
478a2883a6
#1363 Make ale#engine#IsCheckingBuffer part of the public API
2018-02-25 12:57:54 +00:00
w0rp
0ddf16194d
Fix #1306 - Tell users how to automatically close the loclist window in the documentation
2018-02-25 12:43:20 +00:00
w0rp
0292e5a458
Merge pull request #1371 from idbrii/fix-unity-example
...
Add Unity project path to Unity example in docs
2018-02-25 12:22:58 +00:00
w0rp
b6ccd60dd0
Merge pull request #1351 from svanharmelen/f-issue-936
...
This fixes issue #936 by linting the whole package
2018-02-25 11:54:05 +00:00
w0rp
b5209d31e8
go vet can only check files now
2018-02-25 11:53:36 +00:00
John Eikenberry
4941bd8d0e
Fix #1358 , fix #1369 - Lint the package on save for go vet instead
2018-02-25 11:39:45 +00:00
David Briscoe
8b304f77b7
Add Unity project path to Unity example in docs
...
For Ale to recognize the symbols in your project, you need to point it
at where Unity builds your assemblies. Add this path to the example.
2018-02-23 14:52:25 -08:00
Sander van Harmelen
ab5257c344
This fixes issue #936 by linting the whole package
2018-02-20 16:11:35 +01:00
w0rp
89f8d3e456
Fix #1336 - Print a friendly message when using invalid function names for fixers
2018-02-18 10:13:30 +00:00
w0rp
5915a0ee39
Escape the ponyc executable
2018-02-18 10:06:40 +00:00
w0rp
608b6dafd4
Merge pull request #1343 from kevinkjt2000/ponyc
...
Add Support for Ponylang
2018-02-18 09:48:35 +00:00
w0rp
5972b97223
#476 Make F401 a warning and E112 a syntax error
2018-02-18 09:44:04 +00:00
w0rp
fcb7932d7d
Merge pull request #1345 from dfalling/fix-reason-help-title
...
Fix Reason help title in README.md
2018-02-13 18:51:33 +00:00
Dennis Falling
f979da54d4
Fix reason help reference
...
`ale-integration-reason-merlin` doesn't exist, changed to
`ale-reasonml-ols`
2018-02-12 22:52:39 -05:00
Kevin Tindall
716b46e10d
functional pony linter
2018-02-10 13:17:53 -06:00
w0rp
a3329ef3fc
Merge pull request #1333 from fennerm/master
...
Fix the lintr::lint_package command
2018-02-06 09:46:22 +00:00
Fenner Macrae
c2ab885384
Removed trailing whitespaces
2018-02-05 11:33:23 -08:00
Fenner Macrae
5dc884b24d
Fixed lintr::lint_package command
2018-02-05 09:54:15 -08:00
w0rp
91b7a75afb
Merge pull request #1332 from fennerm/master
...
Add lint_package support to lintr
2018-02-05 09:15:48 +00:00
Fenner Macrae
dda132c1a2
Add lint_package support to lintr
2018-02-04 10:57:52 -08:00
w0rp
33b3331b04
#1206 Add support for setting options for gobuild, and escape paths better
2018-02-04 13:55:09 +00:00
w0rp
0f822b063c
Fix #1330 - Find isort configs better by changing the working directory
2018-02-04 13:16:44 +00:00
w0rp
31e0f48d62
Merge pull request #1326 from michaelquinn32/patch-1
...
Call lintr library before linting
2018-02-04 11:38:05 +00:00
w0rp
7c4decf804
Merge pull request #1329 from blyoa/prettier-vue
...
Add prettier fixer support to vue
2018-02-02 13:23:42 +00:00
Michael Quinn
b13f290390
Update formatting and tests.
2018-01-31 18:06:35 -08:00
blyoa
23db293bdf
Add prettier fixer support to vue
2018-02-01 02:30:02 +09:00
w0rp
52fe924a13
Merge pull request #1308 from lorenzo/patch-1
...
Improving hadolint checker
2018-01-30 16:04:44 +00:00
Michael Quinn
bb095df25e
Call lintr library before linting
...
This solves namespace issues related to the objects used to set linting options.
2018-01-29 20:18:14 -08:00
Jose Lorenzo Rodriguez
4df87eaadd
Added tests for hadolint
2018-01-29 22:21:50 +01:00
w0rp
c589e3d57d
Merge pull request #1322 from datanoise/master
...
fixed rust errors parsing
2018-01-29 13:54:50 +00:00
Kent Sibilev
863fb60695
updated rust handler test case
2018-01-28 18:35:46 -05:00
w0rp
1832240cff
Merge pull request #1321 from butlerx/feature/po
...
add po support with proselint, writegood, msgfmt and alex
2018-01-28 12:49:18 +00:00
w0rp
65fc5d11c7
Fix #1038 - Automatically detect and use htmlhint configuration files
2018-01-28 12:44:42 +00:00
w0rp
7ef55a8615
#1303 jq isn't a Node program
2018-01-28 11:51:20 +00:00
Kent Sibilev
ea60fcea39
fixed rust errors parsing
...
use correct column values instead of absolute byte positions
2018-01-27 16:15:29 -05:00
butlerx
9dad25778f
add po support with proselint, writegood, msgfmt and alex
2018-01-27 12:17:15 +00:00
w0rp
bc63325881
Merge pull request #1311 from butlerx/update/prettier-md
...
add prettier support for graphql
2018-01-26 17:30:00 +00:00
w0rp
34e6368610
#1316 Mention that the quickfix list option shouldn't be used with :cfdo
2018-01-25 14:54:39 +00:00
w0rp
dffc162dd6
Merge pull request #1313 from rhysd/fixjson-local-install
...
fixjson: Add support for local installation
2018-01-25 10:29:51 +00:00
rhysd
ef898fa303
fixjson: Add support for local installation
2018-01-25 07:21:25 +09:00
butlerx
be47e37bbc
add prettier support for graphql
2018-01-24 15:25:25 +00:00
w0rp
9849c79ff7
Merge pull request #1157 from elebow/eruby-add-erubi-linter
...
[eruby] Add erubi linter
2018-01-24 10:40:57 +00:00
rhysd
b28a6ddbe4
Support fixing JSON files with fixjson
2018-01-24 10:36:31 +00:00
Rafael Rinaldi
d562d53102
Add jq as a JSON fixer
2018-01-24 10:12:29 +00:00
José Lorenzo Rodríguez
dd413a4732
Improving hadolint checker
...
- Displaying dockerfile parse errors instead of silently failing
- Adding error detail with link to the docs
2018-01-23 22:46:59 +01:00
Fran Casas
038789f0ed
Add Elixir linter for dialyxir ( #1257 )
...
* Add Elixir linter for dialyxir
* Update doc/ale.txt with dialyxir
* Keep elixir tools alphabetically ordered in README
* Add a missing entry for dialyxir to the main documentation file.
2018-01-22 12:21:07 +00:00
w0rp
acf9c92ab4
Merge pull request #1301 from dezza/patch-2
...
Fix #1246 - Newer ESLint outputs to stderr
2018-01-20 14:41:09 +00:00
Christoffer Aasted
7cd25181b2
Fix #1246 - Newer ESLint outputs to stderr
...
I think Vader test still applies for this one.
2018-01-20 03:20:13 +01:00
w0rp
1d3b542031
Merge pull request #1266 from sharils/patch-1
...
Work around hot-reloading issue
2018-01-19 17:18:49 +00:00
w0rp
8675bfc4ab
Merge pull request #1287 from rhysd/prettier-markdown
...
Enable prettier to format markdown files
2018-01-19 17:16:00 +00:00
w0rp
7b50b3ec82
Merge pull request #1272 from Codezerker/master
...
Add a luac linter for Lua
2018-01-19 17:10:29 +00:00
w0rp
a5ec4143d2
Fix the didSave tests so they work in NeoVim 0.1.7, and do not send the message for tsserver
2018-01-19 16:50:04 +00:00
Rafael Lerm
042dec059a
Send didSave message to LSP-based linters ( #1295 )
...
* Also send didSave to LSP linters.
* Add tests for messages sent to LSP linters.
2018-01-19 16:40:55 +00:00
w0rp
eddda2f8b5
Fix a command wrapper test on Windows
2018-01-17 18:11:20 +00:00
w0rp
045c92ed65
Fix #1298 - Escape commands for PowerShell
2018-01-17 18:08:17 +00:00
Eddie Lebow
aa29c91cdc
[eruby] Add erubi linter
...
Erubi is yet another parser for eRuby. This is the default parser in
Rails as of version 5.1. It supports some additional syntax with similar
behavior to Rails' extensions to the language, though incompatible.
Rails currently still recommends their own syntax, so GetCommand still
has to do the translation introduced in
https://github.com/w0rp/ale/pull/1114 .
Erubi does not supply an executable—It is intended to be invoked only
from within a Ruby program. In this case, a one-liner on the command
line.
2018-01-16 00:38:35 -05:00
rhysd
13c839cf16
Enable prettier to format markdown files
2018-01-15 11:28:56 +09:00
w0rp
f6af75aac4
Merge pull request #1268 from bbannier/master
...
Make it possible to inject flags of protoc invocation.
2018-01-12 20:43:43 +00:00
w0rp
e18aba1d7e
Merge pull request #1270 from kevinkjt2000/test-ghc-options
...
test for ghc options
2018-01-12 12:11:33 +00:00
w0rp
5005871644
Merge pull request #1256 from jonatanolofsson/master
...
Fix #1255 : Move extra clang-check args to before user options
2018-01-12 12:09:30 +00:00
w0rp
65fa901ef0
Merge pull request #1275 from ipetkov/cargo-features
...
Teach ALE about cargo features and add some configuration options
2018-01-12 12:04:26 +00:00
w0rp
ba1540a545
Show only the master status for AppVeyor
2018-01-12 08:55:31 +00:00
Ivan Petkov
2ef45ab745
Teach ALE about cargo features and add some configuration options
...
* When working on rust/cargo projects of varying sizes, it may be useful
to either build all possible features (i.e. lint all possible
conditionally compiled code), or even turn off other features for a
quicker edit-lint cycle (e.g. for large projects with large build times)
* Added a g:ale_rust_cargo_default_feature_behavior flag for instructing
cargo to not build any features at all (via `--no-default-features`),
building default features (via no extra flags), or building all possible
features (via `--all-features`)
* Also added a g:ale_rust_cargo_include_features flag for including
arbitrary features to be checked by cargo. When coupled with
g:ale_rust_cargo_default_feature_behavior this allows for full
customization of what features are checked and which ones are ignored
2018-01-11 19:24:44 -08:00
w0rp
adba2bd919
Allow syntax errors for mypy to be ignored
2018-01-11 16:43:10 +00:00
sharils
29acafdaf4
Work around hot-reloading issue
...
See https://github.com/phoenixframework/phoenix/issues/1165 for more detail
2018-01-10 20:53:02 +08:00
jiangzhi.xie
547716eabb
Fix the doc style for ale-lua
2018-01-08 23:39:04 +08:00
jiangzhi.xie
112fcf7dd5
Add a luac linter for Lua
2018-01-08 23:32:02 +08:00
w0rp
68d4a2216c
Fix a syntax error in a test
2018-01-08 13:28:01 +00:00
Kevin Tindall
ff388bbcd5
test for ghc options
2018-01-07 11:41:06 -06:00
Benjamin Bannier
b5a5cdf920
Make it possible to inject flags of protoc invocation.
...
Typically proto files depend on and make use of proto definitions in
other files. When invoking protoc user can supply paths to inspect for
dependencies.
This patch makes it possible to configure flags passed to protoc. This
makes it e.g., possible to change include paths of the linter's protoc
invocation.
2018-01-07 17:56:56 +01:00
Benjamin Bannier
eecbacb742
Removed unneeded SetDirectory call in proto handler test.
...
The test already handled arbitrary paths reasonably well, but setting
the directory interfered via leakage with others tests for some reason.
This patch removes the call to `SetDirectory` in the fixture setup and
the subsequent cleanup in the teardown as they are not required.
2018-01-07 17:54:21 +01:00
w0rp
f1747901cc
Merge pull request #1262 from rhysd/avoid-old-tidy
...
html: Avoid old tidy on macOS
2018-01-07 16:02:49 +00:00
Jelte Fennema
b6d1c41925
Go: Add gotype support ( #1099 )
2018-01-07 12:11:01 +00:00
w0rp
c9d66b861b
Show more ALE variables in ALEInfo
2018-01-07 12:01:20 +00:00
rhysd
7a1a534305
Explain /usr/bin/tidy is ignored on macOS and how to install the latest tidy
2018-01-06 20:00:36 +09:00
rhysd
401b964e9c
html: Avoid old tidy on macOS
...
On macOS, Apple's command line toolchain installs very old `tidy`
command (It was released on 31 Oct 2006). It does not consider new specs
such as HTML5 so we should avoid it.
2018-01-03 01:50:31 +09:00
Jonatan Olofsson
ff8d4c5286
Fix #1255 : Move extra clang-check args to before user options
2018-01-02 16:09:38 +01:00
w0rp
5285b0b332
Merge pull request #1260 from kevinkjt2000/add-ghc-options
...
haskell_ghc_options are now added to the ghc command
2018-01-02 14:05:40 +00:00
w0rp
e98a3899da
Merge pull request #1254 from bkhl/master
...
Don't use temporary file for rustfmt fixer
2018-01-02 13:36:20 +00:00
w0rp
80342b119a
Merge pull request #1252 from nthapaliya/fish-shell-linter
...
Fish shell linter
2018-01-02 13:32:59 +00:00
w0rp
d9a3722e06
Merge branch 'add-fountain-proselint-support'
2018-01-02 13:23:00 +00:00
w0rp
1e34210f9a
Fix some bad indentation
2018-01-02 13:22:40 +00:00
Kevin Tindall
681c35169f
add ghc entry to the ToC
2018-01-01 22:33:43 -06:00
Kevin Tindall
d8f71c46da
haskell_ghc_options are now added to the ghc command
2018-01-01 22:21:21 -06:00
Björn Lindström
b0eaddadc9
Don't use temporary file for rustfmt fixer
...
rustfmt normally acts on a file in place, and applies configuration
from rustfmt.toml files according to the path of the file.
Using a temporary file for rustfmt breaks this functionality, so
removing the '%t' from the rustfmt command.
2017-12-27 23:12:57 +07:00
Niraj Thapaliya
3b0c67e42c
Add handler test
2017-12-26 14:10:28 -06:00
Niraj Thapaliya
c90b45c559
Edit README and help
2017-12-26 14:10:28 -06:00
Niraj Thapaliya
e2d3dca486
Support for fish file linting
2017-12-26 12:25:17 -06:00
w0rp
c165c7c5d1
Fix #1251 - Handle an empty list in the line callback when NeoVim crashes
2017-12-26 18:15:59 +00:00
w0rp
48cae6afc4
Merge pull request #1250 from yaryabu/patch-1
...
Fix c# documentation variable typo
2017-12-26 18:09:38 +00:00
Yaroslav Ryabukha
0548cf9177
Fix c# documentation variable typo
2017-12-25 16:40:25 +03:00
Jansen Mitchell
4d4d2d8122
Add four spaces, not tabs.
2017-12-20 22:53:03 -06:00
Jansen Mitchell
2c9c5dec1e
Add Fountain with proselint info to ale.txt. Add Fountain online documentation.
2017-12-20 12:39:10 -06:00
w0rp
e43e7065da
Fix #1115 - Add support for wrapping all commands with an option
2017-12-20 12:20:38 +00:00
w0rp
2495744fc3
Fix the gitlint test
2017-12-20 10:49:23 +00:00
w0rp
87ffc9b55c
Make the error codes configurable for gitlint
2017-12-20 10:46:08 +00:00
Nick Diego Yamane
d4b43d23f4
Add support for linting git commit message files ( #1233 )
2017-12-20 10:10:07 +00:00
Jansen Mitchell
537d162ee7
Add Fountain and linter support information to README.
2017-12-19 21:57:25 -06:00
Jansen Mitchell
4b56b91ac8
Add support for Fountain with proselint.
2017-12-19 20:27:12 -06:00