Can't change RPGLE lint indent value #1394
-
It seems no matter what I try, I keep getting this message on every line: I tried removing the "indent" property, as well as setting it to a crazy value. It still wants a 0 indent. Here's my current RPGLINT.JSON:
Any idea what I should check? TIA |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 11 replies
-
I haven't figured out exactly what changes it but press F1 and type indent and it should tell you to change the indent value. Also there is a place in the bottom right that allows you to adjust the ident value. |
Beta Was this translation helpful? Give feedback.
-
I think I'm setting it right, but it doesn't seem to have any effect. In the Object Browser view, I right-click on my filter and select "Open RPG lint configuration". The first value is for indent. No matter what value I put in there, the linter assumes an indent of 0. I've re-opened the source member and bounced VS Code. It keeps giving the same warning.
|
Beta Was this translation helpful? Give feedback.
-
Sorry Justin I’m not much help I don’t think I changed it in tjr linter. I was thinking that only affected the format document but not sure. But wanted to offer this up as well. Every other Friday there is a little group that gets together to discuss issues with code4i. Code for IBM i Fridays: A Free Seiden Community Eventseidengroup.comTodays meeting can be joined atJoin our Cloud HD Video Meetingus02web.zoom.usMeeting ID: 897 2338 2794Passcode: 596772On Jul 12, 2024, at 8:33 AM, Justin-E-Taylor ***@***.***> wrote:
I think I'm setting it right, but it doesn't seem to have any effect.
In the Object Browser view, I right-click on my filter and select "Open RPG lint configuration". The first value is for indent. No matter what value I put in there, the linter assumes an indent of 0. I've re-opened the source member and bounced VS Code. It keeps giving the same warning.
{
"indent": 2,
"PrototypeCheck": true,
"NoOCCURS": true,
"NoSELECTAll": true,
"UppercaseConstants": true,
"IncorrectVariableCase": true,
"NoSQLJoins": true,
"PrettyComments": true,
"NoGlobalSubroutines": true,
"NoExternalTo": [
"QCMD",
"QP2TERM",
"QSH",
"SYSTEM",
"QCMDEXC"
]
}
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I won't be able to join that meeting. I've deleted and re-created my RPGLINT.JSON. I haven't tried a different library. I'm going to try that next. |
Beta Was this translation helpful? Give feedback.
-
I told you a little wrong as I'm just back at a PC. Try this Press F1 and type Change Tab Display Size |
Beta Was this translation helpful? Give feedback.
Origin is always 1 in my experience (but I'm just a user). Personally, I've not found a reason to start code in other than column 1.