Skip to content

Commit

Permalink
[MM-98] Review fixes regarding constant for golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ayusht2810 committed Feb 15, 2024
1 parent 6391924 commit f337d1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ linters:
enable:
- bodyclose
- errcheck
- goconst
- gocritic
- gofmt
- goimports
Expand Down
5 changes: 2 additions & 3 deletions server/autolinkplugin/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const (
optDisableNonWordPrefix = "DisableNonWordPrefix"
optDisableNonWordSuffix = "DisableNonWordSuffix"
optWordMatch = "WordMatch"
newLine = "```n"
)

const helpText = "###### Mattermost Autolink Plugin Administration\n" +
Expand All @@ -39,7 +38,7 @@ const helpText = "###### Mattermost Autolink Plugin Administration\n" +
"* `/autolink test <linkref> test-text...` - test a link on a sample.\n" +
"\n" +
"Example:\n" +
newLine +
"```\n" +
"/autolink add Visa\n" +
"/autolink disable Visa\n" +
`/autolink set Visa Pattern (?P<VISA>(?P<part1>4\d{3})[ -]?(?P<part2>\d{4})[ -]?(?P<part3>\d{4})[ -]?(?P<LastFour>[0-9]{4}))` + "\n" +
Expand All @@ -49,7 +48,7 @@ const helpText = "###### Mattermost Autolink Plugin Administration\n" +
"/autolink set Visa ProcessBotPosts true\n" +
"/autolink test Visa 4356-7891-2345-1111 -- (4111222233334444)\n" +
"/autolink enable Visa\n" +
newLine +
"```\n" +
""

type CommandHandlerFunc func(p *Plugin, c *plugin.Context, header *model.CommandArgs, args ...string) *model.CommandResponse
Expand Down

0 comments on commit f337d1b

Please sign in to comment.