Skip to content

Commit 981549b

Browse files
authored
Add more meta tests for consistency (#8)
1 parent 70c0e2f commit 981549b

File tree

6 files changed

+334
-64
lines changed

6 files changed

+334
-64
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,19 @@ jobs:
6464
tool: dylint-link
6565
- name: Run Clippy
6666
run: cargo clippy -- -Dwarnings
67+
68+
cargo-workspace-lints:
69+
name: QA (Cargo Workspace Lints)
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/checkout@v4
73+
- name: Setup Rust
74+
uses: actions-rust-lang/setup-rust-toolchain@v1
75+
- uses: taiki-e/install-action@v2
76+
with:
77+
tool: cargo-workspace-lints
78+
- name: Run cargo-workspace-lints
79+
run: cargo workspace-lints
6780

6881
test:
6982
name: Test

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ license.workspace = true
88
publish.workspace = true
99
repository.workspace = true
1010

11+
[lints]
12+
workspace = true
13+
1114
[lib]
1215
crate-type = ["cdylib"]
1316

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,20 @@ The downside of this approach is that unknown lints will be allowed by default.
7373

7474
## Lints
7575

76-
| Rule | Description |
77-
| ----------------------- | ------------------------------------------- |
78-
| [`leptos_print_stdout`] | Check for calls to `leptos::logging::log!`. |
76+
<!--
77+
WARNING: The next table is autogenerated. Don't edit it manually.
78+
Run `cargo test -p tests` to update it.
79+
-->
80+
81+
<!-- lints table start -->
82+
83+
| Rule | Description | Default level |
84+
| --- | --- | :-: |
85+
| [`leptos_print_stdout`] | Check for calls to `leptos::logging::log!` | warn |
7986

8087
[`leptos_print_stdout`]: https://github.com/leptos-rs/leptos-lints/tree/main/lints/leptos_print_stdout#readme
8188

89+
<!-- lints table end -->
90+
8291
[Dylint]: https://github.com/trailofbits/dylint
8392
[Leptos]: https://leptos.dev

lints/leptos_print_stdout/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "leptos_print_stdout"
33
authors = ["Álvaro Mondéjar Rubio"]
4-
description = "Check for calls to `leptos::logging::log!`."
4+
description = "Check for calls to `leptos::logging::log!`"
55
version.workspace = true
66
edition.workspace = true
77
license.workspace = true

lints/leptos_print_stdout/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dylint_linting::declare_pre_expansion_lint! {
4444
/// ```
4545
pub LEPTOS_PRINT_STDOUT,
4646
Warn,
47-
"Check for calls to `leptos::logging::log!`."
47+
"Check for calls to `leptos::logging::log!`"
4848
}
4949

5050
impl EarlyLintPass for LeptosPrintStdout {

0 commit comments

Comments
 (0)