Skip to content

Releases: oxsecurity/megalinter

MegaLinter v6.8.0

04 Sep 21:08
Compare
Choose a tag to compare
  • Run MegaLinter pre-commit hooks serially (#1826).

  • Replace deprecated StandardJS VS Code extension with the newer official version

  • When SARIF_REPORTER is active, use sarif-fmt to convert SARIF into text for console and text reporters (#1822).

  • Count checkstyle errors (#1820)

  • Linter versions upgrades

MegaLinter is graciously provided by OX Security

MegaLinter v6.7.1

28 Aug 20:11
Compare
Choose a tag to compare
  • Fix Azure Comments reporter: Use BuildId to build artifacts url
  • Fix actionlint install command

MegaLinter is graciously provided by OX Security

MegaLinter v6.7.0

28 Aug 09:55
Compare
Choose a tag to compare
  • Linters

    • Add PMD java linter
  • Azure Pipelines integration enhancements

    • Update installation instructions
    • Console reporter: manage collapsible groups for easier display & navigation in job logs (requires CI=true and TF_BUILD=true sent as env variables)
    • Azure comments reporter (see documentation)
  • Performances improvements

    • When running linters in parallel, run in the same process only the linters from same descriptor and that can update the same sources (to avoid concurrency). Other linters can be run independently.
    • Define linter_speed of linter descriptors (default 3). Can be from 1 (super slow) to 5 (super fast). This is used to optimize the processing order of linters.
  • Fixes

    • Fix: Properly match files_sub_directory as a prefix instead of partial string matching (#1765)
    • Match regex without workspace and sub_directory
    • Remove config variables that are not applicable to linters analyzing all files or all other linters files
  • Linter versions upgrades

MegaLinter is graciously provided by OX Security

MegaLinter v6.6.0

21 Aug 21:10
Compare
Choose a tag to compare

MegaLinter v6.5.0

15 Aug 19:20
Compare
Choose a tag to compare
  • npm-groovy-lint: Use Cli lint mode list_of_files for much better performances

  • Disable proselint by default if .proselintrc file is not found

  • Linter versions upgrades

MegaLinter v6.4.0

12 Aug 16:07
Compare
Choose a tag to compare
  • Add REPOSITORY_CHECKOV in all flavors

  • 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.
  • mega-linter-runner:

    • Allow MEGALINTER_FILES_TO_LINT to be sent as positional arguments
    • New argument --filesonly that sends SKIP_CLI_LINT_MODES=project
    • Example: mega-linter-runner --flavor python --release beta --filesonly megalinter/config.py megalinter/flavor_factory.py megalinter/MegaLinter.py
  • Fixes

    • Fix SARIF when a run is missing a results list (#1725)
    • Fix missing quotes for Powershell script analyzer (#1728)
  • Linter versions upgrades

MegaLinter v6.3.0

07 Aug 10:54
Compare
Choose a tag to compare
  • Linters

    • Add REPOSITORY_CHECKOV to benefit from all checks and not only terraform ones. TERRAFORM_CHECKOV will be deprecated in a next major version
    • Add djlint (HTML_DJLINT) to lint HTML files (html, django, jinja, nunjucks, handlebars, golang, angular)
    • Upgrade jsonlint to use maintained package @prantlf/jsonlint]([https://www.npmjs.com/package/@prantlf/jsonlint) + use cli_lint_mode list_of_files to improve performances
  • Core

    • Support for automatic removal of Docker container when linting is finished
    • Fix SARIF when endColumn is 0 (#1702)
    • Use dynamic REPORT_FOLDER value for output files for SALESFORCE and COPYPASTE descriptors
    • Fix collapsible sections in Gitlab console logs
    • Manage ignore files (like .secretlintignore or .eslintignore)
      • Define ignore argument for client in descriptors
      • Define ignore file name in descriptors (overridable with _IGNORE_FILE_NAME at runtime)
      • Update documentation generation to take in account this new configuration
  • Linter versions upgrades

MegaLinter v6.2.1

01 Aug 05:49
Compare
Choose a tag to compare
  • Fix blocking bug in MegaLinter v6.2.0 core (#1684 and #1685)

  • Linter versions upgrades

    • checkstyle from 10.3.1 to 10.3.2 on 2022-08-01
    • flake8 from 5.0.0 to 5.0.1 on 2022-08-01
    • checkov from 2.1.82 to 2.1.83 on 2022-08-01

MegaLinter v6.2.0

31 Jul 10:06
Compare
Choose a tag to compare

WARNING: Contains a bug in core MegaLinter if you use REPOSITORY_SEMGREP. Please directly upgrade to v6.2.1

  • Core

    • Fix mega-linter-runner --install template (#1662)
    • Use REPORT_OUTPUT_FOLDER: none to not generate report files
    • Add info in doc about CLI_LINT_MODE and about how to ignore files when cli_lint_mode is project
    • Fix bug that disables generation of megalinter.log file in most cases
    • Fixes about JSON Schema (#1621)
    • Remove redundant line separator after generated table (#1650)
    • Avoid flavor suggestion message when only REPOSITORY linters are not found
  • Linters

    • Add checkmake to lint Makefile
    • Disable SemGrep by default if REPOSITORY_SEMGREP_RULESETS is not defined.
    • Avoid cspell to lint all files. Lint only other linter files (#1648)
    • Fix revive installation command
    • New default config for gitleaks with useDefault=true
  • Linter versions upgrades

Note: if you are still using MegaLinter v5, run npx mega-linter-runner@latest --upgrade to upgrade to MegaLinter v6

MegaLinter v6.1.0

19 Jul 11:28
Compare
Choose a tag to compare

Run npx mega-linter-runner@latest --upgrade to upgrade to MegaLinter v6

  • Improve console logs by using collapsible sections in GitHub Actions and Gitlab CI (disable by defining CONSOLE_REPORTER_SECTIONS: false)

  • Define CLEAR_REPORT_FOLDER=true to empty report folder at the beginning of each run (#1502)

  • Improve SARIF output

    • Replace CI paths in logs
    • Add missing required properties so SARIF is valid
    • Add MegaLinter information in SARIF linter runs
    • Allow to select linters to activate SARIF for, using SARIF_REPORTER_LINTERS
    • Fix issue when a linter is used in multiple SARIF lint results
  • Linter versions upgrades

    • cfn-lint from 0.61.2 to 0.61.3 on 2022-07-19
    • checkov from 2.1.57 to 2.1.59 on 2022-07-18
    • checkov from 2.1.59 to 2.1.60 on 2022-07-19
    • cspell from 6.2.3 to 6.3.0 on 2022-07-18
    • eslint from 8.19.0 to 8.20.0 on 2022-07-17
    • golangci-lint from 1.46.2 to 1.47.0 on 2022-07-19
    • jscpd from 3.3.26 to 3.4.5 on 2022-07-19
    • markdownlint from 0.31.1 to 0.32.0 on 2022-07-17
    • pylint from 2.14.4 to 2.14.5 on 2022-07-18