This project is about to ensure and automate some coding conventions in the Pinnacle solution. It helps developers to avoid some tedious NW in code review, e.g. A-Z order, missing regions, regions not matched...
- Remove unnecessary options to get conventions unified:
- Do not treat "Page_Load" as a special one (always sort by alphabetical order)
- Do separate class consts and others
- Do put "readonly" fields before others
- Do not add regions, and remove existing regions.
- Group by sections:
- Constants
- Fields
- Constructors
- Methods
- Properties
Change to not get Clipboard involved when formatting in an attempt to fix the exception:
System.Runtime.InteropServices.COMException (0x800401D0): OpenClipboard Failed (Exception from HRESULT: 0x800401D0 (CLIPBRD_E_CANT_OPEN))
Add ability to Run Code Cleanup (Profile) feature from Visual Studio 2019. Be able to config which Profile to execute through option: Tools > Options > Pinnacle Coding Convention > General > Profile
Some functionalities from Cleanup Profile:
- Sort usings
- Remove Unnecessary usings
- Apply implicit/explicit preferences
- Remove unused variable