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
John Eikenberry
4941bd8d0e
Fix #1358 , fix #1369 - Lint the package on save for go vet instead
2018-02-25 11:39:45 +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
Kevin Tindall
716b46e10d
functional pony linter
2018-02-10 13:17:53 -06:00
Kent Sibilev
863fb60695
updated rust handler test case
2018-01-28 18:35:46 -05: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
adba2bd919
Allow syntax errors for mypy to be ignored
2018-01-11 16:43:10 +00:00
jiangzhi.xie
112fcf7dd5
Add a luac linter for Lua
2018-01-08 23:32:02 +08:00
Niraj Thapaliya
3b0c67e42c
Add handler test
2017-12-26 14:10:28 -06: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
w0rp
1568bf8128
Fix the mscs tests on Windows, and use the improved Simplify for all tests instead.
2017-12-19 18:23:09 +00:00
w0rp
cc8e5502c8
Fix #1240 - Parse line and column numbers for fatal embertemplatelint errors
2017-12-19 17:42:51 +00:00
w0rp
0ad2547997
Fix mcsc paths and escaping for Windows
2017-12-19 17:34:34 +00:00
Johannes Wienke
79aaec5a99
Missing warning level 'suggestion' for vale
...
Vale can also, optionally, raise suggestions. These weren't covered yet.
2017-12-18 17:10:57 +01:00
w0rp
fdaac9bd78
Fix #1210 - Fix a Windows path issue which broke TSLint
2017-12-18 13:27:59 +00:00
w0rp
31241e9ed8
Get the TSLint tempname test running on Windows
2017-12-18 12:01:05 +00:00
w0rp
fdde8af894
Merge pull request #1232 from languitar/vale-json
...
Use JSON output with vale
2017-12-18 10:11:57 +00:00
Nick Diego Yamane
ad1aee0b89
Fix typos in flake8 test messages
...
Signed-off-by: Nick Diego Yamane <nick.diego@gmail.com>
2017-12-17 16:45:57 -04:00
Johannes Wienke
96b90b45db
Use JSON output with vale
...
Switches all vale instances to JSON output and provides an appropriate
handler for that. Without JSON, no end_col is provided and text
highlighting only catches the first character of every result.
2017-12-17 16:49:57 +01:00
w0rp
c4956657dc
Merge pull request #1220 from languitar/linter-alex
...
Add a linter for alex
2017-12-17 13:11:49 +00:00
Stephen Rathbone
78d1f5f5df
Fix PHP linter to support PHP 7.2 lint output
2017-12-13 21:23:18 +00:00
Johannes Wienke
0d046f5f01
Add a vader test for the message handler
2017-12-13 14:37:49 +01:00
w0rp
d2a6d9a915
Fix #1216 - Suppress trailing whitespace warings for ansible-lint when the option is set
2017-12-13 11:14:31 +00:00
w0rp
7a88a3605c
Disable a test on Windows for now, because Windows is stupid
2017-12-10 10:12:26 +00:00
w0rp
9152effa9f
Get the new test to pass on Windows
2017-12-10 10:07:04 +00:00
w0rp
cebe7c3918
Fix #1210 - Do not report this file as a temporary file in the quickfix list for TSLint
2017-12-10 09:58:33 +00:00
w0rp
c6fc9cdb7b
Merge pull request #1192 from fvictorio/add-solhint-support
...
Add solhint support
2017-12-07 18:50:33 +00:00
Franco Victorio
85e0bd3314
Extract error code from message
2017-12-05 16:02:15 -03:00
Jeff Willette
e2a8f759d8
Added option for gometalinter
to lint package ( #1156 )
...
* Added option for `gometalinter` to lint package
* added tests for the `gometalinter` command
* changed gometalinter commands to use BufferCdString
2017-12-04 18:42:36 +00:00
Franco Victorio
57e1b03435
Add test for solhint handler
2017-12-04 14:23:46 -03:00
Dave Wongillies
2bd966c5cc
Puppet: allow for when parser doesn't supply column for errors ( #1182 )
...
* puppet: add test for puppet parser validate
* puppet: handle where parser validate doesn't supply the column
* puppet: add test for when parser validate doesn't supply column
* Fix puppet regex to handle Windows paths
2017-12-02 12:29:17 +00:00
Carlos Coêlho
daee4a4722
Add prospector for checking Python code ( #1183 )
2017-12-01 17:04:30 +00:00
w0rp
a43ada93e4
Allow warnings about trailing whitespace to be disabled for pycodestyle, and cover the flake8 code with tests
2017-11-28 10:12:49 +00:00
w0rp
0ab689db0a
Allow warnings about trailing blank lines to be hidden for flake8 and pycodestyle
2017-11-28 10:08:34 +00:00
w0rp
ae7cd2c090
Fix #918 - Save prettier details for Haskell linters
2017-11-26 18:24:10 +00:00
w0rp
ac7f69063d
#1151 - Overhaul the foodcritic linter for checking files on disk
2017-11-21 13:38:33 +00:00
rhysd
d465b71362
redpen: use 'code' key to show validator
...
instead of embedding it into text
2017-11-21 15:49:04 +09:00
Jeff Willette
b9f02ffb27
Added filename key for go build
linter
...
- Re: f224ce8a37
- The issues that prompted the above commit which reverted changes made to `go build` and
`gometalinter` seemed to suggest that the main issue was with gometalinter and that
changes should be put into different commits so they are independent of each other
- This commit reinstates the changes to the `go build` linter which seem to be uncontested
and it also seems absolutely necessary to show errors from all files in the package which
may have caused a build failure.
2017-11-20 23:50:14 +09:00
Shogo NAMEKI
f20e5a4cf0
Add drafter
for checking API Blueprint files ( #1152 )
2017-11-20 10:57:13 +00:00
w0rp
f224ce8a37
Revert "Show problems from other files for gobuild and gometalinter"
...
This reverts commit e721f851b4
.
2017-11-20 10:43:45 +00:00
w0rp
62904d39ee
#852 - Capture error codes for tflint
2017-11-19 13:37:56 +00:00
w0rp
fa7f0e2b85
#852 - Capture error codes for swiftlint
2017-11-19 13:33:20 +00:00
w0rp
b16c82f2f1
#852 - Capture error codes for swaglint
2017-11-19 12:46:06 +00:00
w0rp
d7a60ade77
#852 - Capture error codes for stylelint
2017-11-19 12:30:20 +00:00
w0rp
01b2971d04
#852 - Capture error codes for slim-lint
2017-11-19 01:08:20 +00:00
w0rp
7123f7236b
#852 - Capture error codes for reek
2017-11-19 00:54:09 +00:00