Skip to content

Implement SA1653 (ProperlyEncodeGenericBrackets) #758

Closed

Description

@Przemyslaw-W

I am often seeing encoded <T> characters (<T>) in my xmldoc comments (cref attributes for example) as well as the cleaner {T} format.

I think there should be a StyleCop rule that makes this a consistent style format across the code base. The {T} format is obviously much more readable and should be what the R# fix changes it to while a new StyleCop rule looks for the <T> to determine violations.

At the end of the day, I want

    /// <summary>
    /// Initializes a new instance of the <see cref="DisposalScope&lt;T&gt;"/> class.
    /// </summary>

to be

    /// <summary>
    /// Initializes a new instance of the <see cref="DisposalScope{T}"/> class.
    /// </summary>

Originally proposed by rprimrose http://stylecop.codeplex.com/workitem/7074

Activity

  1. Przemyslaw-W commented on Apr 30, 2015

    @Przemyslaw-W
    Author

    I like it

  2. sharwell commented on Apr 30, 2015

    @sharwell
    Member

    I like it. I saw it occur many times in corefx.

  3. sharwell commented on Apr 30, 2015

    @sharwell
    Member

    I'm going to fast-track this rule and mark it up for grabs. It was a clear win and definitely a situation that tends to occur in real code bases.

  4. changed the title [-]Rule proposal - Documentation rule - Properly encode generic brackets[/-] [+]Implement SA1653 (ProperlyEncodeGenericBrackets)[/+] on Sep 29, 2015
  5. self-assigned this
    on Sep 29, 2015
  6. assigned and unassigned on Oct 17, 2026
  7. moved this from Backlog to In progress in StyleCopAnalyzerson Oct 17, 2026
  8. moved this from In progress to Done in StyleCopAnalyzerson Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions