Riverside-Software / sonar-openedge

CABL (Code Analyzer for ABL in SonarQube) - ABL ANTLR4 Parser
https://riverside-software.fr
GNU Lesser General Public License v3.0
63 stars 26 forks source link

Unable to suppress unused output parameter of method #1129

Closed stefandrissen closed 5 months ago

stefandrissen commented 5 months ago
CLASS foo:

   METHOD VOID bar (
      {&_proparse_ prolint-nowarn(varusage)}
      isuppress_1 AS INTEGER,
      {&_proparse_ prolint-nowarn(varusage)}
      OUTPUT icannot_suppress AS INTEGER,
      {&_proparse_ prolint-nowarn(varusage)}
      isuppress_2 AS INTEGER
   ):

      // something

   END METHOD.

END CLASS.

image

gquerret commented 5 months ago

You can insert the preprocessor reference before icannot_suppress. Before you say it, it's not beautiful, but it works. I'll add a fix so that it will be possible to have the preprocessor reference before output keyword.

gquerret commented 5 months ago

Fixed in develop