Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MEGALINTER_FILES_TO_LINT & SKIP_CLI_LINT_MODES #1732

Merged
merged 2 commits into from
Aug 11, 2022
Merged

Conversation

nvuillam
Copy link
Member

  • New config variables:
    • MEGALINTER_FILES_TO_LINT: Comma-separated list of files to analyze. Using this variable will bypass other file listing methods (#808)
    • SKIP_CLI_LINT_MODES: Comma-separated list of cli_lint_modes. To use if you want to skip linters with some CLI lint modes (ex: file,project). Available values: file,cli_lint_mode,project.

Fixes #808

@nvuillam
Copy link
Member Author

nvuillam commented Aug 11, 2022

MegaLinter status: ⚠️ WARNING

Descriptor Linter Files Fixed Errors Elapsed time
✅ BASH bash-exec 7 0 0.02s
✅ BASH shellcheck 7 0 0.3s
✅ BASH shfmt 7 0 0 0.33s
✅ COPYPASTE jscpd yes no 2.29s
✅ DOCKERFILE hadolint 103 0 21.01s
✅ JSON eslint-plugin-jsonc 20 0 0 2.4s
✅ JSON jsonlint 18 0 0.35s
✅ JSON v8r 20 0 13.01s
⚠️ MARKDOWN markdownlint 281 0 5 5.19s
✅ MARKDOWN markdown-link-check 281 0 5.7s
✅ MARKDOWN markdown-table-formatter 281 0 0 7.8s
✅ OPENAPI spectral 1 0 0.91s
⚠️ PYTHON bandit 166 51 2.42s
✅ PYTHON black 166 0 0 3.81s
✅ PYTHON flake8 166 0 2.21s
✅ PYTHON isort 166 0 0 0.73s
✅ PYTHON mypy 166 0 110.65s
✅ PYTHON pylint 166 0 19.79s
✅ REPOSITORY checkov yes no 15.91s
✅ REPOSITORY git_diff yes no 0.32s
✅ REPOSITORY secretlint yes no 12.67s
✅ REPOSITORY trivy yes no 24.45s
✅ SPELL cspell 663 0 21.67s
✅ SPELL misspell 493 0 0 0.77s
✅ XML xmllint 3 0 0.0s
✅ YAML prettier 80 0 0 3.13s
✅ YAML v8r 23 0 30.82s
✅ YAML yamllint 81 0 1.29s

See errors details in artifact MegaLinter reports on CI Job page

@codecov-commenter
Copy link

Codecov Report

Merging #1732 (1cf828b) into main (0a3afd8) will increase coverage by 0.07%.
The diff coverage is 95.23%.

@@            Coverage Diff             @@
##             main    #1732      +/-   ##
==========================================
+ Coverage   83.47%   83.55%   +0.07%     
==========================================
  Files         161      161              
  Lines        4237     4256      +19     
==========================================
+ Hits         3537     3556      +19     
  Misses        700      700              
Impacted Files Coverage Δ
megalinter/MegaLinter.py 83.98% <91.66%> (+0.14%) ⬆️
...linter/tests/test_megalinter/mega_linter_1_test.py 100.00% <100.00%> (ø)
megalinter/reporters/UpdatedSourcesReporter.py 89.74% <0.00%> (+2.56%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@nvuillam
Copy link
Member Author

MegaLinter status: ⚠️ WARNING

Descriptor Linter Files Fixed Errors Elapsed time
✅ BASH bash-exec 7 0 0.01s
✅ BASH shellcheck 7 0 0.27s
✅ BASH shfmt 7 0 0 0.04s
✅ COPYPASTE jscpd yes no 2.0s
✅ DOCKERFILE hadolint 103 0 18.26s
✅ JSON eslint-plugin-jsonc 20 0 0 2.18s
✅ JSON jsonlint 18 0 0.22s
✅ JSON v8r 20 0 10.87s
⚠️ MARKDOWN markdownlint 281 2 5 4.44s
✅ MARKDOWN markdown-link-check 281 0 5.02s
✅ MARKDOWN markdown-table-formatter 281 2 0 6.4s
✅ OPENAPI spectral 1 0 0.78s
⚠️ PYTHON bandit 166 51 2.2s
✅ PYTHON black 166 0 0 3.05s
✅ PYTHON flake8 166 0 1.82s
✅ PYTHON isort 166 0 0 0.42s
✅ PYTHON mypy 166 0 97.67s
✅ PYTHON pylint 166 0 17.41s
✅ REPOSITORY checkov yes no 14.09s
⚠️ REPOSITORY devskim yes 59 1.14s
✅ REPOSITORY dustilock yes no 2.29s
✅ REPOSITORY git_diff yes no 0.03s
✅ REPOSITORY secretlint yes no 4.05s
✅ REPOSITORY syft yes no 1.86s
✅ REPOSITORY trivy yes no 13.48s
✅ SPELL cspell 686 0 19.97s
✅ SPELL misspell 516 2 0 0.43s
✅ XML xmllint 3 0 0.0s
✅ YAML prettier 80 0 0 2.3s
✅ YAML v8r 23 0 25.77s
✅ YAML yamllint 81 0 1.1s

See errors details in artifact MegaLinter reports on CI Job page

@nvuillam nvuillam merged commit b0c1a5e into main Aug 11, 2022
@nvuillam nvuillam deleted the features/list-of-files branch August 11, 2022 01:52
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.

Support Linting Passed Files
2 participants