src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py

branch
eric7
changeset 10455
bed8a0c90d11
parent 10440
2c1289d82881
child 10457
4bef44d7a378
equal deleted inserted replaced
10454:475fd3e2e8ae 10455:bed8a0c90d11
1632 strippedLine = line.lstrip() 1632 strippedLine = line.lstrip()
1633 if strippedLine.startswith("@"): 1633 if strippedLine.startswith("@"):
1634 docToken = strippedLine.split(None, 1)[0] 1634 docToken = strippedLine.split(None, 1)[0]
1635 docTokens.append((docToken, lineno)) 1635 docTokens.append((docToken, lineno))
1636 1636
1637 # check, that a type tag is not preceeced by an empty line 1637 # check, that a type tag is not preceded by an empty line
1638 if ( 1638 if (
1639 docToken in ("@tyoe", "@rtype", "@ytype") 1639 docToken in ("@type", "@rtype", "@ytype")
1640 and lineno > 0 1640 and lineno > 0
1641 and lines[lineno - 1].strip() == "" 1641 and lines[lineno - 1].strip() == ""
1642 ): 1642 ):
1643 self.__error( 1643 self.__error(
1644 docstringContext.start() + lineno, 0, "D271", docToken 1644 docstringContext.start() + lineno, 0, "D271", docToken

eric ide

mercurial