Closed jrodriguez-rc closed 4 years ago
We recently changed its default threshold from 00 to 01 to keep its threshold behavior like the other checks (once you have one public attribute, raise the error), and to support the new unit test framework.
Are you using the Profiles feature?
If so, I kindly ask you to remove the check from the profile and assign it again (it will use the new default threshold).
If you are not using the Profile, could you please deactivate the Check in the SCI framework, and reactivate it?
y_check_num_public_attributes
> Save;y_check_num_public_attributes
> Save. Let me know if it works, or if you need new further support on it.
I'm executing it without Profile, just SCI configuration.
I tried to unselect > save > select > save and still I get the error.
Including configuration in Profile works fine, but I need to apply only in a specific SCI variant
Hm, interesting. It looks like something in a buffer because it works with the Profile feature. Have you tried to unselect > save > select > save the Check in the SCI variant?
Yes, I tried it from Mangement Of > Check and directly in the variant.
It's like the variant settings saved threshold 0 from the initial configuration.
Is there any way to restore default settings only for a check in a variant?
Yeah, it looks the variant saved the threshold 0. We will take a deeper look at it.
I have a workaround to suggest to you:
y_check_num_public_attributes
, and change the settings-disable_threshold_selection
to abap_false
in the class constructor;SCI
and unselect > save > select > save the check via Management Of > Check;SCI
and change the set threshold from 0 to 1;disable_threshold_selection
it as abap_true
).It is working with this change, thanks
Number of public attributes check has no threshold option
In code is setted to 1
But the check is raising even if no public attributes exists