-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(pipeline)!: add warnings to pipelines that use legacy YAML lib or have dupl anchors in map #1232
Conversation
… have dupl anchors in map
@@ -391,9 +391,9 @@ | |||
} | |||
|
|||
//nolint:lll // ignore long line length due to input arguments | |||
func (c *client) mergeTemplate(bytes []byte, tmpl *yaml.Template, step *yaml.Step) (*yaml.Build, error) { | |||
func (c *client) mergeTemplate(bytes []byte, tmpl *yaml.Template, step *yaml.Step) (*yaml.Build, []string, error) { | |||
switch tmpl.Format { | |||
case constants.PipelineTypeGo, "golang", "": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
string golang
has 3 occurrences, make it a constant (goconst)
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1232 +/- ##
==========================================
+ Coverage 56.61% 56.66% +0.04%
==========================================
Files 626 626
Lines 35495 35541 +46
==========================================
+ Hits 20096 20139 +43
- Misses 14720 14722 +2
- Partials 679 680 +1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome!
Added
warnings
field to pipelines that will aggregate non-breaking but call-out worthy YAML transgressions.