-
Notifications
You must be signed in to change notification settings - Fork 10
chore(lint): add GolangCI-Lint integration and Makefile targets #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
be88fe8
feature: add default .golangci.yaml file
ZwangaMukwevho 18744e9
chore: appled the golangci lint formatters
ZwangaMukwevho a79257d
chore: resolve all errCheck linter fails
ZwangaMukwevho 2e2f760
chore: work on const and unparam linter issues
ZwangaMukwevho a09da4d
chore: add linting commands on the makefile
ZwangaMukwevho 065c15f
chore: remove unused comments
ZwangaMukwevho 7a332be
chore: add dupword as a linter
ZwangaMukwevho 9cde4c7
feature: add format action on makefile
ZwangaMukwevho 94815ff
chore: add format target to phony on makefile
ZwangaMukwevho bec069c
Update pkg/socket/socket.go
ZwangaMukwevho 03b809a
chore: addressing comments on the PR
ZwangaMukwevho 817c233
Merge branch 'add-golangci-lint' of github.com:ZwangaMukwevho/dish in…
ZwangaMukwevho 29173b1
fix: re-applied linter without the golines formatter
ZwangaMukwevho 92450bc
Revert "chore: appled the golangci lint formatters"
ZwangaMukwevho f585946
chore: re-apply formatting without golines
ZwangaMukwevho b748a7f
Fix typo in .golangci.yaml
krixlion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,24 @@ | ||
| version: "2" | ||
|
|
||
| issues: | ||
| max-same-issues: 50 | ||
|
|
||
| formatters: | ||
| enable: | ||
| - goimports # checks if the code and import statements are formatted according to the 'goimports' command | ||
| - gofumpt # Or "gofmt", # Enforce standard formatting | ||
|
|
||
| linters: | ||
| enable: | ||
| - errcheck #Errcheck is a program for checking for unchecked errors in Go code. These unchecked errors can be critical bugs in some cases. | ||
| - govet # Vet examines Go source code and reports suspicious constructs. It is roughly the same as 'go vet' and uses its passes. [auto-fix] | ||
| - ineffassign # Detects when assignments to existing variables are not used. [fast] | ||
| - staticcheck # It's a set of rules from staticcheck. It's not the same thing as the staticcheck binary. The author of staticcheck doesn't support or approve the use of staticcheck as a library inside golangci-lint. [auto-fix] | ||
| - unused # Checks Go code for unused constants, variables, functions and types. | ||
| # Subective additional linters | ||
| - gocyclo # or "cyclop", # Detect cyclomatic complexity | ||
| - goconst # Detect repeated values that can be made constants | ||
| - misspell # Fix spelling errors | ||
| - unconvert # Detect unnecessary type conversions | ||
| - unparam # Detect unused function parameters | ||
| - dupword # Detect duplicate words in comments and string literals (e.g. “the the”, “is is”) | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.