Code Monkey home page Code Monkey logo

Comments (14)

mbtools avatar mbtools commented on September 25, 2024 1

i exclude such SAP includes/objects:

   "keyword_case": {
      "exclude": [
        "<include_name>"
      ],

but it would be nice if there was a more general "exclude setting" to avoid processing all rules for SAP objects. Something like

{
  "global": {
     "skipSAPobjects":true,

from abaplint-sci-client.

ed-holland avatar ed-holland commented on September 25, 2024

This should also be done in AbapLint for the same reason.

from abaplint-sci-client.

larshp avatar larshp commented on September 25, 2024

set the errorNamespace = own objects only in the abaplint.json config

from abaplint-sci-client.

ed-holland avatar ed-holland commented on September 25, 2024

that is set to "errorNamespace": "^(\/REDWOOD\/)", or "errorNamespace": "^(\/JCS\/)",

The errors we are getting currently are in 3 area's that are already reported issues:

  • structure not found (and dependend errors like "not a structure"
  • Message invalid

But we also get these which are clearly outside of the namespace set
image

from abaplint-sci-client.

ed-holland avatar ed-holland commented on September 25, 2024

Just came about another exampled. We use the include LBTCHDEF.
It does not adhere to upper/lowercase settings and fails the keyword_case check.

from abaplint-sci-client.

ed-holland avatar ed-holland commented on September 25, 2024

Or when code is generated. Here an example of generated view include attributes (editor lock and done by SAP*)
image

from abaplint-sci-client.

larshp avatar larshp commented on September 25, 2024

its

  "syntax": {
    "errorNamespace": "^(Z|Y|LCL_|TY_|LIF_)",

from abaplint-sci-client.

ed-holland avatar ed-holland commented on September 25, 2024

It is not just this check... (there could be more). In my case:

FUGR /JCS/BC > PROG LBTCHDEF [ @113 ] 
Indentation problem, expected 0 spaces (indentation)

FUGR /JCS/BC > PROG LBTCHDEF [ @437 ] 
Keyword should be upper case: "type" (keyword_case)

FUGR /JCS/BC > PROG LBTCHDEF [ @113 ] 
Start statement at tab position (start_at_tab)

from abaplint-sci-client.

larshp avatar larshp commented on September 25, 2024

in my case, LBTCHDEF gives an error because the SAP standard TADIR entry for the object does not exist,

image

image

image

from abaplint-sci-client.

ed-holland avatar ed-holland commented on September 25, 2024

There is an additional case that causes similar problems.
When one has generated maintenance views, then several of the objects have an editor lock (set by user "SAP*") which can not be changed.

Also here, one gets numerous errors that can not be removed.
./src/fpa/#jcs#fpa_actions.fugr.#jcs#lfpa_actionsf00.abap[8, 17] - Remove space before "," or "." (space_before_dot) ./src/fpa/#jcs#fpa_actions.fugr.#jcs#lfpa_actionsf00.abap[8, 9] - Identifiers should be lower case: "LSVIMFTX" (keyword_case) ./src/fpa/#jcs#fpa_actions.fugr.#jcs#lfpa_actionsi00.abap[7, 17] - Remove space before "," or "." (space_before_dot) ./src/fpa/#jcs#fpa_actions.fugr.#jcs#lfpa_actionsi00.abap[7, 9] - Identifiers should be lower case: "LSVIMITX" (keyword_case) ./src/fpa/#jcs#fpa_actions.fugr.#jcs#lfpa_actionst00.abap[10, 1] - Chain mainly declarations (chain_mainly_declarations) ./src/fpa/#jcs#fpa_actions.fugr.#jcs#lfpa_actionst00.abap[13, 26] - Remove space before "," or "." (space_before_dot) ./src/fpa/#jcs#fpa_actions.fugr.#jcs#lfpa_actionst00.abap[14, 25] - Remove space before "," or "." (space_before_dot) ./src/fpa/#jcs#fpa_actions.fugr.#jcs#lfpa_actionst00.abap[17, 19] - Remove space before "," or "." (space_before_dot) ./src/fpa/#jcs#fpa_actions.fugr.#jcs#lfpa_actionst00.abap[17, 3] - Indentation problem, expected 0 spaces (indentation) ./src/fpa/#jcs#fpa_actions.fugr.#jcs#lfpa_actionst00.abap[7, 17] - Identifiers should be lower case: "STATUS_/JCS/FPA_ACTIONS" (keyword_case)

from abaplint-sci-client.

ed-holland avatar ed-holland commented on September 25, 2024

Now with a great effort from @larshp (many Thanks), most of the issues with syntax are resolved.

What now is left are +200 errors related to rules being applied to generated code or sap original code.
I do not wish to water down the rules more to keep the quality of our code up.

image

from abaplint-sci-client.

larshp avatar larshp commented on September 25, 2024

yes, if the INLCUDE is a dependency, and used in a main object, then the errors should be ignored

from abaplint-sci-client.

mbtools avatar mbtools commented on September 25, 2024

It’s pointless to check any SAP code. Just scan to find dependencies. But check the include if it is used in the repo code.

Thanks both for the hard work!

from abaplint-sci-client.

ed-holland avatar ed-holland commented on September 25, 2024

By squashing the FORMS and Functions in the dependency repository, the issue is resolved.

Thanks

from abaplint-sci-client.

Related Issues (20)

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.