Plugins/CheckerPlugins/CodeStyleChecker/NamingStyleChecker.py

changeset 3004
c4bf32c791d0
parent 2984
031cceaa8b01
child 3022
57179e4cdadd
child 3057
10516539f238
equal deleted inserted replaced
3003:cb43c34239b1 3004:c4bf32c791d0
125 @param code message code (string) 125 @param code message code (string)
126 @param args arguments for a formatted message (list) 126 @param args arguments for a formatted message (list)
127 @return translated and formatted message (string) 127 @return translated and formatted message (string)
128 """ 128 """
129 if code in cls.Messages: 129 if code in cls.Messages:
130 return code + " " + QCoreApplication.translate("NamingStyleChecker", 130 return code + " " + QCoreApplication.translate(
131 "NamingStyleChecker",
131 cls.Messages[code]).format(*args) 132 cls.Messages[code]).format(*args)
132 else: 133 else:
133 return code + " " + QCoreApplication.translate("NamingStyleChecker", 134 return code + " " + QCoreApplication.translate(
135 "NamingStyleChecker",
134 "no message for this code defined") 136 "no message for this code defined")
135 137
136 def __visitTree(self, node): 138 def __visitTree(self, node):
137 """ 139 """
138 Private method to scan the given AST tree. 140 Private method to scan the given AST tree.

eric ide

mercurial