forcedotcom / forcedotcom/code-analyzer

[Feature Request] Add notice/warning/error messages for PR violations

Open
#1,903 2 comments 0 reactions 0 assignees View on GitHub
USER STORY
Dominant language
TypeScript
Stars
240
Forks
52
Avg merge
1d 23h
Merged PRs (30d)
5

Description

### Product Area

The “Run Salesforce Code Analyzer” GitHub Action

### Your Need or Problem

Currently the violations for files changed in the PR are split out from the global violations but not easily navigable. Using the list of violations I have to navigate to file & line myself.

### Your Desired Solution

It would be helpful if the violations reported for files in the PR could be reported as annotations at the proper location. This should be possible by using messages from Worfklow Commands: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands#setting-an-error-message

### Alternatives Considered

_No response_

### Additional Context (Screenshots, Files, etc)

As an example, this is how the PMD Action reports violations:
Image

Image

### Workaround

_No response_

### Urgency

Low

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.