Commit Graph

4243 Commits

Author SHA1 Message Date
w0rp 151152b446 #81: Close the Vint format quote. 2016-10-10 20:21:12 +01:00
w0rp e9ad21b679 Fix cursor bugs. 2016-10-10 19:56:05 +01:00
Bjorn Neergaard 7f0ce89d2b First pass at optimizing ale to autoload (#80)
* First pass at optimizing ale to autoload

First off, the structure/function names should be revised a bit,
but I will wait for @w0rp's input before unifying the naming style.
Second off, the docs probably need some more work, I just did some
simple find-and-replace work.

With that said, this pull brings major performance gains for ale. On my
slowest system, fully loading ale and all its code takes around 150ms.

I have moved all of ale's autoload-able code to autoload/, and in
addition, implemented lazy-loading of linters. This brings load time on
that same system down to 5ms.

The only downside of lazy loading is that `g:ale_linters` cannot be
changed at runtime; however, it also speeds up performance at runtime by
simplfying the logic greatly.

Please let me know what you think!

Closes #59

* Address Travis/Vint errors

For some reason, ale isn't running vint for me...

* Incorporate feedback, make fixes

Lazy-loading logic is much improved.

* Add header comments; remove incorrect workaround

* Remove unneeded plugin guards

* Fix lazy-loading linter logic

Set the wrong variable....

* Fix capitialization
2016-10-10 19:51:29 +01:00
w0rp 0680f875fe Add an option for configuring the path for JSHint. 2016-10-10 19:07:01 +01:00
w0rp 6f1ec7306d REVERT "#39 Use getbufline() for MacVim GUI too."
This reverts commit 3083d05afd.
2016-10-10 18:56:39 +01:00
w0rp 0708531a13 Merge pull request #79 from KabbAmine/fix-typos
Fix typos in README
2016-10-10 16:27:28 +01:00
w0rp 731f2fafb6 Merge pull request #77 from KabbAmine/minor-fixes
Minor fixes:
2016-10-10 16:26:58 +01:00
Kabbaj Amine 4149971c08 Minor fixes:
* Ensure that php linter pattern does not include spaces:
    PHP can return errors with extra spaces like the following:
    `PHP Parse error:  syntax error, unexpected end of file in t.php on line 4`

* Set option locally to buffer

* Rename noErrors variable according to the project's naming convention

* Make the jsonlint pattern a little better
2016-10-10 18:05:18 +03:00
Kabbaj Amine 7fe0ab27bd Fix typos in README 2016-10-10 17:53:09 +03:00
w0rp 4c9aa1c638 #74 - Document g:ale_buffer_loclist_map 2016-10-10 13:25:37 +01:00
w0rp 7acfa72c0d Fix #75 - Explain that you need to update NeoVim in the plugin itself. 2016-10-10 13:16:32 +01:00
w0rp d022a867b4 Correct some grammar in the docs. 2016-10-10 12:58:55 +01:00
w0rp 56894b432e Merge remote-tracking branch 'origin/echo-string-format' 2016-10-10 12:57:27 +01:00
w0rp 3083d05afd #39 Use getbufline() for MacVim GUI too. 2016-10-10 12:54:39 +01:00
KabbAmine e4b3f579fa Echo string format (#76)
* Implement an option to configure the echoed message, #48

Via `g:ale_echo_msg_format` where:
- `%s` is the error message itself
- `%linter%` is the linter name
- `%severity` is the severity type

e.g
let g:ale_echo_msg_fomat = '[%linter%] [%severity%] %s'

* Add new options for defining the string used for errors in echoed
message

`g:ale_echo_msg_error_str` and `g:ale_echo_msg_warning_str`

* Change text output of some linters

Now that the echoed message can be customized, no need to add the type
to the text variable.

* Update README & documentation file

* Fix some typos
* Sort the table of options alphabetically (except echo_msg_x_str options)

* Added echo warning str option to the doc
2016-10-10 12:53:54 +01:00
w0rp f60df660f8 #48 Store the linter name in the loclist objects for later use. 2016-10-09 21:44:50 +01:00
w0rp 8d390384f1 Correct issues with some errors appearing at line 0, not 1. 2016-10-09 21:40:33 +01:00
w0rp 9902eadd33 Up-indent types and defaults, and align markers 2016-10-09 21:23:34 +01:00
w0rp e0036b2f4c Make spacing and indentation consistent in the documentation, and make the docs easier to read. 2016-10-09 21:20:21 +01:00
Marc Delage bc937639d0 Merge #66 with some amendments. 2016-10-09 21:14:22 +01:00
w0rp a1ecf9ecea Merge branch 'shell-detection' 2016-10-09 21:04:43 +01:00
w0rp dea8af1e57 Merge pull request #73 from KabbAmine/fix-69
Modify shell's pattern to handle locals other than english, fixes #69
2016-10-09 20:59:25 +01:00
Kabbaj Amine b2714da78b Modify shell's pattern to handle locals other than english, fixes #69 2016-10-09 22:57:11 +03:00
w0rp 07599d006c Document the default shell option 2016-10-09 20:45:51 +01:00
w0rp b5e4538699 #69 Change the default shell for shell linting 2016-10-09 20:39:14 +01:00
w0rp 2d32c31205 Handle arguments to shells in shebang lines too. 2016-10-09 19:41:27 +01:00
w0rp 9d52d968db #69 Improve shell detection 2016-10-09 19:32:01 +01:00
w0rp 731033588d Merge pull request #72 from SkySymbol/perl-support
Add support for perl and perlcritic
2016-10-09 16:38:17 +01:00
Vincent Lequertier d1cf208683 Add support for perl and perlcritic 2016-10-09 17:33:03 +02:00
w0rp 34241edcdb Fix a bug where echoing in modes like visual select caused some errors. 2016-10-09 12:50:51 +01:00
w0rp 8433dbcea9 Remove some trailing whitespace. 2016-10-09 12:50:51 +01:00
w0rp 3044200c8a Merge pull request #70 from mshr-h/add-comment-header
Add comment headers to verilog linters
2016-10-09 08:52:59 +01:00
mshr-h 85195b56df Add comment headers to verilog linters 2016-10-09 11:32:31 +09:00
w0rp 16496674c6 Wrap the badge into the title 2016-10-09 00:04:24 +01:00
w0rp 008066778e Add a Travis CI image to the README 2016-10-09 00:03:19 +01:00
w0rp 1ea0eda36c Correct all Vint warnings 2016-10-08 23:55:58 +01:00
w0rp 16a150b277 Make Travis cache pip 2016-10-08 23:53:08 +01:00
w0rp 2c63e0526b Add a Travis config for running vint. 2016-10-08 23:50:13 +01:00
w0rp f17a660888 Send the buffers to the linters using getbufline() on Windows, re issue #39 2016-10-08 21:52:41 +01:00
w0rp 20a28b7856 Handle there being no process for a job better in Vim 8, re issue #39. 2016-10-08 21:04:42 +01:00
w0rp 57b157bbae Use shortmess for shortening long echo lines instead. 2016-10-08 18:04:34 +01:00
w0rp af8df256c0 Don't store jobs themselves in maps in Vim 8, as per issue #39. 2016-10-08 17:27:59 +01:00
w0rp 1044c8af0a Merge pull request #68 from KabbAmine/linter-coffee
Add coffee linter
2016-10-08 16:56:03 +01:00
w0rp ecde32d9ec Merge pull request #67 from KabbAmine/linter-htmlhint
Add linter HTMLHint for html files
2016-10-08 16:55:14 +01:00
w0rp cb68741717 Merge pull request #65 from mshr-h/support-verilator
Support verilator for verilog
2016-10-08 16:54:06 +01:00
Kabbaj Amine 5eb7106359 Add coffee linter 2016-10-08 18:52:23 +03:00
w0rp 85d8d2f217 Use cmd /c for Windows commands to fix a bug with running linters on Windows. 2016-10-08 16:01:23 +01:00
Kabbaj Amine 49da6d409d Add linter HTMLHint for html files 2016-10-08 18:01:03 +03:00
mshr-h e59264023a Add verilator for verilog 2016-10-08 21:39:54 +09:00
Marc Delage edc5cedd8c Add cpp linter (#64)
* Add c gcc option in the doc

* Add missing tag for eslint option in the doc

* Correct typo in doc (' ' instead of '.')

* add cpp linter

* correct typo in doc

* add filetype information for c++
2016-10-08 12:42:36 +01:00