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
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
test_cpplint_handler.vader
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
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
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
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
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
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
test_gitlint_handler.vader Make the error codes configurable for gitlint 2017-12-20 10:46:08 +00:00
test_glslang_handler.vader
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
test_idris_handler.vader
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
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
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
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
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
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
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
test_tflint_handler.vader #852 - Capture error codes for tflint 2017-11-19 13:37:56 +00:00
test_thrift_handler.vader
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
test_write_good_handler.vader
test_xmllint_handler.vader Clean up tests to stop people copy and pasting the wrong examples 2017-11-15 17:21:17 +00:00