codefactor-io / codefactor

Automated static analysis for C#, C++, Java, CSS, JS, Go, Python, Ruby, TypeScript, Scala, CoffeeScript, Groovy, C, SCSS, Less, PHP, Dockerfile, Bash, YAML and Swift.
https://www.codefactor.io
62 stars 31 forks source link

C# 12.0 support #60

Closed DarkStoorM closed 9 months ago

DarkStoorM commented 9 months ago

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 commented 9 months ago

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

cordis-dev commented 9 months ago

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