Function should_prettyprint

Source
pub fn should_prettyprint(source_str: &str) -> bool
Expand description

Uses a heuristic to decide if the source file needs prettyprinting: whether its average line length is > 100.

We also prettyprint if the source string starts with “//PRETTYPRINT”. This is useful for testing.