You've already forked v8-code-style
mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2025-07-07 08:35:39 +02:00
#266 Переименована константа
This commit is contained in:
@ -48,7 +48,7 @@ public class FormListRefUseAlwaysFlagDisabledCheck
|
|||||||
private static final List<String> REF_ABSTRACT_DATA_PATH = List.of("List", "Ref"); //$NON-NLS-1$ //$NON-NLS-2$
|
private static final List<String> REF_ABSTRACT_DATA_PATH = List.of("List", "Ref"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
private static final List<String> REF_ABSTRACT_DATA_PATH_RU = List.of("Список", "Ссылка"); //$NON-NLS-1$ //$NON-NLS-2$
|
private static final List<String> REF_ABSTRACT_DATA_PATH_RU = List.of("Список", "Ссылка"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
|
|
||||||
private static final Predicate<? super DbViewFieldDef> nameCheck =
|
private static final Predicate<? super DbViewFieldDef> NAME_CHECK =
|
||||||
name -> name.getName().equals(REF_ABSTRACT_DATA_PATH.get(1));
|
name -> name.getName().equals(REF_ABSTRACT_DATA_PATH.get(1));
|
||||||
|
|
||||||
private static Predicate<AbstractDataPath> pathCheck = path -> {
|
private static Predicate<AbstractDataPath> pathCheck = path -> {
|
||||||
@ -97,7 +97,7 @@ public class FormListRefUseAlwaysFlagDisabledCheck
|
|||||||
if (formAttribute.getExtInfo() instanceof DynamicListExtInfo)
|
if (formAttribute.getExtInfo() instanceof DynamicListExtInfo)
|
||||||
{
|
{
|
||||||
DbViewTableDef tableDef = (DbViewTableDef)((DynamicListExtInfo)formAttribute.getExtInfo()).getMainTable();
|
DbViewTableDef tableDef = (DbViewTableDef)((DynamicListExtInfo)formAttribute.getExtInfo()).getMainTable();
|
||||||
if (tableDef.getFields().stream().anyMatch(nameCheck)
|
if (tableDef.getFields().stream().anyMatch(NAME_CHECK)
|
||||||
&& formAttribute.getNotDefaultUseAlwaysAttributes().stream().noneMatch(pathCheck))
|
&& formAttribute.getNotDefaultUseAlwaysAttributes().stream().noneMatch(pathCheck))
|
||||||
{
|
{
|
||||||
resultAceptor.addIssue(
|
resultAceptor.addIssue(
|
||||||
|
Reference in New Issue
Block a user