You've already forked v8-code-style
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:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
+7
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user