444Ro666 / MapleEzorsia-v2

v83 Standalone HD dll client/localhost
GNU Affero General Public License v3.0
76 stars 40 forks source link

Improve code quality by standardising the code style #58

Open wejrox opened 2 months ago

wejrox commented 2 months ago

The code style is quite difficult to read at a glance right now, because there's so much on one line at a time and lots of redundant qualifiers.

I'd recommend running a code formatter over it.

You can do this easily by:

  1. Sign up for the JetBrains Rider EAP program to access Rider for free
  2. Access the code style settings and generate the code style from the current project (button) image
  3. Apply the suggested code style
  4. Search for Actions on Save in settings
  5. Enable auto formatting on save image
  6. Run formatting over the entire solution image
  7. Press Run image
  8. Build and fix compilation problems
    1. Some return types are replaced with auto which breaks them.
    2. There's a code style option you can change to fix this.