Skip to content

Commit 93c2e98

Browse files
pionbotSean-Der
authored andcommitted
Update CI configs to v0.11.15
Update lint scripts and CI configs.
1 parent 9e17414 commit 93c2e98

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: pion/.goassets/.github/workflows/test.reusable.yml@master
2424
strategy:
2525
matrix:
26-
go: ["1.22", "1.21"] # auto-update/supported-go-version-list
26+
go: ["1.23", "1.22"] # auto-update/supported-go-version-list
2727
fail-fast: false
2828
with:
2929
go-version: ${{ matrix.go }}
@@ -33,13 +33,13 @@ jobs:
3333
uses: pion/.goassets/.github/workflows/test-i386.reusable.yml@master
3434
strategy:
3535
matrix:
36-
go: ["1.22", "1.21"] # auto-update/supported-go-version-list
36+
go: ["1.23", "1.22"] # auto-update/supported-go-version-list
3737
fail-fast: false
3838
with:
3939
go-version: ${{ matrix.go }}
4040

4141
test-wasm:
4242
uses: pion/.goassets/.github/workflows/test-wasm.reusable.yml@master
4343
with:
44-
go-version: "1.22" # auto-update/latest-go-version
44+
go-version: "1.23" # auto-update/latest-go-version
4545
secrets: inherit

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ node_modules/
1919
#############
2020
*.ivf
2121
*.ogg
22-
*.mkv
23-
*.h264
2422
tags
2523
cover.out
2624
*.sw[poe]

.golangci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ linters:
5151
- goconst # Finds repeated strings that could be replaced by a constant
5252
- gocritic # The most opinionated Go source code linter
5353
- godox # Tool for detection of FIXME, TODO and other comment keywords
54-
- goerr113 # Golang linter to check the errors handling expressions
54+
- err113 # Golang linter to check the errors handling expressions
5555
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification
5656
- gofumpt # Gofumpt checks whether code was gofumpt-ed.
5757
- goheader # Checks is file header matches to pattern
@@ -86,17 +86,14 @@ linters:
8686
- depguard # Go linter that checks if package imports are in a list of acceptable packages
8787
- containedctx # containedctx is a linter that detects struct contained context.Context field
8888
- cyclop # checks function and package cyclomatic complexity
89-
- exhaustivestruct # Checks if all struct's fields are initialized
9089
- funlen # Tool for detection of long functions
9190
- gocyclo # Computes and checks the cyclomatic complexity of functions
9291
- godot # Check if comments end in a period
9392
- gomnd # An analyzer to detect magic numbers.
94-
- ifshort # Checks that your code uses short syntax for if-statements whenever possible
9593
- ireturn # Accept Interfaces, Return Concrete Types
9694
- lll # Reports long lines
9795
- maintidx # maintidx measures the maintainability index of each function.
9896
- makezero # Finds slice declarations with non-zero initial length
99-
- maligned # Tool to detect Go structs that would take less memory if their fields were sorted
10097
- nakedret # Finds naked returns in functions greater than a specified function length
10198
- nestif # Reports deeply nested if statements
10299
- nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity

internal/signal/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func HTTPSDPServer() chan string {
1919
sdpChan := make(chan string)
2020
http.HandleFunc("/sdp", func(w http.ResponseWriter, r *http.Request) {
2121
body, _ := io.ReadAll(r.Body)
22-
fmt.Fprintf(w, "done")
22+
fmt.Fprintf(w, "done") // nolint
2323
sdpChan <- string(body)
2424
})
2525

0 commit comments

Comments
 (0)