Skip to content
Linter for ABAP
Branch: master
Clone or download
Latest commit 571c77b May 17, 2019

README.md

npm version Build Status Dependency Status Greenkeeper badge

abaplint

Linter for ABAP, code must be serialized using abapGit.

Regarding versioning: semantic versioning is currently not followed, recommend fixing usage to a specific version

Online Playground

Syntax Diagrams

Documentation

The code is in active development and some rules may not be described in documentation yet. In order to see the default configuration with all the rules run abaplint -d. You may also save it as the current config in the root dir of your project abaplint -d > abaplint.json

Works with

For checking ABAP code inside the ABAP system use code inspector or ATC, also see project abapOpenChecks.

Requirements

Node.js 10

Building

npm install
npm test

Parsing vs standard ABAP

  • Spaces required after string literals and before right parenthesis, following gives parser error lo_obj->method( 'FOO').

  • CALL FUNCTION EXCEPTIONS must be well formed, eg not

  CALL FUNCTION 'RFC_PING'
    EXCEPTIONS
      OTHERS.

  CALL FUNCTION 'RFC_PING'
    EXCEPTIONS = 2.
  • Only single chaining, following gives parser error: WRITE: bar: foo.
You can’t perform that action at this time.