Codacy (Cloud)

Access the Codacy login page: https://www.codacy.com and choose to log in with GitLab.

image.png

Authorize Codacy.

image.png

This is the interface after authorization.

image.png

Select add group ecommerce.

image.png

After adding the group, there will be 2 projects; add them all.

image.png

Once added, we will have 2 projects. Click on frontend.

image.png

The frontend dashboard displays an overview of the issues.

image.png

In the Issue section, detailed security issues are displayed according to severity levels.

image.png

Navigate to Setting → Integration and choose Enable for all.

image.png

When we create a Merge Request from feature branches to the develop branch and want Codacy to trigger a source code scan, we will enable the develop branch.

image.png

In the frontend project, we create a new branch.

image.png

In the Edit file, we copy an additional import line.

image.png

We create a Merge Request into the develop branch.

image.png

Click on create merge request.

image.png

When creating the merge request, a pipeline will be triggered.

image.png

Click on that pipeline to see the details.

image.png

GitLab will redirect to the Codacy website, and Codacy has detected issues.

image.png

You can read more about Codacy here: https://docs.codacy.com