Skip to content

config breaking check#226

Merged
hound672 merged 2 commits into
task/breaking-check-filefrom
task/breaking-check-file-config
May 17, 2026
Merged

config breaking check#226
hound672 merged 2 commits into
task/breaking-check-filefrom
task/breaking-check-file-config

Conversation

@hound672
Copy link
Copy Markdown
Contributor

No description provided.

@hound672 hound672 merged commit f69d34c into task/breaking-check-file May 17, 2026
2 checks passed
@hound672 hound672 deleted the task/breaking-check-file-config branch May 17, 2026 13:41
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds configuration plumbing for a new breaking-check option intended to enable FILES_CHECK.

Changes:

  • Adds breaking.use to the config model and example config.
  • Introduces FILES_CHECK as a core breaking-check option.
  • Passes the parsed option into BreakingChecker.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
internal/core/breaking_checker.go Adds a filesCheck flag to the checker.
internal/core/breaking_check.go Defines the FILES_CHECK option and passes config into the checker.
internal/config/breaking_check.go Adds Use []string to breaking config.
internal/api/temporaly_helper.go Parses breaking.use and maps FILES_CHECK to core config.
example.easyp.yaml Shows breaking.use: [FILES_CHECK] in the example config.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

against ProtoData
current ProtoData

filesCheck bool
Comment on lines +7 to +8
AgainstGitRef string `json:"against_git_ref,omitempty" yaml:"against_git_ref,omitempty"`
Use []string `json:"use,omitempty" yaml:"use,omitempty"`
linterIgnoreDirs := append(cfg.Lint.Ignore, vendorPath)
breakingCheckIgnoreDirs := append(cfg.BreakingCheck.Ignore, vendorPath)

filesCheck := slices.Contains(cfg.BreakingCheck.Use, core.BreakingCheckFilesCheck)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants