cargo clippy

built-in
52.6% Savings
380 Commands
57.3K Tokens saved
2 Tests

Install

tokf install c170e7e8d106d6c9f6c1e7a919b49d6036d54d9af63c26600611e5fb2fe35345
Safety checks passed

Filter definition

command = "cargo clippy"
skip = [
  "^   Compiling ",
  "^    Checking ",
  "^     Locking ",
]

[on_success]
output = "ok ✓ no warnings"

[on_failure]
tail = 30

Examples

success output shows no warnings ~29 tokens → ~4 tokens (86% saved)
Raw output
    Checking tokf v0.1.0 (/Users/user/project)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.23s
Filtered output
ok ✓ no warnings
warnings show lint output ~85 tokens → ~73 tokens (14% saved)
Raw output
    Checking tokf v0.1.0 (/Users/user/project)
warning: unused variable: `x`
 --> src/main.rs:3:5
  |
3 |     let x = 5;
  |         ^ help: if this is intentional, prefix it with an underscore: `_x`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: 1 warning emitted

error: could not compile `tokf` due to 1 previous error
Filtered output
warning: unused variable: `x`
 --> src/main.rs:3:5
  |
3 |     let x = 5;
  |         ^ help: if this is intentional, prefix it with an underscore: `_x`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: 1 warning emitted

error: could not compile `tokf` due to 1 previous error
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters