Giter VIP home page Giter VIP logo

rpglelint's Introduction

NAME

rpglelint - Lint ILE/RPG Programs

SYNOPSIS

rpglelint [OPTIONS]... [FILE]...

DESCRIPTION

rpglelint will lint ILE/RPG programs

Mandatory arguments to long options are mandatory for short options too.

Options

-I, --include=glob

a file glob with directories that will be searched for included files, see INCLUDE DIRECTORIES

-f, --format=format

output format, either unix, or json

-Wname

set the warning name, see WARNINGS for a complete list of warnings

--dump

dump the parsed tree

--dump-file-only

dump the parsed tree, but exclude all included files

-h, --help

show help and exit

WARNINGS

Enable a warning by using -Wname, and disable it by using -Wno-name

Warnings enabled by -Wall, and -Wextra will be marked with [-Wall] and [-Wextra].

-Wglobal

warn about global declarations

-Windicator [-Wall]

warn about usage of indicators such as *INLR and *IN01

-Wparameter-mismatch [-Wall]

warn when a DCL-PROC does not match the DCL-PR

-Wqualified [-Wall]

warn when data structures are not qualified

-Wredefining-symbol [-Wall]

warn when a symbol is redefined

-Wsame-casing [-Wextra]

warn when a declaration is referenced with another casing than it is declared

-Wshadow

warn when a global declaration is shadowed by a local declaration

-Wsubroutine

warn when subroutines are used

-Wundefined-reference [-Wall]

warn when a symbol is referred but not declared

-Wunreachable-code

warn when code will never be reached

-Wunused-parameter [-Wextra]

warn when a parameter is never referred

-Wunused-procedure [-Wextra]

warn when a static procedure is never called

-Wunused-subroutine [-Wextra]

warn when a subroutine is never executed

-Wunused-variable [-Wextra]

warn when a declaration is never referred

-Wuppercase-constant [-Wall]

warn when a constant (defined with DCL-C) is not all uppercase

-Wuppercase-indicator [-Wall]

warn when an indicator (including *BLANK, *BLANKS, *CDMY, *CMDY, *CYMD, *DMY, *DATA, *EUR, *EUR, *HMS, *ISO0, *ISO, *JIS, *JOBRUN, *JUL, *LONGJUL, *MDY, *OFF, *OMIT, *ON, *USA, *USA, and *YMD) is not all uppercase

INCLUDE DIRECTORIES

The following will happen to included files when searched for existence:

The current files directory followed by all include directories will be scanned, from first added to last:

The checks are the following:

  • The filename will be checked

  • The filename will be lowercased

  • .rpgleinc will be appended to the filename

  • the filename will be lowercased and .rpgleinc will be appended

  • .mbr will be appended to the filename

  • the filename will be lowercased and .mbr will be appended

The first / in the filename will be substituted with .lib/, and the first , will be substituted with .file/.

The list above will now we checked again with the modified filename, before moving on to the next include directory.

ENVIRONMENT VARIABLES

The following environment variables are read and used by rpglelint as described.

RPGLELINT

options which are passed to rpglelint automatically

RPGLELINT_INCLUDE

a file glob with directories that will be searched for included files, see INCLUDE DIRECTORIES

SEE ALSO

rpglectags(1)

AUTHOR

Andreas Louv <[email protected]>.

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

rpglelint's People

Contributors

andlrc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

zs6jce bachmannr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.