Open sergey-shambir opened 6 years ago
Issue with undesired line breaks can be fixed with "-l 255" option for the PTOP. Hovewer, with this option PTOP sometimes adds extra spaces at the end of line. This issue can be fixed with postprocessing formatted file: Python script should trim spaces at the end of each string
Python has module difflib which can be used to estimate difference between unformatted and formatted sources to calculate score.
[ ] python script which formats code depending on language Script takes one positional argument (input file path) and one switch to select programming language Script should be usable as module or as standalone executable script. Script should call underlying code formatting tool and then counts lines changed by tool
[ ] Pascal support with PTOP See also our coding conventions and early config for PTOP
[ ] C++ support with clang-format See also our config for clang-format
[ ] JSON report Script should create report in JSON format which contains
total number of lines
number of lines changed by tool
list of line numbers in input file that was changed by formatter