Skip to content

Commit

Permalink
[GH-54] sync with latest mattermost-plugin-starter-template (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrerich authored Sep 3, 2020
1 parent eed9fc7 commit 3cbffad
Show file tree
Hide file tree
Showing 35 changed files with 12,158 additions and 7,494 deletions.
21 changes: 4 additions & 17 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# EditorConfig is awesome: http://editorConfig.org
# Usage with your editor: http://editorconfig.org/#download
# http://editorconfig.org/

# Top-most EditorConfig file
root = true

[*]
Expand All @@ -17,25 +15,14 @@ indent_style = tab
indent_style = space
indent_size = 4

[webapp/.eslintrc.json]
indent_style = space
indent_size = 2

# The indentation in package.json will always need to be 2 spaces
# https://github.com/npm/npm/issues/4718
[package*.json]
indent_style = space
[webapp/package.json]
indent_size = 2

[{Makefile,*.mk}]
[Makefile,*.mk]
indent_style = tab

[*.css]
indent_size = 2
indent_style = space

[*.md]
indent_style = space
indent_size = 4
# Don't trim trailing whitespace in Markdown (they are used to force line breaks)
trim_trailing_whitespace = false

62 changes: 62 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
run:
timeout: 5m
modules-download-mode: readonly

linters-settings:
goconst:
min-len: 2
min-occurrences: 2
gofmt:
simplify: true
goimports:
local-prefixes: github.com/mattermost/mattermost-plugin-confluence
golint:
min-confidence: 0
govet:
check-shadowing: true
enable-all: true
misspell:
locale: US

linters:
disable-all: true
enable:
- bodyclose
- deadcode
- errcheck
- goconst
- gocritic
- gofmt
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- misspell
- nakedret
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unused
- varcheck
- whitespace

issues:
exclude-rules:
- path: server/manifest.go
linters:
- deadcode
- unused
- varcheck
- path: server/configuration.go
linters:
- unused
- path: _test\.go
linters:
- bodyclose
- goconst
- scopelint # https://github.com/kyoh86/scopelint/issues/4
Loading

0 comments on commit 3cbffad

Please sign in to comment.