codefori / codefori/vscode-rpgle

Additional Linter Options

Open
#257 1 comment 2 reactions 0 assignees View on GitHub
idea
Dominant language
TypeScript
Stars
57
Forks
35
Avg merge
2d 3h
Merged PRs (30d)
1

Description

I have one linter config setup for our shop and share it between our developers in order to keep our code consistent.
This works, but I see an opportunity for additional code formatting options in the rpgle linter. Here are several suggestions...

- Include space after "(" and before ")" ;
example: Int(10) would be converted to Int( 10 )

- Include space [ before | after | nospace ] with the parameter separator ":" character
example: nospace Procedure( Parm1:Parm2:Parm3 )
before Procedure( Parm1 :Parm2 :Parm3 )
after Procedure( Parm1: Parm2: Parm3 )

- Require or remove Const keyword on Dcl-C statements
example: require Dcl-C SOMECONSTANT Const( 'XYZ' );
remove Dcl-C SOMECONSTANT 'XYZ';

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.