Skip to content

[Bug Report]: description of child resources does not always end with a . #2444

Closed

Description

@SeSeicht

Describe the bug

for example the roleAssignments description ooften does not have a . (dot) at the end. This is only required for root modules but to be consistent we should follow the same for child modules

To reproduce

https://github.com/Azure/ResourceModules/blob/main/modules/Microsoft.AAD/DomainServices/.bicep/nested_roleAssignments.bicep#L24

Simple regex to solve this:
(^@(?:sys\.)?description.+[^\.])'\)
$1.')

Code snippet

@sys.description('Optional. The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase "foo_storage_container"')

Relevant log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions