Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
febfea7a
Unverified
Commit
febfea7a
authored
Nov 10, 2017
by
Péter Szilágyi
Committed by
GitHub
Nov 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15450 from karalabe/lint-gofmt-misspell
build: enable gofmt and misspell linters
parents
3d88ecd6
d1eb4006
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ci.go
build/ci.go
+1
-1
No files found.
build/ci.go
View file @
febfea7a
...
@@ -322,7 +322,7 @@ func doLint(cmdline []string) {
...
@@ -322,7 +322,7 @@ func doLint(cmdline []string) {
build
.
MustRun
(
goTool
(
"get"
,
"gopkg.in/alecthomas/gometalinter.v1"
))
build
.
MustRun
(
goTool
(
"get"
,
"gopkg.in/alecthomas/gometalinter.v1"
))
build
.
MustRunCommand
(
filepath
.
Join
(
GOBIN
,
"gometalinter.v1"
),
"--install"
)
build
.
MustRunCommand
(
filepath
.
Join
(
GOBIN
,
"gometalinter.v1"
),
"--install"
)
configs
:=
[]
string
{
"--vendor"
,
"--disable-all"
,
"--enable=vet"
}
// Add additional linters to the slice with "--enable=linter-name"
configs
:=
[]
string
{
"--vendor"
,
"--disable-all"
,
"--enable=vet"
,
"--enable=gofmt"
,
"--enable=misspell"
}
build
.
MustRunCommand
(
filepath
.
Join
(
GOBIN
,
"gometalinter.v1"
),
append
(
configs
,
packages
...
)
...
)
build
.
MustRunCommand
(
filepath
.
Join
(
GOBIN
,
"gometalinter.v1"
),
append
(
configs
,
packages
...
)
...
)
}
}
...
...
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