generated from saic-oss/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add golint, gocyclo, and gocritic for golang projects (#13)
* Add golint, gocyclo, and gocritic for golang projects * Fix broken tests
- Loading branch information
1 parent
e1244af
commit 2c57cee
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env shellspec | ||
|
||
Describe "printVersion()" | ||
printVersion() { | ||
gocritic version | ||
} | ||
|
||
It "validates tool is installed by checking version" | ||
When call printVersion | ||
The stderr should be present | ||
The status should eq 0 | ||
End | ||
End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env shellspec | ||
|
||
Describe "printHelp()" | ||
printHelp() { | ||
gocyclo --help | ||
} | ||
|
||
It "validates tool is installed by running it" | ||
When call printHelp | ||
The stderr should be present | ||
The status should eq 2 | ||
End | ||
End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env shellspec | ||
|
||
Describe "printHelp()" | ||
printHelp() { | ||
golint --help | ||
} | ||
|
||
It "validates tool is installed by running it" | ||
When call printHelp | ||
The stderr should be present | ||
The status should eq 0 | ||
End | ||
End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters