diff -r 6422943b388f -r 0843dd7239f6 RadonMetrics/MaintainabilityIndexCalculator.py --- a/RadonMetrics/MaintainabilityIndexCalculator.py Sat Dec 31 16:27:44 2022 +0100 +++ b/RadonMetrics/MaintainabilityIndexCalculator.py Sat May 27 15:33:58 2023 +0200 @@ -29,7 +29,7 @@ return batchMaintainabilityIndex -def maintainabilityIndex(file, text=""): +def maintainabilityIndex(file, text=""): # noqa: U100 """ Private function to calculate the maintainability index of one file. @@ -40,7 +40,7 @@ @return tuple containing the result dictionary @rtype (tuple of dict) """ - return __maintainabilityIndex(file, text) + return __maintainabilityIndex(text) def batchMaintainabilityIndex(argumentsList, send, fx, cancelled, maxProcesses=0): @@ -133,17 +133,15 @@ @type multiprocessing.Queue """ for filename, source in iter(inputQueue.get, "STOP"): - result = __maintainabilityIndex(filename, source) + result = __maintainabilityIndex(source) outputQueue.put((filename, result)) -def __maintainabilityIndex(file, text=""): +def __maintainabilityIndex(text): """ Private function to calculate the maintainability index for one Python file. - @param file source filename - @type str @param text source text @type str @return tuple containing the result dictionary