A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/4774 below:

[apex] ApexDoc false-positive for the first method of an annotated Apex class · Issue #4774 · pmd/pmd · GitHub

Affects PMD Version: 7.0.0-rc4

Rule: ApexDoc

Description:

Code Sample demonstrating the issue:

/**
 * @description       : rest service
 **/
@RestResource(urlMapping='/api/v1/get/*') 
global without sharing class TestService {
    /**
     * @description Bar
     */
    public void bar() { return; }
}

Expected outcome:

PMD reports a violation at line 9, but that's wrong. That's a false positive.

"rest.cls","3","9","Missing ApexDoc comment","Documentation","ApexDoc"

Running PMD through: [CLI]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4