Skip to content

gdformat does not pick up line length setting from gdformatrc #361

@pew-jfrohlander

Description

@pew-jfrohlander

Additional configuration options were added in response to thise request #345

But the setting line_length: 80 is not picked up by gdformat due to the default being specific in docopt.

This if case will always return true

 line_length = ( int(arguments["--line-length"]) if arguments["--line-length"] else config.get("line_length", DEFAULT_CONFIG["line_length"]) ) 

since docopt will add the --line-length argument if missing.

Since the default is now handled by DEFAULT_CONFIG, one solution is to just remove the default from docopt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions