Skip to content

Is a rule's header's HTML anchor name still a valid tag inside gsl::suppress? #2044

Closed

Description

@dmitrykobets-msft

The specification In.force: Enforcement allows for [[gsl::suppress(Rh-public)]], where Rh-public is the HTML anchor name for C.134. Is this type of tag still supported?
Is there potential for confusion if the guidelines ever move away from their current HTML/Markdown format?

Note that currently the only way to find the appropriate anchor name for a given rule when viewing the rendered HTML is to inspect the webpage and navigate through its elements.

Update:
On the github pages, clicking on the anchor button next to a title will sometimes generate a different anchor name than the "intended" anchor name
image

  • will give http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#i13-do-not-pass-an-array-as-a-single-pointer as opposed to http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Ri-array

Activity

  1. hsutter commented on Jul 27, 2023

    @hsutter
    Contributor

    See also #2046

  2. hsutter commented on Jul 27, 2023

    @hsutter
    Contributor

    Editors call: The HTML tags are an implementation detail, but the names should also be visible to the reader. We'll address this together with #2046.

  3. hsutter commented on Feb 15, 2024

    @hsutter
    Contributor

    Editors call: Sorry for the lag on this. The answer is that.

    • Item numbers are for users, and users should suppress by item number. For example for I.13, the user would suppress using [[gsl::suppress("I.13")]])... note that the tag will now be a string literal.

    • Anchors are for tools, and tools should link by the anchor name. For example for I.13, the tool should link to "Ri-array" using https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Ri-array.

  4. self-assigned this
    on Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions