Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .golangci.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,10 @@ linters:
# Default: false
force-succeed: true

# Force adding assertion descriptions to gomega matchers.
# Default: false
force-assertion-description: true

gochecksumtype:
# Presence of `default` case in switch statements satisfies exhaustiveness, if all members are not listed.
# Default: true
Expand Down Expand Up @@ -2389,6 +2393,12 @@ linters:
exclude: [""]
arguments:
- "make"
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#enforce-switch-style
- name: enforce-switch-style
severity: warning
disabled: false
exclude: [""]
arguments: [ "allowNoDefault" ]
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#error-naming
- name: error-naming
severity: warning
Expand Down Expand Up @@ -2679,7 +2689,7 @@ linters:
disabled: false
exclude: [""]
arguments:
- "fmt.Printf"
- "^fmt.Printf"
- "myFunction"
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#unnecessary-format
- name: unnecessary-format
Expand Down Expand Up @@ -2743,7 +2753,12 @@ linters:
arguments:
- [ "ID" ] # AllowList
- [ "VM" ] # DenyList
- - upper-case-const: true # Extra parameter (upper-case-const|skip-package-name-checks)
- - skip-initialism-name-checks: true
upper-case-const: true
skip-package-name-checks: true
extra-bad-package-names:
- helpers
- models
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#waitgroup-by-value
- name: waitgroup-by-value
severity: warning
Expand Down
6 changes: 6 additions & 0 deletions jsonschema/golangci.jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@
"enforce-map-style",
"enforce-repeated-arg-type-style",
"enforce-slice-style",
"enforce-switch-style",
"error-naming",
"error-return",
"error-strings",
Expand Down Expand Up @@ -1509,6 +1510,11 @@
"description": "Force using the Succeed matcher for error functions, and the HaveOccurred matcher for non-function error values.",
"type": "boolean",
"default": false
},
"force-assertion-description": {
"description": "Force adding assertion descriptions to gomega matchers.",
"type": "boolean",
"default": false
}
}
},
Expand Down
Loading
Loading