-
-
Notifications
You must be signed in to change notification settings - Fork 158
Increase severity of ConvertToPrimaryConstructor #1466
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
Comments
This is intentional. It's all explained at https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/.github/CONTRIBUTING.md#pull-requests. |
I don't understand why these warnings would not be enabled during development. |
A warning doesn't interfere code edition but having a build failing in the CI even after manually building, running tests, and running the custom cleaning script is kind of frustrating. |
Because the squiggles are distracting while writing code. Warnings are supposed to alert you to potential mistakes. When a file has numerous squiggles all the time, they become background noise that gets ignored. I've worked a while with StyleCop, very annoying. I don't want to be bothered with whitespace violations, unused private methods, unreachable code, or when to use
You're just not using the right tools. Everything can be done locally. In VS, they show up under Extensions > Resharper > Inspect > Code Issues in Solution as suggestions. Rider has a similar dialog. For most of them, a refactoring is offered to resolve. For people without a license, the command-line tool |
What I'm not sure to understand is why the |
That sounds like a warning from |
Shouldn't I don't know what's the best solution but my point is that I find the current system is unfriendly to external contributors and I think it should give clearer hints when the code will not build on the CI. |
You could ask JetBrains for that, but I suspect the answer is "no".
We've had other community members use these tools in the past, including users using Rider or Resharper. As far as I'm aware, it's all documented in the contributing guidelines. From what I've seen in other repositories, it's quite common that the cibuild runs more checks than what a typical developer runs locally, however if you want to run them locally, you can. What do you propose that would improve the experience? |
Should I always expect a suggestion in the IDE for a rule that would fail in the CI? In this example I didn't get any feedback from the IDE but the inspection failed with
|
It's a bug in our ruleset configuration, #1473 fixes that. |
Got it. I'll keep this issue open a little longer to have a better understanding about the cases where I wasn't able to catch the issues before pushing them. |
Should these also be added as suggestion in the rulesets? |
Actually, I don't understand your point. What do you mean exactly? |
I didn't get a suggestion/warning in my IDE. Let me double check. |
The Github build consider ConvertToPrimaryConstructor as an error
when in Rider it's only shown as a hint.
I think the severity can be changed in the .editorconfig?
I think this affects many other hints but I only have this example for now, and it greatly affects the developer experience.
Also I'm not sure why the cleanup.ps1 didn't warn me about that 🤔
The text was updated successfully, but these errors were encountered: