Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Included new DirectivesCase linter option #23

Merged
merged 2 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/pages/developing/local/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ These variables can be used for local development. They can be referenced in `ac
| `&LOCALPATH` | The full path to the file on the local machine |
| `&FULLPATH` | The full path to the file on the remote machine |
| `&WORKDIR` | The working directory. Typically this means the deploy directory |
| `&FILEDIR` | The directory of the file on the remote machine |
| `&PARENT` | The local parent directory |
| `&BASENAME` | The basename of the file (`name.ext`). Can also use `{filename}` |
| `&NAME` | The name of the file (or use `&NAMEL` for lowercase) |
Expand Down
5 changes: 3 additions & 2 deletions docs/pages/extensions/rpgle/linter.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ Below are some available lint configs. [See the `rpglint.json` schema for the mo
| 🌟 | StringLiteralDupe | boolean | Duplicate string literals are not allowed. |
| 🌟 | RequireBlankSpecial | boolean | *BLANK must be used over empty string literals. |
| 🌟 | CopybookDirective | string | Force which directive which must be used to include other source. (`COPY` or `INCLUDE`) |
| 🌟 | UppercaseDirectives | boolean | Directives must be in uppercase. |
| 🌟 | DirectivesCase | string | Directives must be in the specified case. (`lower` or `upper`) |
| 🌟 | UppercaseDirectives | boolean | **Deprecated** use `DirectivesCase` instead. Directives must be in uppercase. |
| 🤔 | NoSQLJoins | boolean | JOINs in Embedded SQL are not allowed. |
| 🌟 | NoGlobalsInProcedures | boolean | Globals are not allowed in procedures. |
| 🌟 | SpecificCasing | array | Specific casing for op codes, declartions or built-in functions codes. |
Expand Down Expand Up @@ -84,7 +85,7 @@ If you want all `DCL` to be lower case and all `BIF`s to be upper case, then it
]
```

If you wanted `%parms` and `%timestamp` to always be lower case, amd all other BIFs to be upper case, then it would be coded like this:
If you wanted `%parms` and `%timestamp` to always be lower case, and all other BIFs to be upper case, then it would be coded like this:

```json
"SpecificCasing": [
Expand Down