FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sshcode/ci/lint.sh at master · JRed1989/sshcode · GitHub
JRed1989
sshcode
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sshcode
/
ci
/
lint.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
17 lines (12 loc) · 272 Bytes
Breadcrumbs
sshcode
/
ci
/
lint.sh
Copy path
File metadata and controls
executable file
·
17 lines (12 loc) · 272 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!
/bin/bash
#
Inspired by nhooyr's days as CI overlord.
set
-euo pipefail
files=
$(
gofmt -l -s .
)
if
[
!
-z
"
$files
"
]
;
then
echo
"
The following files need to be formatted:
"
echo
"
$files
"
echo
"
Please run 'gofmt -w -s .'
"
exit
1
fi
go vet -composites=false
.
Back
|
FazBrowse Home
|
New Git URL