SAP / code-pal-for-abap

code pal for ABAP is a highly configurable engine, fully integrated into the ABAP development framework ensuring Cloud’s built-in quality.
Apache License 2.0
348 stars 66 forks source link

What is the reason for check parameter "Message severity"? #143

Closed ThomasErgin closed 4 years ago

ThomasErgin commented 4 years ago

All Code Pal checks provide a parameter for "Message severity". However, the severity of ATC messages can be defined inside transaction SCI "Management of message priorities". Hence no other ATC checks seem to provide a parameter for that. Therefore I want to recommend to remove the parameter "Message severity" from the base class Y_CHECK_BASE and instead define the severity in the same way, as for the other check classes.

fabianlupa commented 4 years ago

The severity in SCI is at system level it think while the custom ones can be set for each check variant.

lucasborin commented 4 years ago

Hi Thomas,

Our tool was created based on the SCI (Code Inspector), and you can integrate it with ATC if you set the user parameter SATC_CI_MODE in your user profile (via transaction SU3). On the other hand, SCI doesn't allow severity customization. Therefore, we implemented it for users who use the Code Inspector.

Regards, Lucas

ThomasErgin commented 4 years ago

I don't really get it: SCI DOES allow to control the severity level of any given check message. Transaction SCI > Code Inspector > Management of > Message priorities Here you can overwrite for any given check, what kind of message type it will produce (info, warning, error). That's why I think the "Message severity" parameter is superfluous in the Code Pal.

lucasborin commented 4 years ago

Hm, I see. Yes, you can use the Code Inspector to set the priorities as you mentioned. However, you can set only one priority for each check for the whole system. On the other hand, the code pal for ABAP, thru the Profiles feature, allows teams or organizations to create distinct priorities for each check (+thresholds, +validity, etc) in the same system.

ThomasErgin commented 4 years ago

Ah, understood: By this you could accept certain code smells for one application but forbid this in another application. Since this has been sorted out, I will close the issue,