summaryrefslogtreecommitdiff
path: root/ale_linters/rust
AgeCommit message (Collapse)Author
2022-02-19fixup, wip: Revert `rust_only_current_buffer`cos
There is already a `rust_ignore_secondary_spans` option, providing more hiding of errors than anyone likely can desire.
2022-02-19wip: Attempt at making cargo working on whole project as documentedcos
(Make cargo work on whole project as documented) According to `:help ale-integration-rust`, using cargo as a linter should check the entire project. It appears this was the case initially, but it broke somewhere along the way. Setting `filename` to the output in the handler and avoid filtering the spans on `file_name` goes a long way in restoring the intended behavior. However test cases fail, even after attempting to update them. Please see next commit.
2022-02-20Fix 4086 - use stable command options for rustc (#4087)Horacio Sanson
2021-11-19Add cspell Linter (#3981)David Houston
* Add cspell linter Add cspell linter, with the languages it supports. Signed-off-by: David Houston <houstdav000@gmail.com> * Add cspell Global Variables Documentation Add documentation to /doc/ale.txt with cspell configuration options. Signed-off-by: David Houston <houstdav000@gmail.com> * Add cspell to docs, Minor Cleanup Add cspell for each supported language, adding some spaces and removing others when caught navigating the file. Signed-off-by: David Houston <houstdav000@gmail.com>
2021-03-01Close #2281 - Separate cwd commands from commandsw0rp
Working directories are now set seperately from the commands so they can later be swapped out when running linters over projects is supported, and also better support filename mapping for running linters on other machines in future.
2020-11-18pass lsp intialization_options to rust-analyzerBen Linsay
fixes #3350
2020-08-13rust/cargo: add support for a custom target directoryBen Boeckel
This can avoid having to wait for ALE or ALE being blocked on other cargo actions within the same crate.
2020-04-09rust-analyzer server binary changed nameJon Gjengset
2019-10-18Make more names match upJon Gjengset
2019-10-16Add support for rust-analyzerJon Gjengset
Fixes #2832
2019-06-25support all cargo options for build/clippyJean Mertz
2019-06-24support clippy options with --Jean Mertz
2019-04-11change default value of ale_rust_rls_toolchain and update documentationrobertking
2019-04-07#2132 - Replace command_chain and chain_with with ale#command#Runw0rp
2019-03-05Add lsp_config support for rls (#2332)Nathan Henrie
* Add lsp_config for rls * Add working config example and test
2019-02-22#2132 - Replace all uses of foo_callback with foow0rp
2018-10-22Add support for `cargo clippy` (#2001)Linda_pp
* Add support for `cargo clippy` * Add tests for cargo-clippy support * Add an example to doc for how to configure ale_rust_cargo_use_clippy
2018-09-04Improve ALE project style checkingw0rp
* The project style linter now runs while you type. * Now the scripts for checking the project require blank lines. * Many style issues have been found and fixed.
2018-08-12Merge pull request #1806 from jimenezrick/fix-rustc-linterw0rp
Fix #1684: Use the correct flag name in rustc linter
2018-08-10Fix #1684: Use the correct flag name in rustc linterRicardo Catalinas Jiménez
The rust compiler renamed the option '-Z no-trans' to '-Z no-codegen'. https://github.com/rust-lang/rust-enhanced/issues/281
2018-08-02Simplify the code for most linters and tests with closuresw0rp
2018-07-04Make the language option for LSP linters optionalw0rp
2018-06-27Rust Cargo linter: Improve workspace support (#1679)Dan Aloni
* Rust Cargo linter: Improve workspace support When using Cargo workspaces [1], there is a 'Cargo.toml' directory in a top level directory, listing all the crates in the project. If we are currently editing one of the crates, 'cargo build' should execute in that directory for that crate's separate `Cargo.toml`, otherwise Cargo may spend more time possibly rebuilding the entire workspace, and maybe failing on one of the other crates, instead of succeeding on the current. [1] https://doc.rust-lang.org/book/second-edition/ch14-03-cargo-workspaces.html
2018-06-04Allow linting rust tests and examples with cargoMichał Budzyński
2018-04-27Close #1521 - Allow the language to be set with simple strings for LSP lintersw0rp
2018-04-12Fix rust rls linter toolchain argumenteyenseo
This removes the argument if the specified toolchain is empty. As far as I can tell there is no +nighly (or similar) option [1] leading to the termination of the server. But since people needed this option and have yet to complain about it it stays the default for now. [1] https://github.com/rust-lang-nursery/rls/blob/master/src/main.rs#L87
2018-01-11Teach ALE about cargo features and add some configuration optionsIvan Petkov
* When working on rust/cargo projects of varying sizes, it may be useful to either build all possible features (i.e. lint all possible conditionally compiled code), or even turn off other features for a quicker edit-lint cycle (e.g. for large projects with large build times) * Added a g:ale_rust_cargo_default_feature_behavior flag for instructing cargo to not build any features at all (via `--no-default-features`), building default features (via no extra flags), or building all possible features (via `--all-features`) * Also added a g:ale_rust_cargo_include_features flag for including arbitrary features to be checked by cargo. When coupled with g:ale_rust_cargo_default_feature_behavior this allows for full customization of what features are checked and which ones are ignored
2017-12-19Fix #1031 - Make the rust flags configurablew0rp
2017-12-07Fix #1202 - Do not use --all-targets by default, because it doesn't work ↵w0rp
some of the time.
2017-11-26Fix #1166 - Add an option for the rls toolchainw0rp
2017-11-09Simplfy semver handling and share the semver version cache across everythingw0rp
2017-11-05Fix #626 - Automatically use `cargo check` and `cargo check --all-targets` ↵w0rp
for cargo versions that are new enough
2017-10-26Fix #1045 - Handle both output streams for Cargow0rp
2017-08-11Ban !=# and !=? from the codebasew0rp
2017-08-02Cover the Rust LSP with tests, allow LSP linters to be named anything, and ↵w0rp
rename the Rust LSP linter to `rls`
2017-07-30#517 - Get the Rust language server working in a basic wayw0rp
2017-04-17Move path functions to their own filew0rp
2017-04-16#427 Implement buffer variable overrides for all linter optionsw0rp
2017-03-29Use the lint_file option so the Cargo linter will only be run against files ↵w0rp
on disk
2017-03-27Make cargo linter lighter: (#408)Idan Arye
- Use `cargo check` instead of `cargo build` when `g:ale_rust_cargo_use_check` is truish. - Use `--frozen` to avoid locking the project.
2017-02-07Cover the Rust handler with some testsw0rp
2017-02-07#256 Attempt to fix Rust linter issues againw0rp
2017-02-07#256 Attempt to fix Rust linter issuesw0rp
2017-02-06Fix rust linting with cargo when multiple targets are presentnotkild
2017-01-22Add a script for custom checks to enforce using the abort flag for functions ↵w0rp
and trailing whitespace, and fix existing issues.
2017-01-19REVERT "Fix some naming conventions and use abort for all Rust functions, ↵w0rp
and disable the rust linters for now, re #256" This reverts commit f412b4f96fa49f4ed856db25c10bdf4b9c2e4cec. Conflicts: doc/ale.txt
2017-01-13Fix some naming conventions and use abort for all Rust functions, and ↵w0rp
disable the rust linters for now, re #256
2017-01-12Add support for Rust using rustc and cargo (#230)EinfachToll
* Add rustc checker for rust files * Add documentation for rustc * Use a nice helper function * Add cargo as linter * Complete the doc for rust linters * Put l: in front of every local variable * Apply the requested stylistic changes