summaryrefslogtreecommitdiffstats
path: root/.golangci.yml
blob: 2d66e01ffaf8a86d04564f9e0d86b39676eaf76e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
linters:
  enable:
    - gosimple
    - deadcode
    - typecheck
    - govet
    - errcheck
    - staticcheck
    - unused
    - structcheck
    - varcheck
    - golint
    - dupl
    #- gocyclo # The cyclomatic complexety of a lot of functions is too high, we should refactor those another time.
    - gofmt
    - misspell
    - gocritic
  enable-all: false
  disable-all: true
  fast: false

run:
  timeout: 3m

linters-settings:
  gocritic:
    disabled-checks:
      - ifElseChain
      - singleCaseSwitch # Every time this occurred in the code, there  was no other way.

issues:
  exclude-rules:
    # Exclude some linters from running on tests files.
    - path: _test\.go
      linters:
        - gocyclo
        - errcheck
        - dupl
        - gosec
        - unparam
        - staticcheck
    - path: models/migrations/v
      linters:
        - gocyclo
        - errcheck
        - dupl
        - gosec
    - linters:
        - dupl
      text: "webhook"
    - linters:
        - gocritic
      text: "`ID' should not be capitalized"
    - path: modules/templates/helper.go
      linters:
        - gocritic
    - linters:
        - unused
        - deadcode
      text: "swagger"
    - path: contrib/pr/checkout.go
      linters:
        - errcheck
    - path: models/issue.go
      linters:
        - errcheck
    - path: models/migrations/
      linters:
        - errcheck
    - path: modules/log/
      linters:
        - errcheck
    - path: routers/api/v1/repo/issue_subscription.go
      linters:
        - dupl
    - path: routers/repo/view.go
      linters:
        - dupl
    - path: models/migrations/
      linters:
        - unused
    - linters:
        - staticcheck
      text: "argument x is overwritten before first use"
    - path: modules/httplib/httplib.go
      linters:
        - staticcheck
    # Enabling this would require refactoring the methods and how they are called.
    - path: models/issue_comment_list.go
      linters:
        - dupl
    - linters:
        - misspell
      text: '`Unknwon` is a misspelling of `Unknown`'
    - path: models/update.go
      linters:
        - unused
    - path: cmd/dump.go
      linters:
        - dupl
    - path: services/webhook/webhook.go
      linters:
        - structcheck
    - text: "commentFormatting: put a space between `//` and comment text"
      linters:
        - gocritic
    - text: "exitAfterDefer:"
      linters:
        - gocritic
    - path: modules/graceful/manager_windows.go
      linters:
        - staticcheck
      text: "svc.IsAnInteractiveSession is deprecated: Use IsWindowsService instead."
kport/48294/master Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
...
* | | | [tx-robot] updated from transifexNextcloud bot2021-08-1314-14/+236
* | | | [tx-robot] updated from transifexNextcloud bot2021-08-126-12/+14
|/ / /
* | | Merge pull request #28359 from nextcloud/backport/28220/stable22Julius Härtl2021-08-112-83/+59
|\ \ \
| * | | fix Folder->getById() when a single storage is mounted multiple timesRobin Appelman2021-08-092-83/+59
* | | | [tx-robot] updated from transifexNextcloud bot2021-08-1182-214/+930
| |_|/ |/| |
* | | [tx-robot] updated from transifexNextcloud bot2021-08-10106-128/+670
|/ /
* | Merge pull request #28353 from nextcloud/backport/28352/stable22szaimen2021-08-091-1/+1
|\ \
| * | Change the concurrent upload limit to less than 10szaimen2021-08-091-1/+1
|/ /
* | [tx-robot] updated from transifexNextcloud bot2021-08-0914-86/+562
* | Merge pull request #28342 from nextcloud/dependabot/npm_and_yarn/stable22/vue...dependabot[bot]2021-08-082-20/+29
|\ \
| * | Bump vue-loader from 15.9.7 to 15.9.8dependabot[bot]2021-08-082-20/+29
|/ /
* | [tx-robot] updated from transifexNextcloud bot2021-08-088-56/+76
* | Merge pull request #28340 from nextcloud/dependabot/npm_and_yarn/stable22/dom...dependabot[bot]2021-08-0810-24/+24
|\ \
| * | Bump dompurify from 2.2.8 to 2.2.9dependabot[bot]2021-08-0710-24/+24
* | | Merge pull request #28341 from nextcloud/dependabot/npm_and_yarn/stable22/bab...dependabot[bot]2021-08-072-428/+433
|\ \ \ | |/ / |/| |
| * | Bump @babel/preset-env from 7.14.8 to 7.14.9dependabot[bot]2021-08-072-428/+433
|/ /
* | [tx-robot] updated from transifexNextcloud bot2021-08-072-0/+12
* | [tx-robot] updated from transifexNextcloud bot2021-08-0626-18/+80
* | Merge pull request #28271 from nextcloud/dependabot/npm_and_yarn/stable22/mar...John Molakvoæ2021-08-056-10/+10
|\ \
| * | Bump marked from 2.0.6 to 2.0.7dependabot[bot]2021-08-056-10/+10
|/ /
* | Merge pull request #28288 from nextcloud/backport/28259/stable22Julius Härtl2021-08-051-0/+4
|\ \
| * | Check that php was compiled with argon2 support or that the php-sodiumCarl Schwan2021-08-021-0/+4
* | | [tx-robot] updated from transifexNextcloud bot2021-08-0572-690/+690
* | | Merge pull request #28252 from nextcloud/backport/28240/stable22John Molakvoæ2021-08-041-1/+2
|\ \ \
| * | | Add h2 to personal info page, fixing accessibility issueJan C. Borchardt2021-07-301-1/+2
* | | | Merge pull request #28274 from nextcloud/backport/28202/stable22John Molakvoæ2021-08-0428-24/+24
|\ \ \ \
| * | | | BuildChristopher Ng2021-08-0427-23/+23
| * | | | Remove chunkhashChristopher Ng2021-08-041-1/+1
* | | | | Merge pull request #28304 from nextcloud/bugfix/22.1-upgradeJohn Molakvoæ2021-08-041-0/+1
|\ \ \ \ \
| * | | | | Allow upgrade from 22.1Julius Härtl2021-08-031-0/+1
| |/ / / /
* / / / / [tx-robot] updated from transifexNextcloud bot2021-08-0432-48/+148
|/ / / /
* | | | Merge pull request #28298 from nextcloud/version/22.1.0/Finalv22.1.022.1.0John Molakvoæ2021-08-031-2/+2
|\ \ \ \
| * | | | 22.1.0John Molakvoæ (skjnldsv)2021-08-031-2/+2
|/ / / /
* | | | [tx-robot] updated from transifexNextcloud bot2021-08-0326-10/+284
* | | | Merge pull request #28215 from nextcloud/backport/28174/stable22Louis2021-08-021-3/+9
|\ \ \ \ | |_|/ / |/| | |
| * | | Fix typoLouis2021-08-021-1/+1
| * | | Set openfile params when following internal linksLouis Chemineau2021-08-021-3/+9
|/ / /
* | | [tx-robot] updated from transifexNextcloud bot2021-08-024-0/+4
* | | [tx-robot] updated from transifexNextcloud bot2021-08-02146-184/+2070
* | | Merge pull request #28269 from nextcloud/dependabot/composer/build/integratio...dependabot[bot]2021-08-011-1/+1
|\ \ \
| * | | Update guzzlehttp/guzzle requirement in /build/integrationdependabot[bot]2021-08-011-1/+1
|/ / /
* | | Merge pull request #28270 from nextcloud/dependabot/npm_and_yarn/stable22/css...dependabot[bot]2021-08-0161-83/+84
|\ \ \
| * | | Bump css-loader from 5.2.6 to 5.2.7dependabot[bot]2021-08-01