Skip to content

RainerWinkler/abaplint

 
 

Repository files navigation

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

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.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.3%
  • JavaScript 1.9%
  • Other 0.8%