Re:GitHub Super Linter: one linter to rule them all
by VectorLock on Thursday June 18, 2020 @05:25PM
(#23568202)
Formatters don't have the understanding like the developers do. Certain changes that might increase the understandability for a human might get obliterated if they don't conform to the rules of the autoformatter.
Re:GitHub Super Linter: one linter to rule them all
by pmiller2 on Thursday June 18, 2020 @04:57PM
(#23567935)
Rather than “writing... with a model of how black will yield the final code in mind,” it’s more like “Oh, shit, Black made a real mess of this. Can I fix this without butchering the code?”
This could be the case if you have extreme confidence in the formatter, but I have def seen some very funky black outputs. It seems like when writing people will likely do so with a model of how black will yield the final code in mind. (Eg "if I add more characters to this one line list statement, it will get exploded across 5 lines", and affect readability, etc..)