Skip to content

Commit

Permalink
harder linting an dupdated example
Browse files Browse the repository at this point in the history
  • Loading branch information
dasrick committed Mar 29, 2020
1 parent 9faeca6 commit dbc00d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ linters-settings:

gocognit:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 11
min-complexity: 10

gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
Expand Down Expand Up @@ -58,9 +58,9 @@ linters-settings:

whitespace:
# Enforces newlines (or comments) after every multi-line if statement
multi-if: false
multi-if: true
# Enforces newlines (or comments) after every multi-line function signature
multi-func: false
multi-func: true

issues:
# Not using default exclusions because we want to require comments on public
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ func main() {
func sendTheMessage() error {
// init the client
mstClient, err := goteamsnotify.NewClient()
if err != nil {
return err
}
mstClient := goteamsnotify.NewClient()
// setup webhook url
webhookUrl := "https://outlook.office.com/webhook/YOUR_WEBHOOK_URL_OF_TEAMS_CHANNEL"
Expand All @@ -58,7 +55,7 @@ func sendTheMessage() error {
msgCard.Text = "Here are some examples of formatted stuff like <br> * this list itself <br> * **bold** <br> * *italic* <br> * ***bolditalic***"
msgCard.ThemeColor = "#DF813D"
// firestarter
// send
return mstClient.Send(webhookUrl, msgCard)
}
```
Expand Down

0 comments on commit dbc00d6

Please sign in to comment.