Commit Graph

749 Commits

Author SHA1 Message Date
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
Devon Meunier 4025030d86 Solargraph stdio 2018-09-18 11:20:29 -04: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
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
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 43d7e8fde9 #1889 Add support for automatically previewing messages based on the cursor position 2018-09-14 12:42:26 +01:00
Ryan Rosenblum 9e09b7ca35 Update all Ruby linters to work consistently with bundler 2018-09-12 16:53:28 -04:00
w0rp 99e9417ef9 Add support for Julia Language Server (#1894) 2018-09-10 17:24:04 +01: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
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
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
Sascha Grunert 7b62a15739 Add golangci-lint (#1890) 2018-09-06 20:31:12 +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
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
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
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
Horacio Sanson 1980245b94 Add solargraph LSP linter. 2018-08-27 10:58:17 +09:00
Horacio Sanson 228aee71a5 Add java lsp linter to documentation 2018-08-26 22:11:04 +09: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
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
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
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
Filipe Kiss 935a132d8f 📚 Add docs for html stylelint 2018-08-22 19:00:42 -03:00
matthias 02fdfcda58 Added phpcs options support as described in #257 2018-08-16 16:44:41 +02:00