-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathto do
25 lines (20 loc) · 961 Bytes
/
to do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Work on:
- cpp formatting
- something to put spacers between functions and eliminate anything in between that isnt code
Ideas:
- add language detection
- add new languages
- move formatting of different languages, and tools into their own files and make corresponding header files
Done:
- makefile (change with added/changed files)
- confirmation to overwrite backed up file if it already exists
- if you do not specify to format or revert it gives you the program usage and help
- detects file language by extension
- alerts to unsupported files
- can revert formatted file to the backup if available
- formatting for cpp files (bugs may exist, need more testing on files)
- puts braces on their own line
- indents based on braces
- does not match up with invalid braces (invalid = ones in quotes, ticks, or comments)
- adds newlines after valid semicolons (invalid = ones in parenthesis)
- limits consecutive empty lines to one