Skip to content

bugs in DDL Annotations -> Standardize annotation layout #451

@dag27

Description

@dag27

Hi colleagues,

abap-cleaner does not align the following code correctly under DDL ANNOTATIONS -> Standardize annotation layout

  1. with option "Align 'tables' of structure-identical annotations in arrays" = true => Same fields should be aligned under each other in @UI.facet.
  2. with option "Align values of nested elements (unless an element contains a dot)" = true => values of @UI.headerInfo.typeName, @UI.headerInfo.typeNamePlural, ...title, and ...description should be aligned.

original:
@Metadata.layer: #CORE
@Search.searchable: true

@ui: { headerInfo: { typeName: 'Check Group Execution',
typeNamePlural: 'Check Group Executions',
title: { value: 'Id', label: 'Check Group Execution ID' },
description: { value: 'CheckGroupDefinitionId' } },
presentationVariant: [ { sortOrder: [ { by: 'StartDateTime', direction: #DESC } ] } ] }

annotate entity c_manage_abc with
{
@UI.facet:[ { type: #COLLECTION, id: 'List', label: 'Check Group Execution' },
{ type: #LINEITEM_REFERENCE, id: 'CEX', label: 'Checks', position: 10, targetElement: 'CheckExecution' },
{ type: #LINEITEM_REFERENCE, id: 'Sel', label: 'Selection Criteria', position: 20, targetElement: 'SelectionCriteria' },
{ type: #LINEITEM_REFERENCE, id: 'ParamDef', label: 'Parameter Definition', position: 30, targetElement: 'ParameterDefinition' },
{ type: #LINEITEM_REFERENCE, id: 'Log', label: 'Log', position: 40, targetElement: 'Log' },
{ type: #IDENTIFICATION_REFERENCE, id: 'Ident', label: 'Identification', position: 50 },
{ type: #FIELDGROUP_REFERENCE, id: 'Exec', label: 'Execution', position: 60, targetQualifier: 'Exec' }
]

/* Element List */

@UI.hidden: true
uuid;

}

abap-cleaner
with "Align 'tables' of structure-identical annotations in arrays" = true
with "Align values of nested elements (unless an element contains a dot)" = true

@Metadata.layer: #CORE
@Search.searchable: true

@ui: { headerInfo: { typeName: 'Check Group Execution',
typeNamePlural: 'Check Group Executions',
title: { value: 'Id', label: 'Check Group Execution ID' },
description.value: 'CheckGroupDefinitionId' },
presentationVariant: [ { sortOrder: [ { by: 'StartDateTime', direction: #DESC } ] } ] }

annotate entity c_manage_abc with

{
@ui: { facet: [ { type: #COLLECTION, id: 'List', label: 'Check Group Execution' },
{ type: #LINEITEM_REFERENCE, id: 'CEX', label: 'Checks', position: 10, targetElement: 'CheckExecution' },
{ type: #LINEITEM_REFERENCE, id: 'Sel', label: 'Selection Criteria', position: 20, targetElement: 'SelectionCriteria' },
{ type: #LINEITEM_REFERENCE, id: 'ParamDef', label: 'Parameter Definition', position: 30, targetElement: 'ParameterDefinition' },
{ type: #LINEITEM_REFERENCE, id: 'Log', label: 'Log', position: 40, targetElement: 'Log' },
{ type: #IDENTIFICATION_REFERENCE, id: 'Ident', label: 'Identification', position: 50 },
{ type: #FIELDGROUP_REFERENCE, id: 'Exec', label: 'Execution', position: 60, targetQualifier: 'Exec' } ],
hidden: true }

/* Element List */
uuid;
}

Could you please fix this?

Thanks and best regards,
Dirk Giebel

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions