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

C# 12.0 support #60

Closed
DarkStoorM opened this issue Jan 29, 2024 · 2 comments
Closed

C# 12.0 support #60

DarkStoorM opened this issue Jan 29, 2024 · 2 comments

Comments

@DarkStoorM
Copy link

In the Settings -> Tools I'm getting parse errors for StyleCop analyzer with the following line:

public class CommandHandler(string message, string senderId, string senderName, string hexColor, bool isPrivileged)
{
[...]

I assume it doesn't support C# 12.0 features yet, e.g. Primary Constructors like above and on collection expressions. This is also the reason why I stopped getting rule violation and complexity reports in most of the files.

1
2
3

@cordis-dev
Copy link
Contributor

@DarkStoorM thanks for reporting, we'll look into this.

@cordis-dev
Copy link
Contributor

C# 12.0 features like primary constructors and collection expressions should now be supported for StyleCop linter.

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

2 participants