forked from toolshed/abra
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			abra-app-m
			...
			improve-li
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 7c9f3caacb | 
| @ -15,8 +15,10 @@ import ( | |||||||
| 	"github.com/go-git/go-git/v5/plumbing" | 	"github.com/go-git/go-git/v5/plumbing" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| var Warn = "warn" | var ( | ||||||
| var Critical = "critical" | 	Warn     = "warn" | ||||||
|  | 	Critical = "critical" | ||||||
|  | ) | ||||||
|  |  | ||||||
| type LintFunction func(recipe.Recipe) (bool, error) | type LintFunction func(recipe.Recipe) (bool, error) | ||||||
|  |  | ||||||
| @ -194,7 +196,7 @@ func LintForErrors(recipe recipe.Recipe) error { | |||||||
|  |  | ||||||
| 			ok, err := rule.Function(recipe) | 			ok, err := rule.Function(recipe) | ||||||
| 			if err != nil { | 			if err != nil { | ||||||
| 				return err | 				return fmt.Errorf("lint %s: %s", rule.Ref, err) | ||||||
| 			} | 			} | ||||||
| 			if !ok { | 			if !ok { | ||||||
| 				return fmt.Errorf("lint error in %s configs: \"%s\" failed lint checks (%s)", recipe.Name, rule.Description, rule.Ref) | 				return fmt.Errorf("lint error in %s configs: \"%s\" failed lint checks (%s)", recipe.Name, rule.Description, rule.Ref) | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user