mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-15 17:13:46 +01:00
Fix cli lint throwing error on warnings (#2995)
split out from #2771 --------- Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
@@ -101,9 +101,9 @@ func lintFile(_ *cli.Context, file string) error {
|
||||
// TODO: lint multiple files at once to allow checks for sth like "depends_on" to work
|
||||
err = linter.New(linter.WithTrusted(true)).Lint([]*linter.WorkflowConfig{config})
|
||||
if err != nil {
|
||||
fmt.Printf("🔥 %s has errors:\n", output.String(config.File).Underline())
|
||||
fmt.Printf("🔥 %s has warning / errors:\n", output.String(config.File).Underline())
|
||||
|
||||
hasErrors := true
|
||||
hasErrors := false
|
||||
for _, err := range pipeline_errors.GetPipelineErrors(err) {
|
||||
line := " "
|
||||
|
||||
|
||||
Reference in New Issue
Block a user