forcedotcom / forcedotcom/code-analyzer

[Feature Request] Option to match block highlight/decoration functionality of Apex PMD

Offen
#1,838 3 Kommentare 9 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
240
Forks
52
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
5

Beschreibung

### Product Area

The "Salesforce Code Analyzer" VS Code Extension

### Your Need or Problem

Since switching over to using the Salesforce Code Analyzer extension exclusively rather than using Apex PMD, I've noticed a difference in behavior with how lines are highlighted for notice/warning/errors.

The Salesforce Code Analyzer extension is highlighting the entire block for certain violations that apply to the whole block, this includes an entire class, or an entire method.

Apex PMD previously used to only highlight the start line where the violation occurred. In my opinion, this is less intrusive, making it easier to read and see where errors / warnings are happening.

Here's an example:

(Salesforce Code Analyzer Extension)
Image

(Apex PMD Extension)
Image

In these examples you can see that it's much easier to see other warnings within the block using the Apex PMD extension. I'm requesting an option in the extension to match this Apex PMD behavior.

### Your Desired Solution

My desired solution would be to add an option to set the decoration ranges as the start line only, rather than the entire block from start line to end line.

### Alternatives Considered

_No response_

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

_No response_

### Workaround

_No response_

### Urgency

Low

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit der Verarbeitung von Violation-Dekorationsbereichen in der Salesforce Code Analyzer VS Code extension und verfolge, wie Bereiche für ganze Blöcke erzeugt werden. Prüfe die Tests oder das UI-Verhalten der Extension für Verstöße auf Blockebene; als erledigt gilt die Arbeit, wenn eine Option die Dekoration nur auf der Startzeile auswählen kann und das bestehende Verhalten standardmäßig beibehalten wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript, vscode
Bereich
tooling
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.