Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
9b20d91e
Commit
9b20d91e
authored
Apr 04, 2018
by
Ryan Hartje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using existing mechanism to flag for failures
parent
343acc5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
lint.go
cmd/helm/lint.go
+1
-6
No files found.
cmd/helm/lint.go
View file @
9b20d91e
...
...
@@ -97,13 +97,12 @@ func (l *lintCmd) run() error {
var
total
int
var
failures
int
rc
:=
0
for
_
,
path
:=
range
l
.
paths
{
if
linter
,
err
:=
lintChart
(
path
,
rvals
,
l
.
namespace
,
l
.
strict
);
err
!=
nil
{
fmt
.
Println
(
"==> Skipping"
,
path
)
fmt
.
Println
(
err
)
if
err
==
errLintNoChart
{
rc
=
1
failures
=
failures
+
1
}
}
else
{
fmt
.
Println
(
"==> Linting"
,
path
)
...
...
@@ -131,10 +130,6 @@ func (l *lintCmd) run() error {
fmt
.
Fprintf
(
l
.
out
,
"%s, no failures
\n
"
,
msg
)
if
rc
!=
0
{
os
.
Exit
(
rc
)
}
return
nil
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment