Skip to content

Commit

Permalink
Tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wesley-dean-flexion committed Feb 29, 2024
1 parent 9627bec commit 3d608d1
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
# don't test the reports Mega-Linter created, docs, or test files
ADDITIONAL_EXCLUDED_DIRECTORIES:
[report, megalinter-reports, docs, test, tests, venv]

# don't lint test files or documentation
FILTER_REGEX_EXCLUDE: (.venv/|/test/|\.test\.|_test\.|/docs/|/index.html|.github/.*\.html)

# don't scan files listed in .gitignore (e.g., node_modules)
IGNORE_GITIGNORED_FILES: true

# don't attempt to apply fixes at this time
APPLY_FIXES: "false"

# Disable devskim as it's reporting an error with no log message
DISABLE_LINTERS:
[
REPOSITORY_DEVSKIM,
SPELL_MISSPELL,
SPELL_CSPELL,
SPELL_PROSELINT,
COPYPASTE_JSCPD,
BASH_EXEC,
]

# only scan new / updated files, not everything
VALIDATE_ALL_CODEBASE: true

# don't print the alpaca -- it's cute, but we don't need it in the logs
PRINT_ALPACA: false

# don't fail on finding (yet)
DISABLE_ERRORS: true

# use prettier for JavaScript code formatting
JAVASCRIPT_DEFAULT_STYLE: prettier

# only scan the files in This commit, not the entire history of the repo
REPOSITORY_GITLEAKS_ARGUMENTS: --no-git

# don't lint the generated code in the docs/ directory
REPOSITORY_DEVSKIM_ARGUMENTS: "--skip-git-ignored-files"

# shfmt will..
# - use multiples of 2 spaces for indenting
# - alllow binary operations to start new lines
# - indent switch case statements
# - place spaces around redirections
# - keep column alignment padding
BASH_SHFMT_ARGUMENTS: -i 2 -bn -ci -sr -kp
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ RUN apk add --no-cache \
COPY ./upload_sarif_to_defectdojo.bash /
ENTRYPOINT ["/upload_sarif_to_defectdojo.bash"]

HEALTHCHECK NONE

LABEL org.opencontainers.image.source=https://github.com/wesley-dean-flexion/
LABEL org.opencontainers.image.description="Upload SARIF to Defect Dojo"

0 comments on commit 3d608d1

Please sign in to comment.