Check constructor visibility is public

 home styleguide  single file  edit

constructor_visibility_public

Description

Constructor must be placed in the public section, even if the class is not CREATE PUBLIC.

Extended Information

This only applies to global classes.

https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#if-your-global-class-is-create-private-leave-the-constructor-public
https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/abeninstance_constructor_guidl.htm

Default Configuration

Hover to see descriptions, Ctrl+Space for suggestions