Skip to content

Commit

Permalink
Merge pull request #420 from CSUSTers/dev
Browse files Browse the repository at this point in the history
Merge `dev` to `master`
  • Loading branch information
Anthony-Hoo authored Jul 19, 2024
2 parents cbc184c + e231966 commit 667f2bb
Show file tree
Hide file tree
Showing 19 changed files with 983 additions and 163 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
version: v1.59
args: --issues-exit-code=1
only-new-issues: false
skip-pkg-cache: true
Expand Down
21 changes: 7 additions & 14 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# options for analysis running
run:
go: "1.20"
go: "1.21"
# default concurrency is an available CPU number
concurrency: 16

Expand All @@ -18,7 +18,7 @@ run:

# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
# skip-dirs-use-default: true

# Allow multiple parallel golangci-lint instances running.
# If false (default) - golangci-lint acquires file lock on start.
Expand All @@ -29,7 +29,8 @@ run:
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions
# default is "colored-line-number"
format: colored-line-number
formats:
- format: colored-line-number

# print lines of code with issue, default is true
print-issued-lines: true
Expand Down Expand Up @@ -178,7 +179,7 @@ linters-settings:
debug: 'emptyDecl'
# Deprecated, use 'failOn' param.
# If set to true, identical to failOn='all', otherwise failOn=''
failOnError: false
# failOnError: false
# Determines the behavior when an error occurs while parsing ruleguard files.
# If flag is not set, log error and skip rule files that contain an error.
# If flag is set, the value must be a comma-separated list of error conditions.
Expand Down Expand Up @@ -215,8 +216,6 @@ linters-settings:
# simplify: true

gofumpt:
lang-version: "1.20"

# Choose whether or not to use the extra rules that are disabled
# by default
extra-rules: false
Expand Down Expand Up @@ -263,13 +262,10 @@ linters-settings:
truncate: "32"

gosimple:
go: "1.20"
# https://staticcheck.io/docs/options#checks
checks: [ "all" ]

govet:
# report about shadowed variables
check-shadowing: true

# settings per analyzer
settings:
Expand All @@ -286,7 +282,6 @@ linters-settings:
# - atomicalign
enable-all: true
disable:
- shadow
- nilness
- unusedwrite
- fieldalignment
Expand Down Expand Up @@ -404,12 +399,10 @@ linters-settings:
- name: waitgroup-by-value

staticcheck:
go: "1.20"
# https://staticcheck.io/docs/options#checks
checks: ["all", "-ST1001"]

stylecheck:
go: "1.20"
# https://staticcheck.io/docs/options#checks
checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ]
# https://staticcheck.io/docs/options#dot_import_whitelist
Expand Down Expand Up @@ -499,6 +492,7 @@ linters-settings:
- github.com/prometheus/common
- github.com/prometheus/client_golang
- github.com/gabriel-vasile/mimetype
- github.com/u2takey/ffmpeg-go
# Packages that are not allowed where the value is a suggestion.
deny:
# - pkg: "github.com/sirupsen/logrus"
Expand Down Expand Up @@ -527,7 +521,7 @@ linters:
- goconst
- gocritic
- godox
- goerr113
- err113
# - gofmt
# - goimports
- gomoddirectives
Expand All @@ -553,7 +547,6 @@ linters:
# - whitespace
disable:
- typecheck
- structcheck
fast: false


Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN make deploy
# deploy image
FROM --platform=$BUILDPLATFORM alpine

RUN apk add tzdata
RUN apk add --no-cache tzdata ffmpeg

WORKDIR /app
COPY --from=buildenv /go/src/app/got .
Expand Down
Loading

0 comments on commit 667f2bb

Please sign in to comment.