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

Mistake in the file layout. #21

Open
Tesmont opened this issue May 4, 2019 · 0 comments
Open

Mistake in the file layout. #21

Tesmont opened this issue May 4, 2019 · 0 comments

Comments

@Tesmont
Copy link

Tesmont commented May 4, 2019

This is the result of code clean up for the file layout's extension.

public class TestResharperLayout
{
    public const int PublicConst = 5;

    public readonly int PublicReadOnlyField;

    public int PublicField;

    private const int PrivateConst = 5;

    private readonly int privateReadOnlyField;

    private int privateField;
}

There is an error

SA1202 : CSharp.Ordering : All private fields must be placed after all public fields.

for private const int PrivateConst = 5; It has to be after public int PublicField;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant