Skip to content

Support mjs and cjs files in Static Reachability

What does this MR do and why?

Resolves Support .mjs and .cjs files for static reachabi... (gitlab-org/gitlab#555400 - closed).

.mjs and .cjs should be supported out-of-the-box by our current SR capabilities, as they are contained within JavaScript which SR supports.

This MR adds .cjs and .mjs to the list of files collected by SR for JavaScript analysis.

We should identify some projects that contain .mjs and .cjs files to verify this change on.

Related issues

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Yasha Rise

Merge request reports

Loading