Hello! This PR makes code style changes throughout the Mosa.Utility.Launcher project in order to improve consistency with other projects. The following changes were done:
The space shift when putting braces after a case statement has now been removed as a ReSharper rule
Code after a statement (like if) was put on a separate line if not already the case
Method bodies were transformed into expression bodies whenever possible
Null-coalescing operators were used whenever possible
Braces around statements were removed if the containing block had only 1 line of code
Commented code was removed
Variables whose name didn't give any more useful insight into what it is were inlined (e.g. var arg = "convert -f raw [...]";)
Strings that were too long (like in Builder.GetLimineCFG()) were transformed into multi-line strings
Using blocks were transformed into using statements whenever possible
If statements were transformed into 1 switch statement whenever it made sense (when there are more than 2 if statements)
Private fields were moved after public fields
Patterns were used in comparisons whenever possible
Ternary operators were used whenever it made sense for cleaner code
Hello! This PR makes code style changes throughout the Mosa.Utility.Launcher project in order to improve consistency with other projects. The following changes were done:
case
statement has now been removed as a ReSharper ruleif
) was put on a separate line if not already the casevar arg = "convert -f raw [...]";
)Builder.GetLimineCFG()
) were transformed into multi-line strings