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
dfmt doesn't support one line exceptions to rules, only multi-line blocks. That is overly verbose for removing single style errors. It also introduces the possibility of ignoring (and missing) multiple errors if users place them at natural boundaries at beginning/ending of blocks (say, start/end of a struct which ignores intended issue but also ignores an additional style violation inside by accident).
structrect { float x, y, w, h; }
"Struct name 'rect' does not match style guidelines"
current solution:
// dfmt offstructrect { float x, y, w, h; }
// dfmt on
A natural solution would be support for single line rule exceptions:
proposed solution:
structrect { float x, y, w, h; } // dfmt oneoff
The text was updated successfully, but these errors were encountered:
dfmt doesn't support one line exceptions to rules, only multi-line blocks. That is overly verbose for removing single style errors. It also introduces the possibility of ignoring (and missing) multiple errors if users place them at natural boundaries at beginning/ending of blocks (say, start/end of a struct which ignores intended issue but also ignores an additional style violation inside by accident).
current solution:
A natural solution would be support for single line rule exceptions:
proposed solution:
The text was updated successfully, but these errors were encountered: