Skip to content

Commit

Permalink
version 1.0.3, move CI build flags to [lints] section of Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-kfed committed Feb 12, 2024
1 parent de95a4e commit eab3f14
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
allow-unwrap-in-tests = true
allow-expect-in-tests = true

2 changes: 0 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-F ambiguous-associated-items -F cenum-impl-drop-cast -F coherence-leak-check -F conflicting-repr-hints -F const-evaluatable-unchecked -F deprecated-cfg-attr-crate-type-name -F deref-into-dyn-supertrait -A forbidden-lint-groups -F ill-formed-attribute-input -F illegal-floating-point-literal-pattern -F indirect-structural-match -F invalid-doc-attributes -F invalid-type-param-default -F late-bound-lifetime-arguments -F legacy-derive-helpers -F macro-expanded-macro-exports-accessed-by-absolute-paths -F missing-fragment-specifier -F nontrivial-structural-match -F order-dependent-trait-objects -F patterns-in-fns-without-body -F pointer-structural-match -F private-in-public -F proc-macro-back-compat -F proc-macro-derive-resolution-fallback -F pub-use-of-private-extern-crate -F semicolon-in-expressions-from-macros -F soft-unstable -F uninhabited-static -F unstable-name-collisions -F unsupported-calling-conventions -F where-clauses-object-safety -D warnings -D missing_docs -F rust-2021-compatibility -D rust-2018-idioms -D nonstandard-style"
CLIPPY_FLAGS: "-D clippy::expect_used -D clippy::panic -D clippy::unwrap_used -D clippy::unimplemented -F clippy::suspicious -F clippy::style -F clippy::complexity -F clippy::perf"

jobs:
build:
Expand Down
53 changes: 52 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lcov2xml"
version = "1.0.2"
version = "1.0.3"
edition = "2021"
license = "Apache-2.0"
description = "convert LCOV info file to cobertura XML format"
Expand All @@ -22,3 +22,54 @@ quick-xml = "0.31.0"

[profile.release]
strip = "symbols"

[lints.rust]
unsafe_code = "forbid"
warnings = "deny"
ambiguous-associated-items = "forbid"
cenum-impl-drop-cast = "forbid"
coherence-leak-check = "forbid"
conflicting-repr-hints = "forbid"
const-evaluatable-unchecked = "forbid"
deprecated-cfg-attr-crate-type-name = "forbid"
deref-into-dyn-supertrait = "forbid"
forbidden-lint-groups = "allow"
ill-formed-attribute-input = "forbid"
illegal-floating-point-literal-pattern = "forbid"
indirect-structural-match = "forbid"
invalid-doc-attributes = "forbid"
invalid-type-param-default = "forbid"
late-bound-lifetime-arguments = "forbid"
legacy-derive-helpers = "forbid"
macro-expanded-macro-exports-accessed-by-absolute-paths = "forbid"
missing-fragment-specifier = "forbid"
nontrivial-structural-match = "forbid"
order-dependent-trait-objects = "forbid"
patterns-in-fns-without-body = "forbid"
pointer-structural-match = "forbid"
private_bounds = "forbid"
private_interfaces = "forbid"
proc-macro-back-compat = "forbid"
proc-macro-derive-resolution-fallback = "forbid"
pub-use-of-private-extern-crate = "forbid"
semicolon-in-expressions-from-macros = "forbid"
soft-unstable = "forbid"
uninhabited-static = "forbid"
unstable-name-collisions = "forbid"
unsupported-calling-conventions = "forbid"
where-clauses-object-safety = "forbid"
missing_docs = "deny"
rust-2021-compatibility = "deny"
rust-2018-idioms = "deny"
nonstandard-style = "deny"

[lints.clippy]
unwrap_used = "deny"
unwrap_in_result = "deny"
panic = "deny"
expect_used = "deny"
unimplemented = "deny"
suspicious = "forbid"
style = "forbid"
complexity = "forbid"
perf = "forbid"
53 changes: 52 additions & 1 deletion lcov2cobertura/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lcov2cobertura"
version = "1.0.2"
version = "1.0.3"
edition = "2021"
license = "Apache-2.0"
description = "convert LCOV info file to cobertura XML format"
Expand All @@ -16,3 +16,54 @@ rustc-demangle = "0.1.23"

[lib]
name = "lcov2cobertura"

[lints.rust]
unsafe_code = "forbid"
warnings = "deny"
ambiguous-associated-items = "forbid"
cenum-impl-drop-cast = "forbid"
coherence-leak-check = "forbid"
conflicting-repr-hints = "forbid"
const-evaluatable-unchecked = "forbid"
deprecated-cfg-attr-crate-type-name = "forbid"
deref-into-dyn-supertrait = "forbid"
forbidden-lint-groups = "allow"
ill-formed-attribute-input = "forbid"
illegal-floating-point-literal-pattern = "forbid"
indirect-structural-match = "forbid"
invalid-doc-attributes = "forbid"
invalid-type-param-default = "forbid"
late-bound-lifetime-arguments = "forbid"
legacy-derive-helpers = "forbid"
macro-expanded-macro-exports-accessed-by-absolute-paths = "forbid"
missing-fragment-specifier = "forbid"
nontrivial-structural-match = "forbid"
order-dependent-trait-objects = "forbid"
patterns-in-fns-without-body = "forbid"
pointer-structural-match = "forbid"
private_bounds = "forbid"
private_interfaces = "forbid"
proc-macro-back-compat = "forbid"
proc-macro-derive-resolution-fallback = "forbid"
pub-use-of-private-extern-crate = "forbid"
semicolon-in-expressions-from-macros = "forbid"
soft-unstable = "forbid"
uninhabited-static = "forbid"
unstable-name-collisions = "forbid"
unsupported-calling-conventions = "forbid"
where-clauses-object-safety = "forbid"
missing_docs = "deny"
rust-2021-compatibility = "deny"
rust-2018-idioms = "deny"
nonstandard-style = "deny"

[lints.clippy]
unwrap_used = "deny"
unwrap_in_result = "deny"
panic = "deny"
expect_used = "deny"
unimplemented = "deny"
suspicious = "forbid"
style = "forbid"
complexity = "forbid"
perf = "forbid"

0 comments on commit eab3f14

Please sign in to comment.