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

Fix 'An opening curly bracket must not be followed by a blank line.' issue in API.boilerpalte.Infra\Persistence\EF\ApiBoilerplateContext.cs #11

Open
marcialwushu opened this issue Apr 8, 2023 · 0 comments

Comments

@marcialwushu
Copy link
Member

CodeFactor found an issue: An opening curly bracket must not be followed by a blank line.

It's currently on:
API.boilerpalte.Infra\Persistence\EF\ApiBoilerplateContext.cs:15

To improve the readability of the code, StyleCop requires blank lines in certain situations, and prohibits blank lines in other situations. This results in a consistent visual pattern across the code, which can improve recognition and readability of unfamiliar code.

A violation of this rule occurs when an opening brace is followed by a blank line. For example:

public bool Enabled
{

    get 
    { 

        return this.enabled; 
    }
}

The code above would generate two instances of this violation, since there are two places where opening braces are followed by blank lines.

External links:

https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1505.md
Have your own StyleCop rules? No problem, simply add Settings.StyleCop file to the root of this branch.
issue code: SA1505

Found in API.boilerpalte.Infra\Persistence\EF\ApiBoilerplateContext.cs:15

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