Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
3378e69c
Unverified
Commit
3378e69c
authored
7 years ago
by
Ryan Hartje
Committed by
Matthew Fisher
7 years ago
Browse files
Options
Download
Patches
Plain Diff
using existing mechanism to flag for failures
(cherry picked from commit
9b20d91e
)
parent
cc9de231
release-2.9
v2.9.1
v2.9.0
v2.9.0-rc5
v2.9.0-rc4
v2.9.0-rc3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/helm/lint.go
+1
-6
cmd/helm/lint.go
with
1 addition
and
6 deletions
+1
-6
cmd/helm/lint.go
+
1
−
6
View file @
3378e69c
...
@@ -97,13 +97,12 @@ func (l *lintCmd) run() error {
...
@@ -97,13 +97,12 @@ func (l *lintCmd) run() error {
var
total
int
var
total
int
var
failures
int
var
failures
int
rc
:=
0
for
_
,
path
:=
range
l
.
paths
{
for
_
,
path
:=
range
l
.
paths
{
if
linter
,
err
:=
lintChart
(
path
,
rvals
,
l
.
namespace
,
l
.
strict
);
err
!=
nil
{
if
linter
,
err
:=
lintChart
(
path
,
rvals
,
l
.
namespace
,
l
.
strict
);
err
!=
nil
{
fmt
.
Println
(
"==> Skipping"
,
path
)
fmt
.
Println
(
"==> Skipping"
,
path
)
fmt
.
Println
(
err
)
fmt
.
Println
(
err
)
if
err
==
errLintNoChart
{
if
err
==
errLintNoChart
{
rc
=
1
failures
=
failures
+
1
}
}
}
else
{
}
else
{
fmt
.
Println
(
"==> Linting"
,
path
)
fmt
.
Println
(
"==> Linting"
,
path
)
...
@@ -131,10 +130,6 @@ func (l *lintCmd) run() error {
...
@@ -131,10 +130,6 @@ func (l *lintCmd) run() error {
fmt
.
Fprintf
(
l
.
out
,
"%s, no failures
\n
"
,
msg
)
fmt
.
Fprintf
(
l
.
out
,
"%s, no failures
\n
"
,
msg
)
if
rc
!=
0
{
os
.
Exit
(
rc
)
}
return
nil
return
nil
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets