ale/test/fixers
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_appleswiftformat_fixer_callback.vader apple-swift-format: linter and fixer with config swiftpm support (#3671) 2021-04-07 19:34:34 +09:00
test_astyle_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_autoflake_fixer_callback.vader add autoflake fixer (#3779) 2021-07-13 21:58:18 +09:00
test_autoimport_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_autopep8_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_bibclean_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_black_fixer_callback.vader Python support poetry (#3834) 2021-07-25 13:39:05 +09:00
test_break_up_long_lines_python_fixer.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_brittany_fixer_callback.vader
test_buildifier_fixer_callback.vader Switch to using buildifier's -path option (#3640) 2021-03-23 22:04:51 +09:00
test_clangformat_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_clangtidy_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_cmakeformat_fixer_callback.vader Use stdin/out for cmake-format (#3725) 2021-05-25 09:37:09 +09:00
test_dart_format_fixer_callback.vader Add support for `dart format` fixer (#3764) 2021-07-16 16:20:47 +09:00
test_dartfmt_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_dfmt_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_dhall_format_fixer_callback.vader Dhall fixes: use stdin, doc errors (#3868) 2021-08-09 20:43:50 +09:00
test_dhall_freeze_fixer_callback.vader Dhall fixes: use stdin, doc errors (#3868) 2021-08-09 20:43:50 +09:00
test_dhall_lint_fixer_callback.vader Dhall fixes: use stdin, doc errors (#3868) 2021-08-09 20:43:50 +09:00
test_dotnet_format_fixer_callback.vader Add fixer for "dotnet format" (#3879) 2021-08-25 15:27:04 +09:00
test_elm_format_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_erblint_fixer_callback.vader erblint as fixer (#3935) 2021-10-11 20:52:46 +09:00
test_erlfmt_fixer_callback.vader Add support for `erlfmt` fixer (#3602) 2021-02-28 22:31:44 +09:00
test_eslint_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_fecs_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_fish_indent_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_fixjson_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_floskell_fixer_callback.vader
test_gnatpp_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_gofmt_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_gofumpt_fixer.vader Implement gofumpt Fixer (#3968) 2021-11-09 16:53:44 +09:00
test_goimports_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_golines_fixer_callback.vader Adds fixer for golines (#3862) 2021-08-09 10:13:43 +09:00
test_gomod_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_goofle_java_format_fixer_callback.vader
test_hackfmt_fixer_callback.vader
test_hfmt_fixer_callback.vader
test_hindent_fixer_callback.vader
test_hlint_fixer_callback.vader
test_html_beautify_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_importjs_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_isort_fixer_callback.vader Fix 3941 - add version check to isort fixer (#3942) 2021-10-16 14:02:58 +09:00
test_jq_fixer_callback.vader
test_jsonnetfmt_fixer_callback.vader Add support for jsonnetfmt and jsonnet-lint (#3907) 2021-09-21 10:49:15 +09:00
test_ktlint_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_latexindent_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_lua_format_fixer_callback.vader Add support for `lua-format` fixer. (#3804) 2021-07-09 23:54:43 +09:00
test_luafmt_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_mix_format_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_nimpretty_fixer_callback.vader
test_nixfmt_fixer_callback.vader Add nixfmt as a Nix fixer. (#3651) 2021-03-24 09:02:17 +09:00
test_nixpkgsfmt_fixer_callback.vader
test_ocamlformat_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_ocp_indent_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_ormolu_fixer_callback.vader Add ormolu fixer. 2020-10-23 11:48:21 +01:00
test_pandoc_fixer_callback.vader Add pandoc as a markdown fixer (#3641) 2021-07-04 21:39:29 +09:00
test_perltidy_fixer_callback.vader
test_pgformatter_fixer_callback.vader
test_php_cs_fixer.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_phpcbf_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_prettier_eslint_fixer.callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_prettier_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_prettier_standard_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_protolint_fixer_callback.vader feat: Add protolint as linter and fixer (#2911) 2021-04-09 22:16:23 +09:00
test_ptop_fixer_callback.vader Add support for `ptop` fixer (#3652) 2021-03-23 21:51:14 +09:00
test_puppetlint_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_purs_tidy_fixer_callback.vader purs-tidy fix (#3867) 2021-08-09 20:42:19 +09:00
test_purty_fixer_callback.vader
test_python_add_blank_lines_fixer.vader
test_qmlfmt_fixer_callback.vader
test_refmt_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_remark_lint_fixer_callback.vader Add remark-lint for a markdown fixer (#2836) 2020-08-17 10:14:38 +01:00
test_reorder_python_imports_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_rubocop_fixer_callback.vader Fix: Failed to execute rubocop fixer on other machine (#3916) 2021-09-23 18:46:16 +09:00
test_rufo_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_rustfmt_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_scalafmt_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_shfmt_fixer_callback.vader
test_sorbet_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_sqlfmt_fixer_callback.vader
test_sqlformat_fixer_callback.vader
test_standard_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_standardrb_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_statix_fixer.vader Implement statix Linter and Fixer (#3969) 2021-11-12 07:34:25 +09:00
test_stylelint_fixer_callback.vader Fix stylelint not obeying project-specific rules (#3272) 2021-04-20 12:50:57 +09:00
test_styler_fixer_callback.vader
test_stylish_haskell_fixer_callback.vader
test_stylua_fixer_callback.vader Add stylua fixer for lua (#3789) 2021-07-03 18:50:48 +09:00
test_swiftformat_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_terraform_fmt_fixer_callback.vader
test_textlint_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_tidy_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_trim_whitespace.vader
test_tslint_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_uncrustify_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_vfmt_fixer_callback.vader Add support for V: "v" (compiler) and "vfmt" fixer. (#3622) 2021-03-26 15:38:57 +09:00
test_vim_help_tags_alignment_fixer.vader
test_xmllint_fixer_callback.vader
test_xo_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_xots_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_yamlfix_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_yapf_fixer_callback.vader #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00