Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
6b514767
Commit
6b514767
authored
Apr 06, 2015
by
Rohit Jnagal
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6460 from jayunit100/gofmtmsg
Make gofmt message precise (-s option)
parents
6d6f0d90
8d6c1636
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
verify-gofmt.sh
hack/verify-gofmt.sh
+3
-2
No files found.
hack/verify-gofmt.sh
View file @
6b514767
...
@@ -44,9 +44,10 @@ find_files() {
...
@@ -44,9 +44,10 @@ find_files() {
\)
-name
'*.go'
\)
-name
'*.go'
}
}
bad_files
=
$(
find_files | xargs gofmt
-s
-l
)
GOFMT
=
"gofmt -s"
bad_files
=
$(
find_files | xargs
$GOFMT
-l
)
if
[[
-n
"
${
bad_files
}
"
]]
;
then
if
[[
-n
"
${
bad_files
}
"
]]
;
then
echo
"!!!
gofmt
needs to be run on the following files: "
echo
"!!!
'
$GOFMT
'
needs to be run on the following files: "
echo
"
${
bad_files
}
"
echo
"
${
bad_files
}
"
exit
1
exit
1
fi
fi
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