github.com/khulnasoft/codebase@v0.0.0-20231214144635-a707781cbb24/errorformat/fmts/rust.go (about)

     1  package fmts
     2  
     3  func init() {
     4  	const lang = "rust"
     5  
     6  	register(&Fmt{
     7  		Name: "cargo-check",
     8  		Errorformat: []string{
     9  			`%f:%l:%c: %m`,
    10  		},
    11  		Description: "(cargo check -q --message-format=short) Check a local package and all of its dependencies for errors",
    12  		URL:         "https://github.com/rust-lang/cargo",
    13  		Language:    lang,
    14  	})
    15  
    16  	register(&Fmt{
    17  		Name: "clippy",
    18  		Errorformat: []string{
    19  			`%f:%l:%c: %m`,
    20  		},
    21  		Description: "(cargo clippy -q --message-format=short) A bunch of lints to catch common mistakes and improve your Rust code",
    22  		URL:         "https://github.com/rust-lang/rust-clippy",
    23  		Language:    lang,
    24  	})
    25  }