Skip to content

Commit

Permalink
linting (#2861)
Browse files Browse the repository at this point in the history
* rewrite

* Update abaplint.json

* Update abaplint.json

* move to include where its used

* Update .gitignore

* Update abaplint.json

* Update package.json

* Update package.json
  • Loading branch information
larshp committed Aug 12, 2019
1 parent 971efbf commit 27f712a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules/
package-lock.json
zabapgit.abap
.vscode
deps
21 changes: 16 additions & 5 deletions abaplint.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
"skipGeneratedFunctionGroups": true,
"applyUnspecifiedRules": false
},
"dependencies": [],
"dependencies": [
{
"url": "https://github.com/abaplint/deps",
"folder": "/deps",
"files": "/src/**/*.*"
}
],
"syntax": {
"errorNamespace": "^(Z|Y)",
"globalConstants": [
Expand All @@ -23,6 +29,7 @@
"seoc_version_inactive",
"seok_access_free",
"seok_access_modify",
"seok_pgmid_r3tr",
"seop_ext_class_locals_def",
"seop_ext_class_locals_imp",
"seop_ext_class_macros",
Expand Down Expand Up @@ -52,6 +59,10 @@
"enabled": true,
"exclude": []
},
"ambiguous_statement": {
"enabled": true,
"exclude": []
},
"avoid_use": {
"enabled": true,
"exclude": [],
Expand All @@ -67,8 +78,8 @@
"exclude": []
},
"check_variables": {
"enabled": false,
"exclude": ["zcl_abapgit_ecatt"]
"enabled": true,
"exclude": []
},
"class_attribute_names": {
"enabled": true,
Expand Down Expand Up @@ -330,8 +341,8 @@
"exclude": []
},
"superclass_final": {
"enabled": false,
"exclude": ["zcl_abapgit_ecatt"]
"enabled": true,
"exclude": []
},
"tabl_enhancement_category": {
"enabled": true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"url": "git+https://github.com/larshp/abapGit.git"
},
"devDependencies": {
"abaplint": "^1.7.13",
"abaplint": "^1.7.21",
"abapmerge": "^0.11.5",
"eslint": "^5.11.1"
}
Expand Down
4 changes: 3 additions & 1 deletion src/objects/zcl_abapgit_object_tobj.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ CLASS ZCL_ABAPGIT_OBJECT_TOBJ IMPLEMENTATION.
event = <ls_tvimf>-event
TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
DELETE tvimf FROM <ls_tvimf>.
DELETE FROM tvimf
WHERE tabname = <ls_tvimf>-tabname
AND event = <ls_tvimf>-event.
ENDIF.
ENDLOOP.

Expand Down
2 changes: 2 additions & 0 deletions src/zabapgit.prog.abap
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ SELECTION-SCREEN BEGIN OF SCREEN 1001.
* dummy for triggering screen on Java SAP GUI
SELECTION-SCREEN END OF SCREEN 1001.

TABLES sscrfields.

INCLUDE zabapgit_password_dialog. " !!! Contains SELECTION SCREEN

* create class ZCL_ABAPGIT_AUTH_EXIT implementing ZIF_ABAPGIT_AUTH in following include,
Expand Down
3 changes: 1 addition & 2 deletions src/zabapgit_password_dialog.prog.abap
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
*&---------------------------------------------------------------------*
*& Include ZABAPGIT_PASSWORD_DIALOG
*&---------------------------------------------------------------------*
TABLES sscrfields.

SELECTION-SCREEN BEGIN OF SCREEN 1002 TITLE s_title.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) s_url FOR FIELD p_url.
PARAMETERS: p_url TYPE string LOWER CASE VISIBLE LENGTH 40 ##SEL_WRONG.
PARAMETERS: p_url TYPE string LOWER CASE VISIBLE LENGTH 40 ##SEL_WRONG.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) s_user FOR FIELD p_user.
Expand Down

0 comments on commit 27f712a

Please sign in to comment.