YgorSouza
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
6 additions and
6 deletions
-
.vscode/settings.json
-
Cargo.toml
-
clippy.toml
|
|
@ -15,7 +15,7 @@ |
|
|
|
// Tell Rust Analyzer to use its own target directory, so we don't need to wait for it to finish wen we want to `cargo run` |
|
|
|
"rust-analyzer.check.overrideCommand": [ |
|
|
|
"cargo", |
|
|
|
"cranky", |
|
|
|
"clippy", |
|
|
|
"--target-dir=target_ra", |
|
|
|
"--workspace", |
|
|
|
"--message-format=json", |
|
|
@ -24,7 +24,7 @@ |
|
|
|
], |
|
|
|
"rust-analyzer.cargo.buildScripts.overrideCommand": [ |
|
|
|
"cargo", |
|
|
|
"cranky", |
|
|
|
"clippy", |
|
|
|
"--quiet", |
|
|
|
"--target-dir=target_ra", |
|
|
|
"--workspace", |
|
|
|
|
|
@ -237,11 +237,11 @@ verbose_file_reads = "warn" |
|
|
|
wildcard_dependencies = "warn" |
|
|
|
zero_sized_map_values = "warn" |
|
|
|
|
|
|
|
# TODO(emilk): enable more of these linits: |
|
|
|
# TODO(emilk): enable more of these lints: |
|
|
|
iter_over_hash_type = "allow" |
|
|
|
let_underscore_untyped = "allow" |
|
|
|
missing_assert_message = "allow" |
|
|
|
print_stderr = "allow" # TODO(emilk): use `log` crate insteaditer_over_hash_type = "allow" |
|
|
|
print_stderr = "allow" # TODO(emilk): use `log` crate instead |
|
|
|
should_panic_without_expect = "allow" |
|
|
|
too_many_lines = "allow" |
|
|
|
unwrap_used = "allow" # TODO(emilk): We really wanna warn on this one |
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
# There is also a scripts/clippy_wasm/clippy.toml which forbids some mthods that are not available in wasm. |
|
|
|
# There is also a scripts/clippy_wasm/clippy.toml which forbids some methods that are not available in wasm. |
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------- |
|
|
|
# Section identical to scripts/clippy_wasm/clippy.toml: |
|
|
@ -67,7 +67,7 @@ disallowed-types = [ |
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------- |
|
|
|
|
|
|
|
# Allow-list of words for markdown in dosctrings https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown |
|
|
|
# Allow-list of words for markdown in docstrings https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown |
|
|
|
doc-valid-idents = [ |
|
|
|
# You must also update the same list in the root `clippy.toml`! |
|
|
|
"AccessKit", |
|
|
|