ale/test/handler
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
..
test_alex_handler.vader Add a vader test for the message handler 2017-12-13 14:37:49 +01:00
test_ansible_lint_handler.vader Fix #1216 - Suppress trailing whitespace warings for ansible-lint when the option is set 2017-12-13 11:14:31 +00:00
test_asm_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_brakeman_handler.vader Fix the mscs tests on Windows, and use the improved Simplify for all tests instead. 2017-12-19 18:23:09 +00:00
test_checkmake_handler.vader Modify vader tests for d585123 2017-11-16 01:01:59 +02:00
test_checkstyle_handler.vader #852 - Capture error codes for checkstyle 2017-11-18 18:29:12 +00:00
test_clang_handler.vader Handle multiple files localtion lists with gcc handler (#1034) 2017-10-25 22:29:36 +01:00
test_clojure_joker_handler.vader add joker handler for clojure 2017-11-15 22:23:46 +00:00
test_coffeelint_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_common_handlers.vader #852 - Capture error codes for csslint 2017-11-18 23:15:23 +00:00
test_cppcheck_handler.vader Make every test set filenames and switch directories in the same way, and fix some missing escaping for the rubocop linter 2017-07-09 22:43:31 +01:00
test_cpplint_handler.vader #852 - Capture error codes for cpplint 2017-11-15 11:28:16 +00:00
test_credo_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_crystal_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_cuda_nvcc_handler.vader Get some more random tests to pass on Windows 2017-09-13 23:30:39 +01:00
test_dafny_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_dartanalyzer_handler.vader Fix #308 - Check Dart files with dartanalyzer 2017-07-18 23:57:33 +01:00
test_dogma_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_drafter_handler.vader Add drafter for checking API Blueprint files (#1152) 2017-11-20 10:57:13 +00:00
test_elmmake_handler.vader Get more tests to pass on Windows 2017-09-11 22:25:15 +01:00
test_embertemplatelint_handler.vader Fix #1240 - Parse line and column numbers for fatal embertemplatelint errors 2017-12-19 17:42:51 +00:00
test_eslint_handler.vader Fix #1132 - Parse react error codes again for ESLint 2017-11-16 09:34:24 +00:00
test_fish_handler.vader Add handler test 2017-12-26 14:10:28 -06:00
test_flake8_handler.vader #476 Make F401 a warning and E112 a syntax error 2018-02-18 09:44:04 +00:00
test_flow_handler.vader Handle flow extra errors (#946) 2017-11-12 10:56:53 +00:00
test_foodcritic_handler.vader #1151 - Overhaul the foodcritic linter for checking files on disk 2017-11-21 13:38:33 +00:00
test_fortran_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_gcc_handler.vader Simplfy semver handling and share the semver version cache across everything 2017-11-12 10:56:53 +00:00
test_ghc_handler.vader Fix the mscs tests on Windows, and use the improved Simplify for all tests instead. 2017-12-19 18:23:09 +00:00
test_ghc_mod_handler.vader #894 - Replace ugly temporary filenames for Haskell problems with the buffer's basename 2017-09-03 21:53:48 +01:00
test_gitlint_handler.vader Make the error codes configurable for gitlint 2017-12-20 10:46:08 +00:00
test_glslang_handler.vader Add GLSL linter using glslang (#914) 2017-09-08 11:06:47 +01:00
test_gobuild_handler.vader Fix the mscs tests on Windows, and use the improved Simplify for all tests instead. 2017-12-19 18:23:09 +00:00
test_gometalinter_handler.vader Fix the mscs tests on Windows, and use the improved Simplify for all tests instead. 2017-12-19 18:23:09 +00:00
test_govet_handler.vader Fix #1358, fix #1369 - Lint the package on save for go vet instead 2018-02-25 11:39:45 +00:00
test_hlint_handler.vader Fix #710 - Show hlint suggestions as info items, and include end line and column numbers 2017-07-18 13:14:02 +01:00
test_idris_handler.vader Fix Flow and Idris tests for Windows 2017-10-01 18:41:41 +01:00
test_javac_handler.vader Fix the mscs tests on Windows, and use the improved Simplify for all tests instead. 2017-12-19 18:23:09 +00:00
test_jscs_handler.vader #852 - Capture error codes for jscs 2017-11-18 23:55:47 +00:00
test_lessc_handler.vader Fix the mscs tests on Windows, and use the improved Simplify for all tests instead. 2017-12-19 18:23:09 +00:00
test_llc_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_luac_handler.vader Add a luac linter for Lua 2018-01-08 23:32:02 +08:00
test_luacheck_handler.vader Add a luac linter for Lua 2018-01-08 23:32:02 +08:00
test_mcs_handler.vader #852 - Capture error codes for mcs and mcsc 2017-11-19 00:19:09 +00:00
test_mcsc_handler.vader Try to fix it again 2018-03-02 20:57:55 +00:00
test_mypy_handler.vader Allow syntax errors for mypy to be ignored 2018-01-11 16:43:10 +00:00
test_nagelfar_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_nim_handler.vader #852 - Capture error codes for nimcheck 2017-11-19 00:38:00 +00:00
test_nix_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_perl_handler.vader [WIP] Begin to distinguish between Perl warnings and errors (#933) 2018-03-02 21:04:52 +00:00
test_perlcritic_handler.vader perlcritic: all issues are warnings 2017-11-12 10:56:53 +00:00
test_php_handler.vader Fix PHP linter to support PHP 7.2 lint output 2017-12-13 21:23:18 +00:00
test_php_phan_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_php_phpmd_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_phpstan_handler.vader Fix #864 - Use the user's configured executable for phpstan for executable() checks 2017-08-21 18:42:18 +01:00
test_pony_handler.vader functional pony linter 2018-02-10 13:17:53 -06:00
test_prospector_handler.vader Add prospector for checking Python code (#1183) 2017-12-01 17:04:30 +00:00
test_puppet_handler.vader Puppet: allow for when parser doesn't supply column for errors (#1182) 2017-12-02 12:29:17 +00:00
test_pycodestyle_handler.vader #476 Make F401 a warning and E112 a syntax error 2018-02-18 09:44:04 +00:00
test_pyflakes_handler.vader Fix #516 - Add support for pyflakes for Python 2017-11-17 18:11:28 +00:00
test_pylint_handler.vader #852 Capture error codes for pylint, throw away the msgid values 2017-11-15 17:35:34 +00:00
test_rails_best_practices_handler.vader Get more tests to pass on Windows 2017-09-11 22:25:15 +01:00
test_redpen_handler.vader redpen: use 'code' key to show validator 2017-11-21 15:49:04 +09:00
test_reek_handler.vader #852 - Capture error codes for reek 2017-11-19 00:54:09 +00:00
test_remark_lint_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_rpmlint_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_rstcheck_lint_handler.vader Fix the mscs tests on Windows, and use the improved Simplify for all tests instead. 2017-12-19 18:23:09 +00:00
test_rubocop_handler.vader #852 - Capture error codes for Rubocop 2017-11-14 17:50:15 +01:00
test_ruby_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_rust_handler.vader updated rust handler test case 2018-01-28 18:35:46 -05:00
test_scalac_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_scalastyle_handler.vader #977 Complain about the lack of configuration files for scalastyle in such a way that users will be directed towards getting it to work 2017-10-15 00:20:43 +01:00
test_shell_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_shellcheck_handler.vader #852 Capture error codes for shellcheck 2017-11-15 17:26:52 +00:00
test_slim_handler.vader #852 - Capture error codes for slim-lint 2017-11-19 01:08:20 +00:00
test_sml_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_solhint_handler.vader Extract error code from message 2017-12-05 16:02:15 -03:00
test_sqlint_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_standard_handler.vader Fix the standard and xo handlers so they call the eslint function 2017-06-21 11:15:05 +01:00
test_stylelint_handler.vader #852 - Capture error codes for stylelint 2017-11-19 12:30:20 +00:00
test_swaglint_handler.vader #852 - Capture error codes for swaglint 2017-11-19 12:46:06 +00:00
test_swiftlint_handler.vader #852 - Capture error codes for swiftlint 2017-11-19 13:33:20 +00:00
test_syntaxerl_handler.vader Update SyntaxErl linter tests 2017-08-19 17:18:48 +03:00
test_tflint_handler.vader #852 - Capture error codes for tflint 2017-11-19 13:37:56 +00:00
test_thrift_handler.vader Add a linter for Apache Thrift IDL files 2017-08-30 11:08:06 -07:00
test_tslint_handler.vader Fix the mscs tests on Windows, and use the improved Simplify for all tests instead. 2017-12-19 18:23:09 +00:00
test_typecheck_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00
test_vale_handler.vader Missing warning level 'suggestion' for vale 2017-12-18 17:10:57 +01:00
test_vint_handler.vader Handle multiple files localtion lists with gcc handler (#1034) 2017-10-25 22:29:36 +01:00
test_write_good_handler.vader Set better highlights for write-good 2017-10-25 00:58:16 +01:00
test_xmllint_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00