Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove <p class="markdown-alert-title"> from generated template #128

Open
FrediKats opened this issue May 19, 2024 · 0 comments
Open

Remove <p class="markdown-alert-title"> from generated template #128

FrediKats opened this issue May 19, 2024 · 0 comments
Labels
task Implementation is needed

Comments

@FrediKats
Copy link
Member

Sample from generated template:

## Use collection expression for Create (IDE0303)
## This rule flags places where a Create() method or a similar method that's designated as the collection construction method (using the System.Runtime.CompilerServices.CollectionBuilderAttribute attribute) is used to initialize a collection and offers to replace it with a collection expression ([...]).
## Create() methods are common for the immutable collections, for example, ImmutableArray.Create(1, 2, 3).
## <p class="markdown-alert-title"><svg viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>Note</p>
## This rule requires more recent versions of the immutable APIs (for example, System.Collections.Immutable), which opt into the collection-expression pattern.
## // Code with violations.
@FrediKats FrediKats added the task Implementation is needed label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Implementation is needed
Projects
None yet
Development

No branches or pull requests

1 participant