Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Philip K. Warren <[email protected]>
  • Loading branch information
doriable and pkwarren authored Jun 25, 2024
1 parent 1b5e809 commit 4d71dc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions private/bufpkg/bufconfig/buf_yaml_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ type BufYAMLFile interface {
ModuleConfigs() []ModuleConfig
// DefaultLintConfig returns the DefaultLintConfig for the File.
//
// For v1 buf.yaml files, there is only ever a single ModuleConfig, so that is returned.
// For v1 buf.yaml files, there is only ever a single ModuleConfig, so its LintConfig is returned.
// For v2 buf.yaml files, if a top-level lint config exists, then it will be the top-level
// lint config. Otherwise it is the default v2 lint config.
DefaultLintConfig() LintConfig
// DefaultBreakingConfig returns the DefaultBreakingConfig for the File.
//
// For v1 buf.yaml files, there is only ever a single ModuleConfig, so that is returned.
// For v1 buf.yaml files, there is only ever a single ModuleConfig, so its BreakingConfig is returned.
// For v2 buf.yaml files, if a top-level breaking config exists, then it will be the top-level
// breaking config. Otherwise it is the default v2 breaking config.
DefaultBreakingConfig() BreakingConfig
Expand Down

0 comments on commit 4d71dc2

Please sign in to comment.