Skip to content

Commit

Permalink
Fix golint
Browse files Browse the repository at this point in the history
- Add .golangci.yml
  • Loading branch information
danielbprice committed Sep 11, 2020
1 parent 42993d4 commit bd6be27
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# See https://golangci-lint.run/usage/configuration/

linters:
enable:
- golint

issues:
include:
- EXC0002 # disable excluding of issues about comments from golint
3 changes: 3 additions & 0 deletions briefpg.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ func New(options ...Option) (*BriefPG, error) {
return bpg, nil
}

// SetOption applies an Option to the BriefPG. The option may fail to apply if
// invalid, or if the the BriefPG is in a state where applying the option is
// impossible. Passing Options to New() is preferred.
func (bp *BriefPG) SetOption(o Option) error {
return o.apply(bp)
}
Expand Down

0 comments on commit bd6be27

Please # to comment.