Skip to content

Commit 43c5d03

Browse files
committed
chore: lint checks config files
Signed-off-by: sonupreetam <spreetam@redhat.com>
1 parent bc21ba3 commit 43c5d03

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04
22

3+
# hadolint ignore=DL3008
34
RUN apt-get update && \
45
apt-get install -y --no-install-recommends \
56
ca-certificates \

.golangci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: "2"
2+
run:
3+
skip-dirs:
4+
- vendor
5+
linters:
6+
default: standard # https://golangci-lint.run/usage/linters/#enabled-by-default
7+
enable:
8+
- gosec # Security checks for Go code
9+
exclusions:
10+
generated: lax
11+
presets:
12+
- comments
13+
- common-false-positives
14+
- legacy
15+
- std-error-handling
16+
formatters:
17+
enable:
18+
- goimports # Checks import statements are formatted
19+
exclusions:
20+
generated: lax

.mega-linter.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# https://megalinter.io/latest/supported-linters/
2+
ADDITIONAL_EXCLUDED_DIRECTORIES:
3+
- vendor
4+
ENABLE_LINTERS:
5+
- ACTION_ACTIONLINT
6+
#- ANSIBLE_ANSIBLE_LINT
7+
#- BASH_SHELLCHECK
8+
- DOCKERFILE_HADOLINT
9+
- GO_GOLANGCI_LINT
10+
- MARKDOWN_MARKDOWNLINT
11+
#- PYTHON_RUFF
12+
#- PROTOBUF_PROTOLINT
13+
- REPOSITORY_GITLEAKS
14+
- REPOSITORY_KICS
15+
- YAML_YAMLLINT
16+
MARKDOWN_MARKDOWNLINT_FILTER_REGEX_EXCLUDE: '(^|/)(\.specify)/'
17+
REPOSITORY_KICS_ARGUMENTS: "--fail-on high"

0 commit comments

Comments
 (0)