fjoniyz / ganges

A project for the module (Advanced) Distributed Systems Prototyping at the Technical University of Berlin.
MIT License
3 stars 2 forks source link

Formater fix #83

Open nomorehumor opened 1 year ago

nomorehumor commented 1 year ago

The PR contains changes in formatter configurations, as well as some of the formatted files

The usage of formatter is as follows (if it doesn't work by default):

  1. In Intellij go to Preferences > Editor > Code Style > Java, and with the cog near 'Scheme' dropdown choose the checkstyle config from repo (checkstyle_checks.xml)
  2. For files with errors, you can either right-click on file in Project Explorer > Reformat Code or fix it manually (only option for some errors)
  3. (optional) If you want, you can also add Checkstyle plugin locally and import config there

The formatter doesn't check for JavaDocs and package naming (for now)

nomorehumor commented 1 year ago

Other files should be formatted in other branches to avoid numerous conflicts

Ralfons-06 commented 1 year ago

The PR contains changes in formatter configurations, as well as some of the formatted files

The usage of formatter is as follows (if it doesn't work by default):

1. In Intellij go to Preferences > Editor > Code Style > Java, and with the cog near 'Scheme' dropdown choose the checkstyle config from repo (checkstyle_checks.xml)

2. For files with errors, you can either right-click on file in Project Explorer > Reformat Code or fix it manually (only option for some errors)

3. (optional) If you want, you can also add Checkstyle plugin locally and import config there

The formatter doesn't check for JavaDocs and package naming (for now)

In IntelliJ the Checkstyle Plugin has to be installed beforehand otherwise, it's not possible to choose the check_style.xml in the editor settings