terryyin / lizard

A simple code complexity analyser without caring about the C/C++ header files or Java imports, supports most of the popular languages.
Other
1.85k stars 250 forks source link

Bug: --warning-msvs: Option not working #247

Closed ghost closed 5 years ago

ghost commented 5 years ago

Command $ lizard --warning-msvs *.cpp

Console output

Traceback (most recent call last):
  File "/usr/local/bin/lizard", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/lizard.py", line 986, in main
    warning_count = printer(result, options, schema, AllResult)
TypeError: print_msvs_style_warning() takes 3 positional arguments but 4 were given

Details I thing that bug is on line 833. Function print_msvs_style_warning(code_infos, option, scheme) missing last argument named '_' in defaultly called function print_clang_style_warning(code_infos, option, scheme, _).

terryyin commented 5 years ago

@HerbHunter thanks for the reporting and finding. This is fixed in a new release.