Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.16 KB

clippy.md

File metadata and controls

52 lines (34 loc) · 1.16 KB
description title layout
A collection of lints to catch common mistakes and improve your Rust code.
Trunk | How to run Clippy
title description tableOfContents outline pagination
visible
true
visible
visible
true
visible
true
visible
true

Clippy

Clippy is a linter for Rust.

You can enable the Clippy linter with:

trunk check enable clippy

Auto Enabling

Clippy will be auto-enabled if any Rust files are present.

Settings

Clippy supports the following config files:

  • clippy.toml
  • .clippy.toml

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linter Configs for more info.

Usage Notes

Clippy is distributed with rust itself, so specify your rust version for your clippy version (for example clippy@1.61.0).

Links