ale/test/handler
David Houston a9d7f45924
Implement statix Linter and Fixer (#3969)
* Add Statix for Linting

Add `statix check` as a linter. Provides a simple set of definition
tests additionally. Variable names specify "check" to allow for later
addition of `statix fix` as a formatter once stream support is added.

Signed-off-by: David Houston <houstdav000@gmail.com>

* Fixup Supported Tools List

I didn't realise there were two separate lists of tools, so add statix
to the other list. Also, remembered "S" comes after "R", and so
re-ordered it.

Signed-off-by: David Houston <houstdav000@gmail.com>

* Fix statix Test File

I refactored the variables for statix to allow for writing a fixer
later, and forgot to update them in the test, so update them now. Also
remove a stray "i", add missing space before checks

Signed-off-by: David Houston <houstdav000@gmail.com>

* Update Output Stream for v0.4.0

statix v0.4.0 provides a breaking change of output stream from stderr to
stdout.

Signed-off-by: David Houston <houstdav000@gmail.com>

* Add statix fix Fixer

Implement statix fix as a fixer for simple Nix antipatterns.

Signed-off-by: David Houston <houstdav000@gmail.com>

* Fix statix Fixer Tests

Fix the statix fixer tests by removing the unnecessary
'read_temporary_file' value from the command, since it simply uses the
default value.

Signed-off-by: David Houston <houstdav000@gmail.com>

* Add statix Handler Test

Add a test for the statix handler per @hsanson's request.

Signed-off-by: David Houston <houstdav000@gmail.com>

* Fix to run only on stdin for linting

Signed-off-by: David Houston <houstdav000@gmail.com>
2021-11-12 07:34:25 +09:00
..
test_ada_gcc_handler.vader Add GCC linter for Ada 2018-11-18 18:14:24 +01:00
test_alex_handler.vader
test_ameba_handler.vader Add initial ameba (crystal linter) support (#2174) 2019-01-27 16:01:42 +00:00
test_ansible_lint_handler.vader Fix ansible-lint linter definition. (#3601) 2021-02-28 21:43:23 +09:00
test_appleswiftformat_handler.vader apple-swift-format: linter and fixer with config swiftpm support (#3671) 2021-04-07 19:34:34 +09:00
test_asm_handler.vader
test_atools_handler.vader Add tests for atools handler, basic and dealing with Error and Warning 2021-01-22 14:04:26 -03:00
test_bandit_handler.vader Add bandit linter for Python 2019-01-26 11:48:03 +01:00
test_bashate_handler.vader Fix 2732 - Add bashate support 2020-03-23 12:18:35 +09:00
test_bibclean_handler.vader fix lint, fix variable semantics and update tests 2020-09-26 17:09:54 +02:00
test_brakeman_handler.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_cfn_python_lint_handler.vader Update test to match update to linter 2018-06-20 15:29:26 +02:00
test_checkmake_handler.vader
test_checkstyle_handler.vader Change checkstyle's output sub_type to style (#3780) 2021-07-04 21:31:00 +09:00
test_circleci_handler.vader Close #3770 - Add support for checking circleci configs 2021-06-19 10:34:57 +01:00
test_clang_handler.vader Indicate that a C compiler failed due to problems in a header file 2018-07-30 20:09:43 +01:00
test_clojure_clj_kondo_handler.vader Parse clj-kondo lines that don't include row/col (#3946) 2021-10-19 16:04:50 +09:00
test_clojure_joker_handler.vader
test_coffeelint_handler.vader
test_common_handlers.vader
test_cookstyle_handler.vader Adding new linter "cookstyle" for chef recipes (Issue #1187) (#2362) 2019-04-10 18:52:52 +01:00
test_cppcheck_handler.vader Cppcheck backwards compat 1.34 (#3887) 2021-09-03 22:31:17 +09:00
test_cpplint_handler.vader
test_credo_handler.vader Fix Credo message types (#1963) 2018-10-11 10:00:10 +01:00
test_crystal_handler.vader Fix crystal-lang non file-tied message handling 2019-10-11 18:34:09 +02:00
test_csc_handler.vader Support csc, update mcsc (#2586) 2019-07-02 08:18:17 +01:00
test_cucumber_handler.vader Add cucumber checker for cucumber files 2018-04-20 22:54:29 -04:00
test_cuda_nvcc_handler.vader
test_cypher_lint_handler.vader linter/cypher: add cypher-lint 2019-02-03 03:09:51 -02:00
test_dafny_handler.vader dafny: update filename handling 2021-01-23 12:34:36 -05:00
test_dart_analyze_handler.vader Add support for `dart analyze` (#3825) 2021-07-25 13:48:12 +09:00
test_dartanalyzer_handler.vader
test_debride_handler.vader debride: Add debride linter (closes #2471) 2019-08-13 01:43:27 -04:00
test_desktop_file_validate_handler.vader Add desktop-file-validate 2021-03-19 22:29:06 +00:00
test_dmd_handler.vader improve DMD handler (#3647) 2021-03-30 15:47:59 +09:00
test_dockerfile_lint_handler.vader Fix style and test 2020-05-06 14:05:39 +03:00
test_dogma_handler.vader
test_drafter_handler.vader
test_elmmake_handler.vader Fix #1716 - Replace tempdir() with a wrapper to preserve TMPDIR 2018-07-12 13:05:59 +01:00
test_embertemplatelint_handler.vader
test_erblint_handler.vader Add support for erblint (#3931) 2021-10-09 14:33:07 +09:00
test_erlang_dialyzer_handler.vader Add support for Erlang dialyzer (#2509) 2019-05-19 21:16:17 +01:00
test_erlang_elvis_handler.vader Add Elvis handler for Erlang 2020-09-06 12:40:28 +03:00
test_eslint_handler.vader Make eslint respect the ale_warn_about_trailing_whitespace setting 2019-05-12 15:49:16 +01:00
test_eslint_json_handler.vader Fix 2891 - eslint not showing errors. 2019-11-26 13:37:25 +09:00
test_fecs_handler.vader feat: fecs support for js/html/css lint and format 2019-04-11 16:24:58 +08:00
test_fish_handler.vader Fix #1373 - Fix a bug with Fish errors not being handled on Linux 2018-03-23 12:17:54 +00:00
test_flake8_handler.vader Support pylama for python (#2266) 2019-02-08 21:44:34 +00:00
test_flakehell_handler.vader Add flakehell python linter (#3295) (#3921) 2021-10-02 16:37:57 +09:00
test_flawfinder_handler.vader Handle flawfinder severity level (#1400) 2018-03-10 10:44:55 +00:00
test_flow_handler.vader Fix #2263 - detailed Flow errors should show the original message 2019-02-01 13:01:56 +00:00
test_foodcritic_handler.vader
test_fortran_handler.vader
test_gawk_handler.vader Fix awk linter and security concerns. (#1411) 2018-03-14 17:46:57 +00:00
test_gcc_handler.vader Improved macro handling in gcc 2020-08-29 15:17:20 +03:00
test_ghc_handler.vader
test_ghc_mod_handler.vader
test_ghdl_handler.vader Add VHDL Support & Newer Verilog Linters (#2229) 2019-01-27 09:46:33 +00:00
test_gitlint_handler.vader gitcommit: fully implement warn_about_trailing_whitespace 2018-08-30 03:42:44 +02:00
test_glslang_handler.vader Make it easier to run tests locally 2020-08-16 21:20:08 +01:00
test_go_generic_handler.vader Fixes govet linter for go 1.13+, with tests 2020-05-25 11:46:16 -04:00
test_gobuild_handler.vader
test_golangci_lint_handler.vader Add golangci-lint (#1890) 2018-09-06 20:31:12 +01:00
test_gometalinter_handler.vader
test_hadolint.vader fix(hadolint): set code field as well (#3943) 2021-10-19 15:30:19 +09:00
test_haskell_stack_handler.vader Add better support for Haskell stack compiler tools (#1851) 2018-09-28 09:05:01 +01:00
test_hlint_handler.vader
test_ibm_openapi_validator_handler.vader Fix 2777 - Add IBM openapi validator 2021-01-22 23:17:38 +09:00
test_idris_handler.vader
test_inko_handler.vader Add linter for Inko 2020-12-23 16:50:45 +01:00
test_ispc_ispc_handler.vader Add --nowrap to ispc options 2018-11-21 10:40:07 +01:00
test_javac_handler.vader javac linter: fix handling of error messages containing ':' character 2018-12-09 18:22:50 +01:00
test_jscs_handler.vader
test_ktlint_handler.vader Add ktlint fixer support. 2019-01-20 19:39:47 -06:00
test_lacheck_handler.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_languagetool_handler.vader linter/markdown: adds support for languatool (#2155) 2019-03-09 13:55:54 +00:00
test_lessc_handler.vader
test_llc_handler.vader
test_luac_handler.vader
test_luacheck_handler.vader
test_markdownlint_handler.vader Support markdownlint rules with multiple slashes 2020-07-31 11:15:13 +12:00
test_mcs_handler.vader
test_mcsc_handler.vader Support csc, update mcsc (#2586) 2019-07-02 08:18:17 +01:00
test_mdl_handler.vader mdl: Use JSON output instead of parsing text 2019-08-18 23:28:32 -04:00
test_mercury_mmc_handler.vader add support for mercury language using mmc as linter 2018-03-25 13:33:24 -04:00
test_mix_handler.vader handled temp file and env variable correctly; added tests 2018-06-02 13:03:56 -04:00
test_msgfmt_hander.vader Fix #1584 - Make duplicate msgfmt messages easier to navigate 2018-05-15 18:01:49 +01:00
test_mypy_handler.vader Fix the build 2020-01-02 14:23:28 +00:00
test_nagelfar_handler.vader
test_nasm_handler.vader smallfix 2018-05-04 22:33:08 +02:00
test_nim_handler.vader Add nimcheck end_col options 2019-11-07 02:44:56 +09:00
test_nix_handler.vader Update error-parser for `nix-instantiate` on Nix 2.4+ 2021-01-24 22:54:02 +01:00
test_perl6_handler.vader Fix crashes with incomplete errors 2018-10-03 14:13:34 -07:00
test_perl_handler.vader Adds tests for perl-linter where a second file/line is included in error 2018-12-19 08:30:23 -05:00
test_perlcritic_handler.vader
test_php_handler.vader
test_php_phan_handler.vader add filename to output 2021-02-02 17:34:59 +03:00
test_php_phpmd_handler.vader
test_phpcs_handler.vader fix(ale_linters/phpcs): add support for multiline error messages 2020-09-25 11:25:24 +02:00
test_phpstan_handler.vader Add support for multiline messages (#3686) 2021-07-09 23:59:36 +09:00
test_pmd_handler.vader Fix PMD not working with classes without package 2018-10-02 21:34:11 +01:00
test_pony_handler.vader functional pony linter 2018-02-10 13:17:53 -06:00
test_powershell_handler.vader Remove +x bit from some files that don't need it. 2019-08-13 00:28:31 -04:00
test_prospector_handler.vader Fix prospector empty string error 2018-06-26 16:58:34 -07:00
test_psscriptanalyzer_handler.vader PSScriptAnalyzer (#2370) 2019-03-29 15:25:55 +00:00
test_puglint_handler.vader Close #791 - Handle exceptions for puglint 2019-05-13 21:57:44 +01:00
test_puppet_handler.vader Handling for puppet parser error at end of input. 2020-07-15 12:10:34 +01:00
test_pycodestyle_handler.vader #476 Make F401 a warning and E112 a syntax error 2018-02-18 09:44:04 +00:00
test_pydocstyle_handler.vader Fixed parsing of pydocstyle errors 2019-01-14 20:36:14 -05:00
test_pyflakes_handler.vader
test_pylama_handler.vader pylama: Use %s instead of %t 2019-02-12 10:45:26 -07:00
test_pylint_handler.vader Add option to show msg id when pylint is used (#2445) 2019-05-09 17:28:18 +01:00
test_pyrex_cython_handler.vader Handle cython warning with custom handle and remove '--warning-errors'. 2018-06-25 17:33:53 +02:00
test_qmlfmt_handler.vader Integration of qmlfmt linting tool (#1462) 2018-04-05 21:09:41 +02:00
test_qmllint_handler.vader Add basic qmllint support (#1419) 2018-03-25 11:55:59 +01:00
test_raco_handler.vader racket/raco: add filename to loc list (#3777) 2021-07-04 21:17:44 +09:00
test_rails_best_practices_handler.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_redpen_handler.vader #2395 - Handle empty output for redpen 2019-03-29 16:09:27 +00:00
test_reek_handler.vader
test_remark_lint_handler.vader fix: Handle ranges for the remark linter #1207 2018-03-22 11:47:16 +01:00
test_rflint_handler.vader Robot framework rflint support (#3715) 2021-09-11 09:19:17 +09:00
test_rpmlint_handler.vader
test_rstcheck_lint_handler.vader Fix #1279 - Run cppcheck differently when modified 2019-06-03 21:54:23 +01:00
test_rubocop_handler.vader Adds standardrb linter (#2133) 2018-12-10 14:02:32 -07:00
test_ruby_handler.vader
test_rust_handler.vader show rendered cargo error in detail 2019-06-04 22:20:57 -07:00
test_salt_salt_lint.vader Add salt-lint support 2020-12-17 09:19:19 +01:00
test_scala_handler.vader Add fsc linter for Scala (#1452) 2018-04-05 21:04:11 +02:00
test_scalastyle_handler.vader
test_shell_handler.vader linter/sh: Improve parsing of error messages in different locales 2019-08-31 15:08:54 +08:00
test_shellcheck_handler.vader Fix handler test, function name has changed 2020-04-28 18:13:34 +01:00
test_slim_handler.vader
test_sml_handler.vader sml: use filenames (fix #1084) (#3860) 2021-10-07 11:33:33 +09:00
test_solc_handler.vader Solidity solc linter compatible with 0.6/0.7/0.8 (#3763) 2021-07-04 21:40:12 +09:00
test_solhint_handler.vader Updated `solhint` linter to be able to use a local installation (#3682) 2021-04-15 09:01:18 +09:00
test_spectral_handler.vader add spectral handler 2021-01-23 11:56:10 +09:00
test_sqlint_handler.vader
test_sqllint_handler.vader Add sql-lint as linter 2020-01-31 11:11:12 +00:00
test_standard_handler.vader Make it easier to run tests locally 2020-08-16 21:20:08 +01:00
test_statix_handler.vader Implement statix Linter and Fixer (#3969) 2021-11-12 07:34:25 +09:00
test_stylelint_handler.vader
test_swaglint_handler.vader
test_swiftlint_handler.vader
test_swipl_handler.vader prolog/swipl: cover new format with complex tests 2021-01-20 12:08:05 -05:00
test_syntaxerl_handler.vader
test_systemd_analyze_handler.vader Fix a typo in a test filename 2021-03-19 21:55:15 +00:00
test_terraform_handler.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_textlint_handler.vader add textlint support for markdown (#1383) 2018-03-18 17:28:26 +00:00
test_tflint_handler.vader fix tflint handler for 0.11+ (#2775) 2019-10-07 20:14:22 +01:00
test_thrift_handler.vader
test_thriftcheck_handler.vader Improve the thriftcheck handler pattern (#3893) 2021-09-08 21:48:48 +09:00
test_tlint_handler.vader Adds support for Tlint - A Tighten Opinionated PHP Linter (#3291) 2020-11-21 20:29:33 +00:00
test_tslint_handler.vader
test_typecheck_handler.vader
test_v_handler.vader Add support for V: "v" (compiler) and "vfmt" fixer. (#3622) 2021-03-26 15:38:57 +09:00
test_vala_lint_handler.vader add test to check if it properly ignores outputs with unknown error types 2021-01-23 00:08:01 +09:00
test_vale_handler.vader
test_vcom_handler.vader Add VHDL Support & Newer Verilog Linters (#2229) 2019-01-27 09:46:33 +00:00
test_verilator_handler.vader Verilator current file search path (#3500) 2021-02-11 19:35:25 +00:00
test_vint_handler.vader
test_vlog_handler.vader verilog: Add filename to vlog linter output 2019-12-05 19:35:34 +01:00
test_vulture_handler.vader Support pylama for python (#2266) 2019-02-08 21:44:34 +00:00
test_write_good_handler.vader
test_xmllint_handler.vader
test_xvhdl_handler.vader Add VHDL Support & Newer Verilog Linters (#2229) 2019-01-27 09:46:33 +00:00
test_xvlog_handler.vader Add VHDL Support & Newer Verilog Linters (#2229) 2019-01-27 09:46:33 +00:00
test_yamllint_handler.vader Add yamllint and prettier to openapi. 2021-01-22 23:17:38 +09:00
test_yosys_handler.vader Add Yosys linter for Verilog files. (#3713) 2021-07-12 21:39:53 +09:00
test_zeek_handler.vader Add support for zeek (#3952) 2021-10-24 21:05:55 +09:00