Skip to content

Commit

Permalink
Merge pull request #341 from acme/1-trailing-comment-width
Browse files Browse the repository at this point in the history
fix(config): adjust default TrailingCommentWidth to 1
  • Loading branch information
ysugimoto authored Jul 30, 2024
2 parents 83d14c0 + 3381459 commit 2130590
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ type FormatConfig struct {

// Formatter options
IndentWidth int `yaml:"indent_width" default:"2"`
TrailingCommentWidth int `yaml:"trailing_comment_width" default:"2"`
TrailingCommentWidth int `yaml:"trailing_comment_width" default:"1"`
IndentStyle string `yaml:"indent_style" default:"space"`
LineWidth int `yaml:"line_width" default:"120"`
ExplicitStringConat bool `yaml:"explicit_string_concat" default:"false"`
Expand Down
2 changes: 1 addition & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestConfigFromCLI(t *testing.T) {
},
Format: &FormatConfig{
IndentWidth: 2,
TrailingCommentWidth: 2,
TrailingCommentWidth: 1,
LineWidth: 120,
IndentStyle: "space",
ExplicitStringConat: false,
Expand Down

0 comments on commit 2130590

Please sign in to comment.