Skip to content

SA1308 does not allow "t_" Prefix. #3695

Closed

Description

@mgraf1

Using Version: StyleCop.Analyzers 1.2.0-beta.507

image

I receive a warning for a thread static field with the prefix "t_".

The rule description states the cause as "A field name in C# is prefixed with m_ or s_."

It seems there was a past issue for this: #688. Perhaps this is a regression bug?

Activity

  1. bjornhellander commented on Sep 16, 2023

    @bjornhellander
    Contributor

    The issue you refer to updated SA1308 to trigger on "t_", so this seems to be intentional. I assume you interpreted it the other way around.

  2. bjornhellander commented on Sep 16, 2023

    @bjornhellander
    Contributor

    I created a pull request to update the documentation

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions