Comments (14)
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.
This should also be done in AbapLint for the same reason.
from abaplint-sci-client.
set the errorNamespace
= own objects only in the abaplint.json
config
from abaplint-sci-client.
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
from abaplint-sci-client.
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.
Or when code is generated. Here an example of generated view include attributes (editor lock and done by SAP*)
from abaplint-sci-client.
its
"syntax": {
"errorNamespace": "^(Z|Y|LCL_|TY_|LIF_)",
from abaplint-sci-client.
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.
in my case, LBTCHDEF gives an error because the SAP standard TADIR entry for the object does not exist,
from abaplint-sci-client.
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.
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.
from abaplint-sci-client.
yes, if the INLCUDE is a dependency, and used in a main object, then the errors should be ignored
from abaplint-sci-client.
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.
By squashing the FORMS and Functions in the dependency repository, the issue is resolved.
Thanks
from abaplint-sci-client.
Related Issues (20)
- Service Implementation Leads to Contains Unknown Lookup Error HOT 12
- Documentation, general setup and few scenarios
- Dependency Repo update fails with false positive on inactive table
- Replace ajson with abapgit_ajson HOT 2
- Dump in Class ZCL_ABAPLINT_BACKEND after Pull from REPO HOT 2
- Wrong error title in eclipse HOT 9
- Certificate Error HOT 7
- SAP Dependency code generation fails with DUPKEY HOT 4
- Dump in parallel mode when using SCI DBSQL_DUPLICATE_KEY_ERROR CX_SY_OPEN_SQL_DB HOT 4
- option to set only singlefile rules
- Check variant maintenance gets stuck HOT 1
- Fallback/default configuration
- No error if abaplint instance not available HOT 1
- option to run without dependency resolution
- No Issues found with large Function Groups HOT 3
- Syntax error in program "ZCL_ABAPLINT_BACKEND HOT 3
- `CX_SY_REF_IS_INITIAL` when trying to create dependencies in git HOT 2
- Circular reference between objects yields in objects being skipped by abaplint HOT 2
- zabaplint_dependencies: Function table parameter references are not selected for dependency repository HOT 1
- zabaplint_dependencies: Function table parameter references are not selected for dependency repository HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abaplint-sci-client.