Skip to content

Conversation

@Marioalexsan
Copy link
Member

Description

(This is going to be a mess.)

This PR switches code style setup from .editorconfig + omnisharp.json to .editorconfig + StyleCop.Analyzers NuGet package. The main idea is to setup proper style rules that can also be enforced at compile time if needed.

I've supressed some of the StyleCop rules that didn't really fit SFML.Net's style (or my biases), while keeping others intact for now. No code changes are done yet, since 1) some changes that StyleCop wants would be breaking changes as far as the API is concerned, and 2) we might want to tweak it further until we've reached a comfortable setup.

How to test?

Grab the branch, check the warnings generated by Intellisense, and check the warnings generated at compile time by the analyzer. Ideally also look through the code to check for other style changes that are needed.

@Marioalexsan
Copy link
Member Author

Closing this in favor of #271.

@eXpl0it3r eXpl0it3r added this to the 3.0 milestone Sep 5, 2024
@eXpl0it3r eXpl0it3r added the Feature New functionality or extending of an existing one label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New functionality or extending of an existing one

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants