Skip to content

Conversation

@Marioalexsan
Copy link
Member

@Marioalexsan Marioalexsan commented Aug 31, 2024

Description

This PR switches code style setup from .editorconfig + omnisharp.json to .editorconfig + .NET's built-in analyzers. The main idea is to setup proper code rules that can also be enforced at compile time if needed.

I've split it into two commits: the one that configures the rules, and the one that fixes all of the warnings generated by said rules.

How to test?

Grab the branch and build it, then go back a commit and check what warnings were being generated for the previous version of the code base.

Breaking Changes

  • Interfaces were changed to use the I-prefix in their name
  • Some function parameters name were changed to camelCase instead of PascalCase
  • DllImport names for SFML where changed to use a capital first letter, e.g. SFML.Audio instead of SFML.audio
  • Transform uses capitalized members (M1 instead of m1) that are internally accessible

@Marioalexsan Marioalexsan force-pushed the code-style branch 2 times, most recently from 9e3ed2b to 794e63c Compare August 31, 2024 18:57
@eXpl0it3r eXpl0it3r added the Feature New functionality or extending of an existing one label Aug 31, 2024
@Marioalexsan Marioalexsan force-pushed the code-style branch 2 times, most recently from 2669549 to de31af0 Compare August 31, 2024 19:24
@Marioalexsan Marioalexsan marked this pull request as ready for review September 3, 2024 10:39
@eXpl0it3r eXpl0it3r added this to the 3.0 milestone Sep 3, 2024
Copy link
Member

@eXpl0it3r eXpl0it3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

You may want to squash merge, unless you think the separate commits help in some way

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