File tree Expand file tree Collapse file tree 6 files changed +334
-64
lines changed
lints/leptos_print_stdout Expand file tree Collapse file tree 6 files changed +334
-64
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ license.workspace = true
88publish.workspace = true
99repository.workspace = true
1010
11+ [lints ]
12+ workspace = true
13+
1114[lib ]
1215crate-type = [" cdylib" ]
1316
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11[package ]
22name = " leptos_print_stdout"
33authors = [" Álvaro Mondéjar Rubio" ]
4- description = " Check for calls to `leptos::logging::log!`. "
4+ description = " Check for calls to `leptos::logging::log!`"
55version.workspace = true
66edition.workspace = true
77license.workspace = true
Original file line number Diff line number Diff 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
5050impl EarlyLintPass for LeptosPrintStdout {
You can’t perform that action at this time.
0 commit comments