ale/test/fixers
Jon Parise eb0ebe6221
Switch to using buildifier's -path option (#3640)
Buildifier offers a -path command line option:

> Buildifier's reformatting depends in part on the path to the file
> relative to the workspace directory. Normally buildifier deduces
> that path from the file names given, but the path can be given
> explicitly with the -path argument. This is especially useful when
> reformatting standard input, or in scripts that reformat a temporary
> copy of a file.

This lets us drop our `-type`-guessing logic.

For the moment, we rely on the buffer filename being "relative to the
workspace directory", which it generally is, but in a future change, we
should introduce logic that will locate the WORKSPACE file and adjusts
the filename relative to that directory. This could be complicated based
on the working directory in which `buildifier` is executed, so a little
more research is necessary to implement that logic correctly.
2021-03-23 22:04:51 +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_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 #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00: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 Fix #1424 - Make the brittany fixer work 2018-04-08 17:38:43 +01:00
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 add cmake-format fixer support (#2244) 2019-01-27 11:45:57 +00: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 Close #2281 - Separate cwd commands from commands 2021-03-01 20:11:10 +00:00
test_dhall_freeze_fixer_callback.vader Close #2281 - Separate cwd commands from commands 2021-03-01 20:11:10 +00:00
test_dhall_lint_fixer_callback.vader Close #2281 - Separate cwd commands from commands 2021-03-01 20:11:10 +00: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_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 Add floskell for Haskell formatting 2019-04-14 11:27:48 -05:00
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_goimports_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00: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 fix: change google_java_format_* to java_google_java_format_* for inject global variables according to doc/ale-java.txt 2018-10-24 20:10:31 +08:00
test_hackfmt_fixer_callback.vader Split Hack out from PHP, modernize 2018-08-02 11:28:56 -07:00
test_hfmt_fixer_callback.vader adds fixer support for hfmt (#1027) 2017-10-24 22:29:04 +01:00
test_hindent_fixer_callback.vader Merge remote-tracking branch 'AlexeiDrake/master' into bugfix/c-lsp-build-dir-settings 2019-08-18 18:29:59 +01:00
test_hlint_fixer_callback.vader Add better support for Haskell stack compiler tools (#1851) 2018-09-28 09:05:01 +01:00
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 #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00:00
test_jq_fixer_callback.vader Allow custom filters for the jq fixer (#1980) 2018-10-12 09:15:32 +01: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_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 Clean up the nimpretty code 2019-11-14 14:50:21 +00:00
test_nixpkgsfmt_fixer_callback.vader Add nixpkgs-fmt fixer. 2019-08-26 19:21:07 +01:00
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_perltidy_fixer_callback.vader add perltidy fixer 2018-04-21 22:09:38 +09:00
test_pgformatter_fixer_callback.vader add pgformatter 2019-05-27 09:00:11 +04:30
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_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_purty_fixer_callback.vader Add purty fixer. 2019-08-12 11:49:19 -04:00
test_python_add_blank_lines_fixer.vader Bugfix: python add blank lines (#1944) 2018-09-25 10:02:01 +01:00
test_qmlfmt_fixer_callback.vader Add support for qmlfmt fixer (#1651) 2018-06-12 19:38:16 +01:00
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 #3633 - Move linter tests into test/linter 2021-03-21 00:25:33 +00: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 shfmt: Use Vim's indent config as default indent width 2018-09-18 17:51:00 +09:00
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 Add support for sqlfmt 2018-09-08 01:34:10 +02:00
test_sqlformat_fixer_callback.vader feat: support sqlformat. (#2702) 2019-09-12 22:48:27 +01:00
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_stylelint_fixer_callback.vader #3633 - Put all dummy test files in test/test-files 2021-03-20 22:11:42 +00:00
test_styler_fixer_callback.vader Switch from style to transformers (#2838) 2019-11-07 18:22:57 +00:00
test_stylish_haskell_fixer_callback.vader Add stylish-haskell as a fixer (#1837) 2018-08-23 23:14:59 +01: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 add terraform fmt fixer for terraform and hcl filetypes 2018-10-23 20:44:31 -04:00
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 Revert "#2132 Change (buffer, lines) fixer functions to (buffer, done, lines)" 2019-02-22 20:48:06 +00:00
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_vim_help_tags_alignment_fixer.vader
test_xmllint_fixer_callback.vader Add support for xmllint as a fixer. 2018-08-28 23:43:52 +02:00
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