AppSourceCop Warning AS0127
Objects should be placed in a namespace with at least two levels.
Description
Objects should be placed in a namespace with at least two levels of nesting. This minimizes conflicts with other applications and allows the object name to not use an affix.
Remarks
The AS0127 warning indicates that objects should be placed in a namespace with at least two levels of nesting. This practice helps minimize conflicts with other applications and allows the object name to avoid using an affix. By organizing objects into namespaces with multiple levels, you can ensure better structure and avoid naming collisions, which is especially important when publishing extensions to AppSource.
How to fix this diagnostic?
To address the AS0127 warning, organize your objects into namespaces with at least two levels of nesting. This involves creating a hierarchical structure for your namespaces, which can help in managing and categorizing your objects more effectively. Here are the steps to fix this diagnostic:
If the object doesn't have a namespace, you should do the following:
- Identify the objects that aren't placed in a namespace with at least two levels of nesting.
- Create a hierarchical namespace structure that includes at least two levels.
- Move the identified objects into the appropriate namespaces within the new structure.
- Update any references to the moved objects to reflect their new namespaces.
If the object already has a namespace, you should do the following:
- Identify the objects that aren't placed in a namespace with at least two levels of nesting.
- Obsolete the objects that aren't placed in a namespace with at least two levels of nesting.
- In the next version of the extension, update the namespace to use at least two levels of nesting and remove the obsolete properties.
Related information
AppSourceCop Analyzer
Getting Started with AL
Developing Extensions