Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameterize the max line length for the report table. #30

Closed
wants to merge 1 commit into from

Commits on Jan 11, 2018

  1. Parameterize the max line length for the report table.

        
    This adds an extra iteration across all violations in all cases. It’s 
    possible to only do so when the max line length is specified, but doing 
    so increases the number of branches and makes the code a bit harder to
    read.
    
    This also creates the FlipTable twice, once to measure the line lengths 
    and then again after we’ve set our target line breaks. It’s also 
    possible to make some assumptions about the whitespace and number of 
    characters that FlipTable will add and avoid the second table creation. 
    However, assuming that the construction of the table is not super 
    performance critical, it seems more robust to just measure the output.
    
    A nice TODO might be to add coherent line breaking so we don’t break
    in the middle of words, but this isn’t technically a regression from
    the current 100 character message limit.
    sjudd committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    cbd8144 View commit details
    Browse the repository at this point in the history