Publication Type
Conference Proceeding Article
Version
publishedVersion
Publication Date
4-2024
Abstract
The error messages generated by the Rust compiler (rustc) are useful for developers to identify and diagnose suspicious code segments. Complementing the compiler, linters can also play an important role in promoting the adherence to certain coding style conventions and best practices. Prominent linters utilized in the Rust ecosystem include Clippy [1] and Rustfmt [2]. Among them, the Rust community particularly emphasizes on the importance of heeding the warnings provided by Clippy to mitigate common errors and promote the adoption of idiomatic conventions. Clippy provides a set of more than 600 lints in addition to the built-in rustc lints. These lints are divided into nine distinct categories that address correctness and style aspects. Each category is assigned a default lint level, namely Allow, Warn, or Deny, indicating the severity with which the lints are reported.
Discipline
Software Engineering
Research Areas
Software and Cyber-Physical Systems
Publication
2024 IEEE/ACM 46th International Conference on Software Engineering: Companion Proceedings (ICSE-Companion), April 14-20, 2024, Lisbon
First Page
318
Last Page
319
ISBN
9798400705021
Identifier
10.1145/3639478.3643096
Publisher
IEEE Computer Society
City or Country
Washington, DC
Citation
LI, Chunmiao; YU, Yijun; WU, Haitao; CARLIG, Luca; NIE, Shijie; and JIANG, Lingxiao.
Unleashing the power of Clippy in real-world Rust projects. (2024). 2024 IEEE/ACM 46th International Conference on Software Engineering: Companion Proceedings (ICSE-Companion), April 14-20, 2024, Lisbon. 318-319.
Available at: https://ink.library.smu.edu.sg/sis_research/8886
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-No Derivative Works 4.0 International License.
Additional URL
https://doi.org/10.1145/3639478.3643096