1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2026-05-19 18:35:35 +02:00

Merge pull request #1533 from dsavenko/G5V8DT-28353

G5V8DT-28353: исключение BaseForm из проверки data-composition-conditional-appearance-use
This commit is contained in:
MaksimDzyuba
2026-03-18 09:33:17 +03:00
committed by GitHub
2 changed files with 8 additions and 2 deletions
@@ -124,7 +124,7 @@ public class DataCompositionConditionalAppearanceUseCheck
else
{
Form form = manager.getOwner(eObject, Form.class);
if (monitor.isCanceled() || form == null)
if (monitor.isCanceled() || form == null || SkipBaseFormExtension.isBaseForm(form))
{
return;
}
@@ -33,7 +33,13 @@ public class SkipBaseFormExtension
return (IBmObject object, ICheckParameters parameters) -> !isBaseForm((Form)object);
}
private static boolean isBaseForm(Form form)
/**
* Returns whether the given form is a base form.
*
* @param form form to test, may be {@code null}.
* @return whether the given form is a base form.
*/
public static boolean isBaseForm(Form form)
{
return form != null && form.getMdForm().getObjectBelonging() == ObjectBelonging.ADOPTED
&& form.getExtensionForm() != null && !form.getExtensionForm().eIsProxy()