summaryrefslogtreecommitdiff
path: root/ale_linters
AgeCommit message (Collapse)Author
2018-10-10FIX: use mix from the project root directory (#1954)Matteo Centenaro
* 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-02Fix PMD not working with classes without packageDiego Lemos
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-09-28Set global vars in hlint linter file.Evan Rutledge Borden
2018-09-28Add better support for Haskell stack compiler tools (#1851)Evan Borden
* 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-28Merge pull request #1950 from yejingchen/cclsw0rp
Add ccls support for C/C++/ObjC
2018-09-28Move ccls functions to autoload/ale/handlerYe Jingchen
Tests are kept as-is.
2018-09-27Merge pull request #1917 from jpsouzasilva/fix-stylelint-scssw0rp
Support options when using Stylelint with SCSS
2018-09-27Add psalm linter for PHP (#1893)Richard Marmorstein
2018-09-26Add ccls testsYe Jingchen
2018-09-26Merge pull request #1908 from KtorZ/masterw0rp
Allow extra options to be passed to haskell:hlint
2018-09-26Add ccls support for C/C++/ObjCYe Jingchen
2018-09-19Merge pull request #1719 from elebow/auto-pipenv-option-for-python-lintersw0rp
Add python_[linter]_auto_pipenv options for python linters (fixes #1656)
2018-09-19Add fixer for Go modules (#1873)Martin Tournoij
* Add fixer for Go modules
2018-09-19Support both old (<0.7) and new Julia versionsDaniel Wennberg
Closes #1931
2018-09-18Solargraph stdioDevon Meunier
2018-09-18Define custom vim global variables to pass options to hlintKtorZ
2018-09-17Merge pull request #1927 from jparise/thrift-includes-defaultw0rp
thrift: default thrift_thrift_includes to ['.']
2018-09-17Fix the Julia languagserver linter for Julia 0.7w0rp
2018-09-16thrift: default thrift_thrift_includes to ['.']Jon Parise
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-15Add `python_auto_pipenv` config var for all python linters.Eddie Lebow
This allows a user to set one variable instead of eight.
2018-09-15Add python_[linter]_auto_pipenv options for python linters (fixes #1656)Eddie Lebow
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-14Fix bug with RuboCop linter when options are not setRyan Rosenblum
2018-09-14Merge pull request #1850 from rrosenblum/ruby_lintersw0rp
Update all Ruby linters to work consistently with bundler
2018-09-14Return only the unescaped executables from executable callbacksw0rp
2018-09-14Change PCRE escape to simple escapeSascha Grunert
2018-09-13Support options when using Stylelint with SCSSjpsouzasilva
Complement missing documentation
2018-09-12Update all Ruby linters to work consistently with bundlerRyan Rosenblum
2018-09-10Add support for Julia Language Server (#1894)w0rp
2018-09-10Fixed NASM linter from outputting junk fileDaniel Jones
2018-09-09Escape julia command + reorder table in READMEBartolomeo Stellato
2018-09-08Fix other warningsBartolomeo Stellato
2018-09-07Fix julia escaping + minor editsBartolomeo Stellato
2018-09-07Added testsBartolomeo Stellato
2018-09-07Added various files to integrate julia. Still not working.Bartolomeo Stellato
2018-09-06Add golangci-lint (#1890)Sascha Grunert
2018-09-06#1891 Fix the go-langserver testsw0rp
2018-09-06Merge pull request #1870 from hsanson/1822-add-go-langserver-supportw0rp
Fix #1822 - support go-langserver lsp.
2018-09-06Fix #1866 - Handle empty output from Perlw0rp
2018-09-06Fix #1822 - support go-langserver lsp.Horacio Sanson
2018-09-04Improve ALE project style checkingw0rp
* 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-04Merge pull request #1871 from Ophirr33/masterw0rp
added sbtserver linter
2018-09-04Fix the dart language server command and cover it with testsw0rp
2018-09-03Replace removed functionJacob Mischka
Replaces removed `ale_linters#dart#language_server#GetExecutable`. Fixes #1881
2018-09-03Merge pull request #1869 from Steap/feature/gitlint-ignore-whitespacew0rp
gitcommit: fully implement warn_about_trailing_whitespace
2018-09-01Changed sbtserver to just work off of the address variableTy Coghlan
2018-08-30added sbtserver linterTy Coghlan
2018-08-30Started adding julia languageserverBartolomeo Stellato
2018-08-30gitcommit: fully implement warn_about_trailing_whitespaceCyril Roelandt
Fixes #1761
2018-08-29Merge pull request #1865 from TheLocehiliosan/puppet-optionsw0rp
Support options for puppet parser validate
2018-08-29Always use --color=false when validating puppetTim Byrne
Colorized output is difficult for ALE to parse.