Skip to content

Commit

Permalink
fix: linting setup@
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Jan 9, 2024
1 parent c50f9cf commit 60e9dea
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 23 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/lint-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,3 @@ jobs:

# Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'.
# install-mode: "goinstall"

gosec:
name: gosec-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Run Gosec Security Scanner
uses: securego/[email protected]
with:
# excluding G104: Audit errors not checked
args: --exclude=G104 ./...
19 changes: 19 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Please refer to the official golangci-lint config documentation for more details:
# https://golangci-lint.run/usage/configuration/
# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml

linters:
enable-all: true

linters-settings:
gci:
sections:
- standard
- default

run:
timeout: 10m
tests: false

issues:
max-issues-per-linter: 1000

0 comments on commit 60e9dea

Please sign in to comment.