This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test
brian m. carlson 6fc016ad05
Add additional ways to detect LSP project root
Currently, we detect the linter root based on a variety of techniques.
However, these techniques are not foolproof. For example, clangd works
fine for many things without a compile_commands.json file, and Go
projects may be built outside of the GOPATH to take advantage of Go
1.11's automatic module support.

Add global and buffer-specific variables to allow the user to specify
the root, either as a string or a funcref. Make the funcrefs accept the
buffer number as an argument to make sure that they can function easily
in an asynchronous environment.

We define the global variable in the main plugin, since the LSP linter
code is not loaded unless required, and we want the variable to be able
to be read correctly by :ALEInfo regardless.
2019-01-26 04:46:41 +00:00
..
.config/nvim Run all tests in NeoVim, improve the test script, and make all tests pass for NeoVim 2017-05-12 20:38:52 +01:00
command_callback Add support for pyls configuration options 2019-01-20 23:59:46 -05:00
compile_database_perf Improve perf for compile dbs in large projects 2019-01-06 00:41:57 -08:00
completion Update tests 2019-01-21 17:40:33 +03:00
csslint-test-files Fix #260 automatically set .csslintrc files from ancestor directories 2017-03-29 00:56:39 +01:00
cucumber_fixtures/features Add cucumber checker for cucumber files 2018-04-20 22:54:29 -04:00
dart_files Added dartfmt fixer (#1683) 2018-07-01 13:55:41 +01:00
elixir-test-files new fixer elixir mix format 2017-10-22 19:20:38 -04:00
elm-test-files fallback to elm if elm-tests isn’t available 2019-01-04 09:55:35 +02:00
eslint-test-files Fix #923 Use package.json as a last resort for eslint --fix 2017-09-12 09:10:37 +01:00
fix change ale to use value of g:ale_shell regardless of what it is 2019-01-02 19:05:51 -05:00
fixers Add babylon as default Prettier parser (#2220) 2019-01-22 10:24:15 +00:00
flow Fix #246 Don't run flow if there's no .flowconfig 2017-02-10 22:47:56 +00:00
go_files Add fixer for Go modules (#1873) 2018-09-19 19:33:23 +01:00
gradle-test-files Kotlin and general Gradle support. (#745) 2017-07-10 23:03:36 +01:00
hamllint-test-files force add test fixtures for hamllint 2017-10-25 21:35:24 +02:00
handler Racket linting using raco (#2146) 2019-01-14 19:45:33 +00:00
javascript_files added importjs fixer 2017-12-05 00:37:31 +09:00
json_files Support fixing JSON files with fixjson 2018-01-24 10:36:31 +00:00
lsp Add additional ways to detect LSP project root 2019-01-26 04:46:41 +00:00
markdown_files Add textlint for Asciidoc and add it to Fixers (#2193) 2019-01-10 18:53:45 +00:00
maven-test-files/maven-kotlin-project Add kotlin language server support (#1725) 2018-07-15 18:54:18 +01:00
ocaml-test-files add ocamlformat support 2018-08-26 13:47:56 +02:00
phpcs-test-files Fix some escaping and make some tests set filenames consistently 2017-06-21 22:33:34 +01:00
prettier-test-files Set --parser option in Prettier's fixer (#1620) 2018-06-18 22:40:57 +01:00
puppet-test-files Start of vader tests for puppet root detection 2018-07-05 21:25:03 +02:00
python_fixtures/pipenv Add python_[linter]_auto_pipenv options for python linters (fixes #1656) 2018-09-15 22:10:46 -04:00
reasonml_files refmt fixer for ReasonML 2017-10-29 21:48:28 +01:00
ruby_fixtures Add solargraph.yml file as root path search file. 2018-09-05 07:12:04 +09:00
rust_files add rustfmt fixer 2017-10-21 12:31:49 -05:00
scala_fixtures Changed sbtserver to just work off of the address variable 2018-09-01 21:03:29 -04:00
script Add bibclen fixer support 2018-12-01 15:05:18 +09:00
sign Fix #1687 - Parse highlights when verbose > 0 2018-07-15 21:01:00 +01:00
slimlint-test-files slimlint: Search for .rubocop.yml and use it 2017-09-15 18:56:59 +02:00
smlnj Detect and use CM files for smlnj (#884) 2017-09-03 19:56:14 +01:00
swiftlint-test-files Add support for Pod based SwiftLint (#2122) 2018-12-07 15:20:58 -07:00
test_c_projects Added additional unit tests + adapted review comments #1167 2018-03-21 20:44:35 +01:00
tflint-test-files/foo Add tflint fot Terraform 2017-10-26 19:37:04 +01:00
top Improve mypy handling a little bit more 2017-01-20 17:30:34 +00:00
util fix has('unix') equal 0 is windows. 2018-10-24 08:29:11 +09:00
dumb_tcp_client.py #830 Implement a socket wrapper API for use with LSP connections 2018-07-02 23:49:47 +01:00
dumb_tcp_server.py #830 Implement a socket wrapper API for use with LSP connections 2018-07-02 23:49:47 +01:00
smoke_test.vader #2017 Simplify lint cycles for supporting other sources later 2018-10-29 11:29:21 +00:00
test_ale_complete_command.vader Optimize ale#completion#Filter when prefix is "" 2019-01-08 15:10:03 +01:00
test_ale_info.vader Add additional ways to detect LSP project root 2019-01-26 04:46:41 +00:00
test_ale_lint_command.vader Get tests to pass in Vim 8.1 2018-07-23 20:41:48 +01:00
test_ale_toggle.vader Get tests to pass in Vim 8.1 2018-07-23 20:41:48 +01:00
test_ale_var.vader Remove the redundant fix_buffer_data vars and filename variables 2018-07-22 22:31:46 +01:00
test_alejobstarted_autocmd.vader #2017 Add support for display results from other sources 2018-10-29 18:28:28 +00:00
test_alelint_autocmd.vader #2017 Add support for display results from other sources 2018-10-29 18:28:28 +00:00
test_autocmd_commands.vader Test that we CleanupEveryBuffer when vim supports it 2018-09-17 21:26:25 +01:00
test_backwards_compatibility.vader Rename g:ale_linters_sh_* to g:ale_sh_* 2017-04-30 22:38:28 +02:00
test_balloon_messages.vader Close #1494 - Prefer displaying higher severity problems for cursor messages, balloons, and highlights 2018-04-10 21:05:22 +01:00
test_c_flag_parsing.vader Merge pull request #2191 from davidvandebunte/fixCompDbDir 2019-01-10 18:59:13 +00:00
test_checkingbuffer_autocmd.vader #2017 Add support for display results from other sources 2018-10-29 18:28:28 +00:00
test_cleanup.vader Clean up ALE linter buffer data when buffers are deleted, not unloaded 2017-12-19 15:35:57 +00:00
test_command_chain.vader #2017 Simplify lint cycles for supporting other sources later 2018-10-29 11:29:21 +00:00
test_csslint_config_detection.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_cursor_warnings.vader Close #1494 - Prefer displaying higher severity problems for cursor messages, balloons, and highlights 2018-04-10 21:05:22 +01:00
test_disabling_ale.vader Fix #577 Add an option preventing linting of large files 2017-05-26 21:21:15 +01:00
test_dockerfile_hadolint_linter.vader Added tests for hadolint 2018-01-29 22:21:50 +01:00
test_engine_invocation.vader Fix #315 Implement the read_buffer option 2017-02-09 23:32:57 +00:00
test_engine_lsp_response_handling.vader Try to fix the tests on Windows 2018-10-30 20:55:35 +00:00
test_env_function.vader Massively reduce the amount of code needed for linter tests 2018-07-15 18:28:28 +01:00
test_errors_removed_after_filetype_changed.vader Get tests to pass in Vim 8.1 2018-07-23 20:41:48 +01:00
test_eslint_executable_detection.vader Revert "#1459 Always run ESLint in the directory of the file being checked" 2018-08-10 11:49:17 +01:00
test_filetype_linter_defaults.vader #1754 Require snake_case names for linters in the codebase 2018-07-24 10:05:44 +01:00
test_filetype_mapping.vader #283 Fix linting buffers with no filename, by creating a filename with a guess for the file extension 2017-02-13 10:36:38 +00:00
test_find_nearest_directory.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_find_references.vader Update tests 2019-01-21 17:40:33 +03:00
test_flow_command.vader Fix flow tests on Windows 2019-01-12 14:36:07 +00:00
test_format_command.vader #2132 Move CreateTemporaryFileForJob calls into FormatCommand 2019-01-12 18:34:26 +00:00
test_format_temporary_file_creation.vader Try to make tests pass on Windows again 2018-07-16 14:18:50 +01:00
test_function_arg_count.vader Move all functions for fixing things to autoload/ale/fixers, and only accept the lines of input where needed. 2017-06-07 14:02:29 +01:00
test_fuzzy_json_decode.vader Fix #988 - Support --fix-dry-run for ESLint by processing the JSON output 2017-11-22 23:23:14 +00:00
test_get_abspath.vader Fix #1210 - Fix a Windows path issue which broke TSLint 2017-12-18 13:27:59 +00:00
test_get_loclist.vader Merge everything into the one global map. 2016-10-24 20:21:42 +01:00
test_getmatches.vader Add a function for getting matches, and use it to simplify a lot of code 2017-04-18 00:35:53 +01:00
test_go_to_definition.vader Add textDocument/typeDefinition for LSP (#2226) 2019-01-21 23:06:28 +00:00
test_gradle_build_classpath_command.vader ale#path#CdString include ale#Escape 2018-10-23 23:20:27 +09:00
test_gradle_find_executable.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_gradle_find_project_root.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_highlight_placement.vader Make highlight tests pass more in Neovim 0.3 2018-07-01 11:52:02 +01:00
test_highlight_position_chunking.vader Fix #604 - Support highlights spanning many lines 2017-05-31 13:14:39 +01:00
test_history_saving.vader #2017 Simplify lint cycles for supporting other sources later 2018-10-29 11:29:21 +00:00
test_hover.vader #1520 - Add an :ALEDocumentation for tsserver 2018-12-10 20:08:28 +00:00
test_ignoring_linters.vader Update tests 2019-01-21 18:36:52 +03:00
test_kotlin_languageserver_path_detection.vader Add kotlin language server support (#1725) 2018-07-15 18:54:18 +01:00
test_line_join.vader #830 Implement a socket wrapper API for use with LSP connections 2018-07-02 23:49:47 +01:00
test_lint_file_linters.vader #2017 Simplify lint cycles for supporting other sources later 2018-10-29 11:29:21 +00:00
test_lint_on_enter_when_file_changed.vader Get tests to pass in Vim 8.1 2018-07-23 20:41:48 +01:00
test_lint_on_filetype_changed.vader Fix #1619 - Rewrite lint on enter events so they behave better 2018-07-17 00:18:34 +01:00
test_linter_defintion_processing.vader Add a lsp_config_callback linter option 2018-10-31 08:42:42 -07:00
test_linter_retrieval.vader #2132 Remove the need for the hidden add_newline option by tweaking the flow command 2019-01-12 13:14:29 +00:00
test_linter_type_mapping.vader #2017 Add support for display results from other sources 2018-10-29 18:28:28 +00:00
test_linting_blacklist.vader #2017 Simplify lint cycles for supporting other sources later 2018-10-29 11:29:21 +00:00
test_linting_updates_loclist.vader Get tests running and passing with NeoVim 0.2 and 0.3 2018-06-28 13:53:49 +01:00
test_list_formatting.vader Get tests to pass in Vim 8.1 2018-07-23 20:41:48 +01:00
test_list_opening.vader Get tests to pass in Vim 8.1 2018-07-23 20:41:48 +01:00
test_list_titles.vader Get tests to pass in Vim 8.1 2018-07-23 20:41:48 +01:00
test_load_all_linters.vader #427 Implement buffer variable overrides for all linter options 2017-04-16 01:24:08 +01:00
test_loclist_binary_search.vader Close #1494 - Prefer displaying higher severity problems for cursor messages, balloons, and highlights 2018-04-10 21:05:22 +01:00
test_loclist_corrections.vader #2017 Add support for display results from other sources 2018-10-29 18:28:28 +00:00
test_loclist_jumping.vader Close #1494 - Prefer displaying higher severity problems for cursor messages, balloons, and highlights 2018-04-10 21:05:22 +01:00
test_loclist_sorting.vader Close #1494 - Prefer displaying higher severity problems for cursor messages, balloons, and highlights 2018-04-10 21:05:22 +01:00
test_nearest_file_search.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_no_linting_on_write_quit.vader #2132 Change (buffer, lines) fixer functions to (buffer, done, lines) 2018-12-18 11:13:28 +00:00
test_other_sources.vader #2017 Add support for display results from other sources 2018-10-29 18:28:28 +00:00
test_path_dirname.vader Add support for parsing compile_commands.json files for C compilers 2018-07-29 19:24:27 +01:00
test_path_equality.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_path_upwards.vader Fix #1210 - Fix a Windows path issue which broke TSLint 2017-12-18 13:27:59 +00:00
test_path_uri.vader #1149 Fix conversion from URIs to filenames on Windows 2017-11-20 00:02:33 +00:00
test_pattern_options.vader Fix #1619 - Rewrite lint on enter events so they behave better 2018-07-17 00:18:34 +01:00
test_phpcs_include_code.vader Add test for phpcs error code 2017-10-26 12:22:34 -04:00
test_prepare_command.vader Fix a test on Windows 2019-01-04 14:51:55 +00:00
test_puppet_path_detection.vader Start of vader tests for puppet root detection 2018-07-05 21:25:03 +02:00
test_python_pipenv.vader Add python_[linter]_auto_pipenv options for python linters (fixes #1656) 2018-09-15 22:10:46 -04:00
test_python_virtualenv.vader Add a test to ensure $VIRTUAL_ENV is respected. 2017-10-11 13:42:38 -07:00
test_quickfix_deduplication.vader Close #1494 - Prefer displaying higher severity problems for cursor messages, balloons, and highlights 2018-04-10 21:05:22 +01:00
test_quitting_variable.vader Fix #1619 - Rewrite lint on enter events so they behave better 2018-07-17 00:18:34 +01:00
test_redundant_tsserver_rendering_avoided.vader #2017 Add support for display results from other sources 2018-10-29 18:28:28 +00:00
test_regex_escaping.vader #756 Escape the paths used for the --include parameter for gometalinter, which uses RE2 2017-07-11 23:47:21 +01:00
test_resolve_local_path.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_results_not_cleared_when_opening_loclist.vader Get tests to pass in Vim 8.1 2018-07-23 20:41:48 +01:00
test_sandbox_execution.vader #2017 Simplify lint cycles for supporting other sources later 2018-10-29 11:29:21 +00:00
test_semver_utils.vader Simplfy semver handling and share the semver version cache across everything 2017-11-12 10:56:53 +00:00
test_set_list_timers.vader Get tests to pass in Vim 8.1 2018-07-23 20:41:48 +01:00
test_setting_loclist_from_another_buffer.vader Get tests to pass in Vim 8.1 2018-07-23 20:41:48 +01:00
test_setting_problems_found_in_previous_buffers.vader #2017 Add support for display results from other sources 2018-10-29 18:28:28 +00:00
test_shell_detection.vader Fix #1051 - Support ash and dash for shellcheck and the sh linter 2017-10-26 21:21:42 +01:00
test_should_do_nothing_conditions.vader #1875 Do not lint and so on when an operator is pending 2018-09-03 13:59:56 +01:00
test_sml_command.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_socket_connections.vader #830 Make the LSP socket code so far use the new socket API 2018-07-03 00:30:26 +01:00
test_statusline.vader Remove deprecated code for the 2.0 release 2018-07-04 08:36:34 +01:00
test_swiftlint_executable_detection.vader Add support for Pod based SwiftLint (#2122) 2018-12-07 15:20:58 -07:00
test_symbol_search.vader Implement LSP symbol search 2018-10-31 16:13:31 +00:00
test_temporary_file_management.vader #2017 Simplify lint cycles for supporting other sources later 2018-10-29 11:29:21 +00:00
test_tmpdir_wrapper.vader Only temporarily replace TMPDIR if it's defined to be an empty string 2018-07-16 08:45:55 +01:00
test_verilog_verilator_options.vader #2017 Simplify lint cycles for supporting other sources later 2018-10-29 11:29:21 +00:00
test_vim8_processid_parsing.vader Refactor jobs into a Vim version agnostic API which can be used for other purposes 2017-05-12 21:16:15 +01:00
test_windows_escaping.vader Fix #549 - escape strings more appropriately for use with cmd /c 2017-05-26 00:06:16 +01:00
test_wrap_comand.vader Fix a command wrapper test on Windows 2018-01-17 18:11:20 +00:00
test_writefile_function.vader #1872 Remove extra carriage returns when fixing files on Windows 2018-09-19 19:28:57 +01:00
vimrc Fix #1716 - Replace tempdir() with a wrapper to preserve TMPDIR 2018-07-12 13:05:59 +01:00