Skip to content

Commit

Permalink
Update: add nakedret
Browse files Browse the repository at this point in the history
  • Loading branch information
ifooth committed Sep 14, 2023
1 parent 9ed6507 commit 8b1f6e0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ linters:
- goimports
- gosec
- misspell
- nakedret
- revive
- unconvert
- unparam
Expand All @@ -37,15 +38,10 @@ linters-settings:
- (*os.File).Close
- (io.Closer).Close
- os.RemoveAll
gocyclo:
min-complexity: 30
misspell:
# Correct spellings using locale preferences for US or UK.
# Setting locale to US will correct the British spelling of 'colour' to 'color'.
# Default is to use a neutral variety of English.
locale: US
govet:
check-shadowing: true
gocyclo:
min-complexity: 30
gosec:
includes:
- G201 # SQL query construction using format string
Expand All @@ -68,9 +64,10 @@ linters-settings:
* either express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*
goimports:
local-prefixes: github.com/TencentBlueKing/bscp-go
misspell:
locale: US
revive:
rules:
- name: exported
Expand Down

0 comments on commit 8b1f6e0

Please sign in to comment.