summaryrefslogtreecommitdiff
path: root/vendor/github.com/google/yamlfmt/formatters/basic/config.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-24 17:40:45 -0600
committermo khan <mo@mokhan.ca>2025-07-24 17:40:45 -0600
commitd48fe690c3c071cb5c8e3aa4d4672a32230a5e2d (patch)
tree414f9e91877e901cb3de12be6f466cb4929f55ab /vendor/github.com/google/yamlfmt/formatters/basic/config.go
parent7257c213887c6a80f727642b016606ec10340ed9 (diff)
refactor: extract job to process relationship updates in background
Diffstat (limited to 'vendor/github.com/google/yamlfmt/formatters/basic/config.go')
-rw-r--r--vendor/github.com/google/yamlfmt/formatters/basic/config.go35
1 files changed, 19 insertions, 16 deletions
diff --git a/vendor/github.com/google/yamlfmt/formatters/basic/config.go b/vendor/github.com/google/yamlfmt/formatters/basic/config.go
index 82e67eb..2a32d05 100644
--- a/vendor/github.com/google/yamlfmt/formatters/basic/config.go
+++ b/vendor/github.com/google/yamlfmt/formatters/basic/config.go
@@ -18,25 +18,28 @@ import (
"runtime"
"github.com/google/yamlfmt"
+ yamlFeatures "github.com/google/yamlfmt/formatters/basic/features"
)
type Config struct {
- Indent int `mapstructure:"indent"`
- IncludeDocumentStart bool `mapstructure:"include_document_start"`
- LineEnding yamlfmt.LineBreakStyle `mapstructure:"line_ending"`
- LineLength int `mapstructure:"max_line_length"`
- RetainLineBreaks bool `mapstructure:"retain_line_breaks"`
- RetainLineBreaksSingle bool `mapstructure:"retain_line_breaks_single"`
- DisallowAnchors bool `mapstructure:"disallow_anchors"`
- ScanFoldedAsLiteral bool `mapstructure:"scan_folded_as_literal"`
- IndentlessArrays bool `mapstructure:"indentless_arrays"`
- DropMergeTag bool `mapstructure:"drop_merge_tag"`
- PadLineComments int `mapstructure:"pad_line_comments"`
- TrimTrailingWhitespace bool `mapstructure:"trim_trailing_whitespace"`
- EOFNewline bool `mapstructure:"eof_newline"`
- StripDirectives bool `mapstructure:"strip_directives"`
- ArrayIndent int `mapstructure:"array_indent"`
- IndentRootArray bool `mapstructure:"indent_root_array"`
+ Indent int `mapstructure:"indent"`
+ IncludeDocumentStart bool `mapstructure:"include_document_start"`
+ LineEnding yamlfmt.LineBreakStyle `mapstructure:"line_ending"`
+ LineLength int `mapstructure:"max_line_length"`
+ RetainLineBreaks bool `mapstructure:"retain_line_breaks"`
+ RetainLineBreaksSingle bool `mapstructure:"retain_line_breaks_single"`
+ DisallowAnchors bool `mapstructure:"disallow_anchors"`
+ ScanFoldedAsLiteral bool `mapstructure:"scan_folded_as_literal"`
+ IndentlessArrays bool `mapstructure:"indentless_arrays"`
+ DropMergeTag bool `mapstructure:"drop_merge_tag"`
+ PadLineComments int `mapstructure:"pad_line_comments"`
+ TrimTrailingWhitespace bool `mapstructure:"trim_trailing_whitespace"`
+ EOFNewline bool `mapstructure:"eof_newline"`
+ StripDirectives bool `mapstructure:"strip_directives"`
+ ArrayIndent int `mapstructure:"array_indent"`
+ IndentRootArray bool `mapstructure:"indent_root_array"`
+ DisableAliasKeyCorrection bool `mapstructure:"disable_alias_key_correction"`
+ ForceArrayStyle yamlFeatures.SequenceStyle `mapstructure:"force_array_style"`
}
func DefaultConfig() *Config {