def analyzeCode(self, code):
        """ line based analyse.
            @param code
                    the content of the whole file (usually) """
        currentFile = self.current[FILE]

        # checking all line lengths for given file (code)
        lineNr       = 1
        for line in code.split('\n'):
            # checking for line length
            limitToCheck = self.limits.maxCharactersPerLine()
            value        = len(line)
            self.checkLimit(lineNr, limitToCheck, value)

            # checking for tabs in line
            limitToCheck = self.limits.maxTabs()
            value        = line.count("\t")
            self.checkLimit(lineNr, limitToCheck, value)

            # counting blank lines
            if len(line.strip()) == 0:
                currentFile.totalBlankLines += 1
                functions = [ function for function in currentFile.functions.values() \
                              if function["lineNr"]                   < lineNr and \
                                 function["lineNr"]+function["lines"] > lineNr ]

                if len(functions) == 1:
                    functions[0]["blankLines"] += 1

            lineNr += 1

        # checking number of lines in given file (code)
        limitToCheck = self.limits.maxLinesPerFile()
        lineNr       = 1
        value        = code.count("\n") + 1
        self.checkLimit(lineNr, limitToCheck, value - currentFile.totalBlankLines)

        currentFile.totalLines = value
 line based analyse.
            @param code
                    the content of the whole file (usually) 
recipes/Python/578023_Simple_Python_Checker/recipe-578023.py