Skip to content

MegaLinter V7 has been released :) #2692

@nvuillam

Description

@nvuillam

See release notes here -> https://github.com/oxsecurity/megalinter/releases/tag/v7.0.2

If you have any issue, please comment here :)

Click to see the video on Youtube, or check LinkedIn post

V7 release

Impacting: Use of relative file paths to call linters

Now the linters are called with the relative file names, on contrary to the absolute file names used from the beginning of MegaLinter

Basically, for example we used to call eslint /tmp/lint/myfolder/myfile.js and now we call eslint myfolder/myfile.js

The only impacting issue seems to be with PRE_COMMANDS that install additonal npm dependencies.

  • pre-commands are executed in /node-deps ONLY if they contain npm i or yarn add AND if the cwd is "root" (which is by default). Before it used to be in /node-deps undepending the cwd value
  • If they do not work with cwd: root , it will probably work with cwd: workspace
  • If you see such impact on your repo , please notify here in a comment :)

Known issues

Breaking changes

Pending

  • Tiny issue with upgrader , check that the report folder is megalinter-reports before committing :) (Waiting for NPM internal bug fix)

Released in 7.0.3

Released in 7.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    O: stale 🤖This issue or pull request is stale, it will be closed if there is no activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions