sonar-openedge icon indicating copy to clipboard operation
sonar-openedge copied to clipboard

BufferUsage rule - Add prolint-nowarn preprocessor expression

Open gquerret opened this issue 8 months ago • 2 comments

On behalf of IS

Add preprocessor expression to skip issues in procedures / functions / methods:

{&_proparse_ prolint-nowarn(bufferUsage)} // Suppress issues on all buffers in this procedure
procedure myProc:

end procedure.

If possible, add expression to skip issues per buffer name:

{&_proparse_ prolint-nowarn(bufferUsage-item)} // Suppress issues only on 'item' buffer in this procedure
procedure myProc:

end procedure.

gquerret avatar Apr 26 '25 13:04 gquerret

@gquerret If I understand correctly, this will allow ignoring a certain rule for an entire internal procedure / function / method. Does it also provide for a way to ignore a rule for an entire external procedure (.p)/class ?

ccecvb avatar Apr 28 '25 06:04 ccecvb

You're right, that's only for internal procedure / function / method. Currently no way to ignore for the entire procedure.

gquerret avatar Apr 28 '25 07:04 gquerret