Skip to content

Commit

Permalink
dev: add revive linter
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloo27 committed Aug 11, 2021
1 parent bf54109 commit 5472985
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ run: build
install: build
sudo cp ./$(BINARY_NAME) /usr/bin/

lint:
revive -formatter friendly -config revive.toml -exclude ./player/mpv ./...

tidy:
go mod tidy

Expand Down
24 changes: 24 additions & 0 deletions revive.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
ignoreGeneratedHeader = false
severity = "warning"
confidence = 0.8
errorCode = 0
warningCode = 0

[rule.blank-imports]
[rule.context-as-argument]
[rule.context-keys-type]
[rule.dot-imports]
[rule.error-return]
[rule.error-strings]
[rule.error-naming]
[rule.if-return]
[rule.increment-decrement]
[rule.var-naming]
[rule.var-declaration]
[rule.package-comments]
[rule.range]
[rule.receiver-naming]
[rule.time-naming]
[rule.unexported-return]
[rule.indent-error-flow]
[rule.errorf]

0 comments on commit 5472985

Please sign in to comment.