Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
86 lines (81 loc) · 2.55 KB
/
Copy pathCargo.toml
File metadata and controls
86 lines (81 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Workspace for all Rust packages _except_ the Python extractor.
#
# The Python extractor can not be included as it links against an older version
# of tree-sitter. When this is no longer the case, the Python extractor should
# be included here as well.
[workspace]
resolver = "2"
members = [
"shared/tree-sitter-extractor",
"shared/yeast",
"shared/yeast-macros",
"shared/yeast-schema",
"ruby/extractor",
"unified/extractor",
"unified/swift-syntax-rs",
"rust/extractor",
"rust/extractor/macros",
"rust/ast-generator",
"rust/autobuild",
"cpp/extractor/bmn",
"ql/extractor",
"ql/buramu",
"ql/buramu/tree-sitter-blame",
"unified/extractor-unsupported-os",
]
exclude = [
"python/extractor/tsg-python",
"rust/ql/test",
"rust/ql/integration-tests",
]
[workspace.lints.rust]
redundant_imports = "warn"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
# Allowlist of pedantic rules that we've observed to be of questionable value
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
implicit_hasher = "allow"
if_not_else = "allow"
# This lint has a lot of results in generated code.
unnecessary_wraps = "allow"
# Spelling out the full method name can often be tedious.
# E.g., `|v| v.as_slice()` vs `vec::Vec::as_slice`
redundant_closure_for_method_calls = "allow"
# The next three are only false positives and questionable results
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
# False positives
struct_excessive_bools = "allow"
# False positives for things like "matches" and "matched"
similar_names = "allow"
match_same_arms = "allow"
struct_field_names = "allow"
# Additional lints from the `restriction` and `nursery` group
as_pointer_underscore = "warn"
clone_on_ref_ptr = "warn"
collection_is_never_read = "warn"
deref_by_slicing = "warn"
derive_partial_eq_without_eq = "warn"
disallowed_script_idents = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
fn_to_numeric_cast_any = "warn"
if_then_some_else_none = "warn"
needless_pass_by_ref_mut = "warn"
or_fun_call = "warn"
redundant_clone = "warn"
redundant_type_annotations = "warn"
renamed_function_params = "warn"
semicolon_inside_block = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_struct_initialization = "warn"
unneeded_field_pattern = "warn"
unused_result_ok = "warn"
too_long_first_doc_paragraph = "warn"