Skip to content

Suggestion: Add "comment" property in Examples to specify the context of the Rule #3125

Closed

Description

@PaulTaykalo

It is probably a good idea to have a comment for violating and non-viloating Examples that can be used as a "documentation" and can be used as a detailed description of what is the example about.
Now

        ↓import Foundation
        typealias Foo = CFData
        """, configuration: [
            "require_explicit_imports": true
        ])

After

        ↓import Foundation
        typealias Foo = CFData
        """, configuration: [
            "require_explicit_imports": true
        ],comment: "Using transitive type 'CFData' from CoreFoundation should require CoreFoundation import")

Activity

  1. stale commented on Nov 8, 2020

    @stale

    This issue has been automatically marked as stale because it has not had any recent activity. Please comment to prevent this issue from being closed. Thank you for your contributions!

  2. added
    wontfix
    on Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions