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

SA1208 - Missing file-scoped namespace support #3437

Closed
ghost opened this issue Jan 16, 2022 · 0 comments · Fixed by #3438
Closed

SA1208 - Missing file-scoped namespace support #3437

ghost opened this issue Jan 16, 2022 · 0 comments · Fixed by #3438
Labels

Comments

@ghost
Copy link

ghost commented Jan 16, 2022

SA1208 SystemUsingDirectivesMustBePlacedBeforeOtherUsingDirectives is not fired when a file-scoped namespace is used.

Example:

namespace WebApi.Controllers;

using Microsoft.AspNetCore.Mvc;
using System;

[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
}

Environment:

  • .NET 6
  • C# 10
  • StyleCop 1.2.0-beta.376
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant