You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the following code, with a long link as a comment:
// my comment has a link is very long https://github.com/aurora-is-near/aurora-engine/blob/1213f2c7c035aa523601fced8f75bef61b4728ab/engine-modexp/src
fn foo(){
}
running scarb fmt will turn it into
// my comment has a link that is very long
//
// https://github.com/aurora-is-near/aurora-engine/blob/1213f2c7c035aa523601fced8f75bef61b4728ab/engine-modexp/src
fn foo() {}
running again:
// my comment has a link that is very long
//
//
//
// https://github.com/aurora-is-near/aurora-engine/blob/1213f2c7c035aa523601fced8f75bef61b4728ab/engine-modexp/src
fn foo() {}
-> if the width of a comment line is bigger than a defined threshold, the formatter will attempt to split it and add empty new lines infinitely.
The text was updated successfully, but these errors were encountered:
enitrat
changed the title
bug: long comments format inserts unwanted extra lines
bug: long comments format inserts unwanted extra lines infintely
Jun 26, 2024
Bug Report
Cairo version:
scarb 2.6.4+nightly-2024-06-26
->cairo: 2.6.4 (78777e38e)
78777e3Consider the following code, with a long link as a comment:
running
scarb fmt
will turn it intorunning again:
-> if the width of a comment line is bigger than a defined threshold, the formatter will attempt to split it and add empty new lines infinitely.
The text was updated successfully, but these errors were encountered: