Unleashing the power of Clippy in real-world Rust projects
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 lint...
Saved in:
Main Authors: | , , , , , |
---|---|
Format: | text |
Language: | English |
Published: |
Institutional Knowledge at Singapore Management University
2024
|
Subjects: | |
Online Access: | https://ink.library.smu.edu.sg/sis_research/8886 https://ink.library.smu.edu.sg/context/sis_research/article/9889/viewcontent/3639478.3643096_pvoa_cc_by.pdf |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Singapore Management University |
Language: | English |
id |
sg-smu-ink.sis_research-9889 |
---|---|
record_format |
dspace |
spelling |
sg-smu-ink.sis_research-98892024-06-13T08:52:37Z Unleashing the power of Clippy in real-world Rust projects LI, Chunmiao YU, Yijun WU, Haitao CARLIG, Luca NIE, Shijie JIANG, Lingxiao 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. 2024-04-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/8886 info:doi/10.1145/3639478.3643096 https://ink.library.smu.edu.sg/context/sis_research/article/9889/viewcontent/3639478.3643096_pvoa_cc_by.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Software Engineering |
institution |
Singapore Management University |
building |
SMU Libraries |
continent |
Asia |
country |
Singapore Singapore |
content_provider |
SMU Libraries |
collection |
InK@SMU |
language |
English |
topic |
Software Engineering |
spellingShingle |
Software Engineering LI, Chunmiao YU, Yijun WU, Haitao CARLIG, Luca NIE, Shijie JIANG, Lingxiao Unleashing the power of Clippy in real-world Rust projects |
description |
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. |
format |
text |
author |
LI, Chunmiao YU, Yijun WU, Haitao CARLIG, Luca NIE, Shijie JIANG, Lingxiao |
author_facet |
LI, Chunmiao YU, Yijun WU, Haitao CARLIG, Luca NIE, Shijie JIANG, Lingxiao |
author_sort |
LI, Chunmiao |
title |
Unleashing the power of Clippy in real-world Rust projects |
title_short |
Unleashing the power of Clippy in real-world Rust projects |
title_full |
Unleashing the power of Clippy in real-world Rust projects |
title_fullStr |
Unleashing the power of Clippy in real-world Rust projects |
title_full_unstemmed |
Unleashing the power of Clippy in real-world Rust projects |
title_sort |
unleashing the power of clippy in real-world rust projects |
publisher |
Institutional Knowledge at Singapore Management University |
publishDate |
2024 |
url |
https://ink.library.smu.edu.sg/sis_research/8886 https://ink.library.smu.edu.sg/context/sis_research/article/9889/viewcontent/3639478.3643096_pvoa_cc_by.pdf |
_version_ |
1814047610147700736 |