Skip to content

Commit

Permalink
extend Cargo.toml validation (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy authored Jul 5, 2024
1 parent 40ed4fb commit 15d8d4f
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
10 changes: 9 additions & 1 deletion earthly/rust/scripts/std_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,19 @@ def main():
strict=False,
log=False,
)
if not res1.ok() and not res2.ok():
res3 = vendor_files_check.toml_diff_check(
"/stdcfgs/cargo_manifest/project.toml",
cargo_toml_path,
strict=False,
log=False,
)
if not res1.ok() and not res2.ok() and not res3.ok():
res1.print(verbose_errors=True)
res2.print(verbose_errors=True)
res3.print(verbose_errors=True)
results.add(res1)
results.add(res2)
results.add(res3)

results.add(
vendor_files_check.toml_diff_check(
Expand Down
36 changes: 36 additions & 0 deletions earthly/rust/stdcfgs/cargo_manifest/project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[package]
edition = "2021"

[lints.rust]
warnings = "deny"
missing_docs = "deny"
let_underscore_drop = "deny"
non_ascii_idents = "deny"
single_use_lifetimes = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "deny"

[lints.rustdoc]
broken_intra_doc_links = "deny"
invalid_codeblock_attributes = "deny"
invalid_html_tags = "deny"
invalid_rust_codeblocks = "deny"
bare_urls = "deny"
unescaped_backticks = "deny"

[lints.clippy]
pedantic = "deny"
unwrap_used = "deny"
expect_used = "deny"
exit = "deny"
get_unwrap = "deny"
index_refutable_slice = "deny"
indexing_slicing = "deny"
match_on_vec_items = "deny"
match_wild_err_arm = "deny"
missing_panics_doc = "deny"
panic = "deny"
string_slice = "deny"
unchecked_duration_subtraction = "deny"
unreachable = "deny"
missing_docs_in_private_items = "deny"

0 comments on commit 15d8d4f

Please sign in to comment.