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
83 changes: 0 additions & 83 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@ jobs:
uses: golangci/golangci-lint-action@v6
with:
version: latest
only-new-issues: true
41 changes: 19 additions & 22 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
output:
# Format: colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions
format: colored-line-number
# All available settings of specific linters.
# Options for analysis running.
run:
timeout: 3m

linters: # https://golangci-lint.run/usage/linters/
disable-all: true
enable:
- gosimple
- govet
- ineffassign
- staticcheck
- unused
- unconvert
- goimports
- gofumpt

# Refer to https://golangci-lint.run/usage/linters
linters-settings:
gofumpt:
Expand All @@ -11,22 +23,7 @@ linters-settings:
goimports:
# Put imports beginning with prefix after 3rd-party packages.
# It's a comma-separated list of prefixes.
local-prefixes: github.com/cloudwego/kitex
govet:
# Disable analyzers by name.
# Run `go tool vet help` to see all analyzers.
disable:
- stdmethods
linters:
enable:
- gofumpt
- goimports
- gofmt
disable:
- errcheck
- typecheck
- deadcode
- varcheck
- staticcheck
local-prefixes: github.com/cloudwego/netpoll

issues:
exclude-use-default: true
exclude-use-default: true
2 changes: 1 addition & 1 deletion _typos.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Typo check: https://github.com/crate-ci/typos

[files]
extend-exclude = ["go.sum"]
extend-exclude = ["go.mod", "go.sum"]

[default.extend-identifiers]
# *sigh* this just isn't worth the cost of fixing
Expand Down