On Fri, 18 Aug 2023 at 19:01, David Gibbs via RPG400-L
<rpg400-l@xxxxxxxxxxxxxxxxxx> wrote:

Has anyone ever used sonarqube’s rpg static code analysis?

Oooh, interesting!

Some of the rules are a puzzle. While they like KLIST instead of
individual fields (indirect reference), but they don't like /COPY
(indirect reference but super necessary for sane prototypes. Some are
downright antiquated, like /EJECT should be used after F, D, and C
spec blocks. https://rules.sonarsource.com/rpg/RSPEC-1901/ Some are
what I'd call style choices, like Standard language features should be
in upper case https://rules.sonarsource.com/rpg/RSPEC-2024/

FWIW, the RPG linter is in their sonarLint - which is an Eclipse
plug-in. https://www.sonarsource.com/products/sonarlint/features/eclipse/

I've been trying to understand the linting rules/process in VS Code
for IBM i. Liam's been doing amazing work. I think I need to
understand both the VS Code extension
https://github.com/halcyon-tech/vscode-ibmi and the RPG extension
(which has the linter) https://github.com/halcyon-tech/vscode-rpgle

Thanks for posting this!
--buck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.