I have heritage code in python with semicolon at the end of each line and mixed tab and spaces indentation.
PyCharm reports it at code inspection and suggest to reformat code. The problem is that when I click "Reformat Code" (which IDE recommends), Pycharm does nothing - code still contains semicolons and mixed indentation.
Why Code Reformat does not work?
Sample code:
for i in config.args.include:
if i.count(":") == 2:
path, output, prefix = i.split(":");
elif i.count(":") == 1:
path, prefix = i.split(":");
output = os.path.splitext(path)[0] + ".h";
else:
utils.fatal("Incorrect -a paramter tuple specification");