eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheck.py

changeset 7900
72b88fb20261
parent 7639
422fd05e9c91
child 7923
91e843545d9a
equal deleted inserted replaced
7899:ecf67e07b6e0 7900:72b88fb20261
69 """ 69 """
70 Function to extract flags starting and ending with '__' from a line 70 Function to extract flags starting and ending with '__' from a line
71 comment. 71 comment.
72 72
73 @param line line to extract flags from (string) 73 @param line line to extract flags from (string)
74 @keyparam startComment string identifying the start of the comment (string) 74 @param startComment string identifying the start of the comment (string)
75 @keyparam endComment string identifying the end of a comment (string) 75 @param endComment string identifying the end of a comment (string)
76 @keyparam flagsLine flag indicating to check for a flags only line (bool) 76 @param flagsLine flag indicating to check for a flags only line (bool)
77 @return list containing the extracted flags (list of strings) 77 @return list containing the extracted flags (list of strings)
78 """ 78 """
79 flags = [] 79 flags = []
80 80
81 if not flagsLine or ( 81 if not flagsLine or (
100 Function to compile one Python source file to Python bytecode 100 Function to compile one Python source file to Python bytecode
101 and to perform a pyflakes check. 101 and to perform a pyflakes check.
102 102
103 @param filename source filename (string) 103 @param filename source filename (string)
104 @param codestring string containing the code to compile (string) 104 @param codestring string containing the code to compile (string)
105 @keyparam checkFlakes flag indicating to do a pyflakes check (boolean) 105 @param checkFlakes flag indicating to do a pyflakes check (boolean)
106 @keyparam ignoreStarImportWarnings flag indicating to 106 @param ignoreStarImportWarnings flag indicating to
107 ignore 'star import' warnings (boolean) 107 ignore 'star import' warnings (boolean)
108 @return dictionary with the keys 'error' and 'warnings' which 108 @return dictionary with the keys 'error' and 'warnings' which
109 hold a list containing details about the error/ warnings 109 hold a list containing details about the error/ warnings
110 (file name, line number, column, codestring (only at syntax 110 (file name, line number, column, codestring (only at syntax
111 errors), the message, a list with arguments for the message) 111 errors), the message, a list with arguments for the message)
207 Function to compile one Python source file to Python bytecode 207 Function to compile one Python source file to Python bytecode
208 and to perform a pyflakes check. 208 and to perform a pyflakes check.
209 209
210 @param filename source filename (string) 210 @param filename source filename (string)
211 @param codestring string containing the code to compile (string) 211 @param codestring string containing the code to compile (string)
212 @keyparam checkFlakes flag indicating to do a pyflakes check (boolean) 212 @param checkFlakes flag indicating to do a pyflakes check (boolean)
213 @keyparam ignoreStarImportWarnings flag indicating to 213 @param ignoreStarImportWarnings flag indicating to
214 ignore 'star import' warnings (boolean) 214 ignore 'star import' warnings (boolean)
215 @return dictionary with the keys 'error' and 'warnings' which 215 @return dictionary with the keys 'error' and 'warnings' which
216 hold a list containing details about the error/ warnings 216 hold a list containing details about the error/ warnings
217 (file name, line number, column, codestring (only at syntax 217 (file name, line number, column, codestring (only at syntax
218 errors), the message, a list with arguments for the message) 218 errors), the message, a list with arguments for the message)

eric ide

mercurial