-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add linting, test coverage, code of conduct, lint fixes. (#215)
* WFE: remove unused vars * db: format file * ca: format file * wfe: fix misspells * wfe: remove unnecessary []byte conversion. * db: prefer ++ for incrementing by 1 * va: use challtestsrv's exported IdPeAcmeIdentifier. * wfe: remove throwaway resultUrl var * wfe: rename writeJsonResponse -> writeJSONResponse * ci: add golangci-lint and test coverage collection * repo: add CODE_OF_CONDUCT * README: Add standard badges * ci: use go mod download hack * ci: install goveralls tooling * ci: fix linter exclude typo
- Loading branch information
Showing
9 changed files
with
108 additions
and
104 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,32 @@ | ||
linters-settings: | ||
gocyclo: | ||
min-complexity: 25 | ||
govet: | ||
check-shadowing: false | ||
misspell: | ||
locale: "US" | ||
|
||
linters: | ||
enable-all: true | ||
disable: | ||
- stylecheck | ||
- gosec | ||
- dupl | ||
- maligned | ||
- depguard | ||
- lll | ||
- prealloc | ||
- scopelint | ||
- gocritic | ||
- gochecknoinits | ||
- gochecknoglobals | ||
|
||
issues: | ||
exclude: | ||
# The following excludes are considered false-positives/known-OK. | ||
# ca/ca.go: | ||
- "type name will be used as ca.CAImpl by other packages, and that stutters; consider calling this Impl" | ||
# va/va.go: | ||
- "type name will be used as va.VAImpl by other packages, and that stutters; consider calling this Impl" | ||
# wfe/wfe.go: L1647 and L1878 | ||
- "if` block ends with a `return` statement, so drop this `else` and outdent its block" |
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
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,3 @@ | ||
# Contributor Code of Conduct | ||
|
||
The contributor code of conduct is available for reference [on the community forum](https://community.letsencrypt.org/guidelines). |
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
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
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
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
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
Oops, something went wrong.