QuantConnect / Lean

Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
https://lean.io
Apache License 2.0
9.55k stars 3.23k forks source link

Automatic code linting and formatting #8159

Open femtotrader opened 2 months ago

femtotrader commented 2 months ago

Expected Behavior

Automatic code formatting

Actual Behavior

Currently developper need to take care of code formatting which would probably be better developpers invested time if that was automated

Potential Solution

using a code formatter / linter such as https://csharpier.com/ could help to have well formated code

Such tool could be event be integrated as part of a continuous integration or as a pre-commit hook

Checklist

femtotrader commented 2 months ago

CSharpier have few options and claims it https://prettier.io/docs/en/option-philosophy.html I'm fine with default settings. Any opinion ?