def get_errors(self):
        errors = NumpyDocString.get_errors(self)

        if not self['Signature']:
            #errors.append("No function signature") #this check is currently
                                                    #too restrictive. Disabling
                                                    #it for now
            pass

        if not self['Summary']:
            errors.append("No function summary line")

        if len(" ".join(self['Summary'])) > 3*80:
            errors.append("Brief function summary is longer than 3 lines")

        if not self['Parameters'] and self.has_parameters:
            errors.append("No Parameters section")

        return errors
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/devtools/tests/docscrape.py/NumpyFunctionDocString.get_errors/original