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
3c4ae013
Commit
3c4ae013
authored
Apr 28, 2016
by
Matt Butcher
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #618 from technosophos/fix/lint-comments
fix(lint): fix style issues
parents
fa0982ac
661e516a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
lint.go
pkg/lint/lint.go
+1
-0
message.go
pkg/lint/message.go
+6
-0
template.go
pkg/lint/template.go
+1
-0
No files found.
pkg/lint/lint.go
View file @
3c4ae013
package
lint
package
lint
// All runs all of the available linters on the given base directory.
func
All
(
basedir
string
)
[]
Message
{
func
All
(
basedir
string
)
[]
Message
{
out
:=
Chartfile
(
basedir
)
out
:=
Chartfile
(
basedir
)
out
=
append
(
out
,
Templates
(
basedir
)
...
)
out
=
append
(
out
,
Templates
(
basedir
)
...
)
...
...
pkg/lint/message.go
View file @
3c4ae013
...
@@ -2,16 +2,22 @@ package lint
...
@@ -2,16 +2,22 @@ package lint
import
"fmt"
import
"fmt"
// Severity indicatest the severity of a Message.
type
Severity
int
type
Severity
int
const
(
const
(
// UnknownSev indicates that the severity of the error is unknown, and should not stop processing.
UnknownSev
=
iota
UnknownSev
=
iota
// WarningSev indicates that something does not meet code standards, but will likely function.
WarningSev
WarningSev
// ErrorSev indicates that something will not likely function.
ErrorSev
ErrorSev
)
)
// sev matches the *Sev states.
var
sev
=
[]
string
{
"INFO"
,
"WARNING"
,
"ERROR"
}
var
sev
=
[]
string
{
"INFO"
,
"WARNING"
,
"ERROR"
}
// Message is a linting output message
type
Message
struct
{
type
Message
struct
{
// Severity is one of the *Sev constants
// Severity is one of the *Sev constants
Severity
int
Severity
int
...
...
pkg/lint/template.go
View file @
3c4ae013
...
@@ -10,6 +10,7 @@ import (
...
@@ -10,6 +10,7 @@ import (
"github.com/Masterminds/sprig"
"github.com/Masterminds/sprig"
)
)
// Templates lints a chart's templates.
func
Templates
(
basepath
string
)
(
messages
[]
Message
)
{
func
Templates
(
basepath
string
)
(
messages
[]
Message
)
{
messages
=
[]
Message
{}
messages
=
[]
Message
{}
path
:=
filepath
.
Join
(
basepath
,
"templates"
)
path
:=
filepath
.
Join
(
basepath
,
"templates"
)
...
...
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