ÆC-0003: Skipping a single line #1044
-
In my CI, I apply Aeruginous to lint my code with its application mode |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For this case, there is the Mercy Mode for ÆC-0003, Please consider the following snippet from the Aeruginous code base as an example: #![doc(
html_logo_url = "https://github.com/kevinmatthes/aeruginous-rs/raw/main/aeruginous.svg"
)] This attribute in src/lib.rs controls which resource shall be bound as documentation logo. As the URL cannot be shortened, the line is longer than 80 characters and would thus violate against ÆC-0003. Furthermore, even the introduction of a line break would not solve the problem as this would not meet the formatting rules of #![doc(
html_logo_url = "https://github.com/kevinmatthes/aeruginous-rs/raw/main/aeruginous.svg" // #[aeruginous::mercy::0003]
)] The Mercy Mode for ÆC-0003 is not limited to Rust code in particular, it works for every coding language. |
Beta Was this translation helpful? Give feedback.
For this case, there is the Mercy Mode for ÆC-0003,
#[aeruginous::mercy::0003]
.Please consider the following snippet from the Aeruginous code base as an example:
This attribute in src/lib.rs controls which resource shall be bound as documentation logo. As the URL cannot be shortened, the line is longer than 80 characters and would thus violate against ÆC-0003. Furthermore, even the introduction of a line break would not solve the problem as this would not meet the formatting rules of
rustfmt
anymore. The solution is to add#[aeruginous::mercy::0003]
as a comment to the overlong line to …