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
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
cucumber_fixtures/features
dart_files Added dartfmt fixer (#1683) 2018-07-01 13:55:41 +01:00
elixir-test-files
elm-test-files fallback to elm if elm-tests isn’t available 2019-01-04 09:55:35 +02:00
eslint-test-files
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
go_files Add fixer for Go modules (#1873) 2018-09-19 19:33:23 +01:00
gradle-test-files
hamllint-test-files
handler Racket linting using raco (#2146) 2019-01-14 19:45:33 +00:00
javascript_files
json_files
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
prettier-test-files
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
ruby_fixtures Add solargraph.yml file as root path search file. 2018-09-05 07:12:04 +09:00
rust_files
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
smlnj
swiftlint-test-files Add support for Pod based SwiftLint (#2122) 2018-12-07 15:20:58 -07:00
test_c_projects
tflint-test-files/foo
top
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
test_balloon_messages.vader
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
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
test_cursor_warnings.vader
test_disabling_ale.vader
test_dockerfile_hadolint_linter.vader
test_engine_invocation.vader
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
test_find_nearest_directory.vader
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
test_fuzzy_json_decode.vader
test_get_abspath.vader
test_get_loclist.vader
test_getmatches.vader
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
test_gradle_find_project_root.vader
test_highlight_placement.vader
test_highlight_position_chunking.vader
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
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
test_loclist_binary_search.vader
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
test_loclist_sorting.vader
test_nearest_file_search.vader
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
test_path_upwards.vader
test_path_uri.vader
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
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
test_quickfix_deduplication.vader
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
test_resolve_local_path.vader
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
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
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
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
test_windows_escaping.vader
test_wrap_comand.vader
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