Skip to content

Conversation

@smstone0
Copy link
Member

@smstone0 smstone0 commented Aug 19, 2025

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

What

Added Markdown linter and Megalinter for more general linting. Resolved linting errors across codebase.

Testing

Have any new tests been added as part of this issue? If not, try to explain why test coverage is not needed here.

  • Yes
  • No
    Please write a brief description of why test coverage is not necessary here.
  • Not as part of this ticket. (Could be done at a later point)

Documentation

Has any new documentation been written as part of this issue? We should try to keep documentation up to date
as new code is added, rather than leaving it for the future.

  • Yes
  • No
    Please write a brief description of why documentation is not necessary here.
  • Not as part of this ticket. (Could be done at a later point)

Related issues

KEH-1221

How to review

View GitHub Actions. Linting should pass.

@smstone0 smstone0 marked this pull request as draft August 19, 2025 10:57
@github-actions
Copy link
Contributor

github-actions bot commented Aug 20, 2025

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
⚠️ BASH bash-exec 6 4 0.04s
✅ BASH shellcheck 6 0 0.19s
✅ BASH shfmt 6 0 0.02s
✅ DOCKERFILE hadolint 1 0 0.1s
✅ JSON jsonlint 1 0 0.3s
✅ JSON prettier 1 0 0.6s
✅ JSON v8r 1 0 2.18s
✅ MARKDOWN markdownlint 5 0 0.9s
✅ REPOSITORY checkov yes no 22.47s
✅ REPOSITORY dustilock yes no 0.01s
❌ REPOSITORY gitleaks yes 4 6.42s
✅ REPOSITORY grype yes no 24.26s
✅ REPOSITORY kics yes no 51.88s
✅ REPOSITORY secretlint yes no 0.83s
✅ REPOSITORY syft yes no 4.38s
✅ REPOSITORY trivy yes no 19.82s
✅ REPOSITORY trivy-sbom yes no 0.27s
✅ TERRAFORM terraform-fmt 6 0 0.57s
✅ YAML prettier 8 0 1.18s
✅ YAML v8r 8 0 10.35s
✅ YAML yamllint 8 0 0.69s

See detailed report in MegaLinter reports

You could have the same capabilities but better runtime performances if you use a MegaLinter flavor:

MegaLinter is graciously provided by OX Security

@smstone0 smstone0 marked this pull request as ready for review August 21, 2025 15:23
@TotalDwarf03
Copy link
Contributor

Gitleaks linting will be addressed separately.

.mega-linter.yml Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll have another look at this conflict when I cover the gitleaks error.

Should be able to configure this so that it doesn't conflict.

Copy link
Contributor

@TotalDwarf03 TotalDwarf03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Good work 👍

The Gitleaks linting fail and the markdown table linting can be dealt with in another ticket. Will pick it up while you're away.

@TotalDwarf03 TotalDwarf03 requested a review from a team August 21, 2025 16:56
@TotalDwarf03 TotalDwarf03 merged this pull request into main Aug 22, 2025
5 of 8 checks passed
@TotalDwarf03 TotalDwarf03 deleted the KEH-1221 branch August 22, 2025 08:29
TotalDwarf03 added a commit that referenced this pull request Aug 22, 2025
KEH-1221 - Add additional linters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants