1
0
forked from VimPlug/jedi
Commit Graph

57 Commits

Author SHA1 Message Date
Dave Halter
4180b6590d Move static analysis documentation of the names for nodes_to_execute. 2015-09-21 14:49:36 +02:00
Dave Halter
f455605399 Remove final bugs from the execute_nodes implementation. 2015-09-21 14:43:51 +02:00
Dave Halter
e47ca7b734 Removed an important line by accident earlier. 2015-09-21 14:02:42 +02:00
Dave Halter
e09b0a2aab Finish the work on nodes_to_execute. 2015-09-18 01:45:44 +02:00
Dave Halter
fdcf19f8b1 Document parser nodes that require execution for good static analysis. 2015-09-15 14:09:12 +02:00
Dave Halter
e7528198d3 Fix an issue with raise statements in the linter. 2015-09-13 23:45:53 +02:00
Dave Halter
ef4b424cda Replace pr with tree, #566. 2015-04-28 01:34:31 +02:00
Dave Halter
76588aa040 Static analysis issues resolved (that were cause by the removal of using ExprStmt for every node). 2015-03-05 14:18:10 +01:00
Dave Halter
e698e6aeeb Rework some of the analysis statement gathering. 2015-03-05 13:36:41 +01:00
Dave Halter
f0c6e5709c Some temporary args/kwargs related changes to static analysis. 2014-12-15 14:58:16 +01:00
Dave Halter
ddd4d675f6 star args improvements 2014-12-13 08:17:38 +01:00
Dave Halter
a4c454c103 Fix for unwanted NameError exception in static analysis with named params. 2014-12-12 14:52:34 +01:00
Dave Halter
e8cc8f0a83 Get hasattr checks completely working 2014-12-12 02:34:25 +01:00
Dave Halter
8eaa008b5f Fix try/except checks in static analysis. 2014-12-12 02:26:16 +01:00
Dave Halter
c3106c10ef Fix flow's AttributeError detection. 2014-12-11 19:26:49 +01:00
Dave Halter
d11ea73ef4 Re-enable AttributeError/NameError detection for more complicated occurances than just statements. 2014-12-11 19:18:00 +01:00
Dave Halter
77fdbac234 static analysis: Import tests working again. 2014-12-11 16:25:18 +01:00
Dave Halter
6818d3affa Implement Import.is_nested method. 2014-12-11 16:17:07 +01:00
Dave Halter
6406bfb3c2 First static analysis test working. 2014-12-11 15:42:16 +01:00
Dave Halter
c152a1c58b Actually replace tree with representation (in all the imports). 2014-11-23 19:46:52 +01:00
Dave Halter
2fc67b97e5 Disable analysis for now. 2014-11-13 00:28:42 +01:00
Dave Halter
65c18f143c Separate some Generator stuff. 2014-11-12 13:42:24 +01:00
Dave Halter
186ce2b70a Improve flow analysis a bit. 2014-11-05 19:18:45 +01:00
Dave Halter
8006d6f190 Change implementation of StatementElement.
Instead of having both next and execution as attributes, we now only have next, because it's an execution if there's an array.
2014-08-18 22:25:55 +02:00
Danilo Bargen
c97e1732ee Operator statement wrapper was missing (fixes #436) 2014-07-27 12:53:18 +02:00
Dave Halter
50ceef6e09 1 + '1' TypeErrors are now detected, but not shown in the right place 2014-07-22 10:44:56 +02:00
Dave Halter
1c9058ce6b Also issue warnings if setattr is used in a class instead of an error 2014-06-26 13:40:15 +02:00
Dave Halter
a936cea987 jedi issues now warnings instead of errors for AttributeErrors that happen in instances with __getattr__/__getattribute__ methods 2014-06-26 12:21:19 +02:00
Dave Halter
7e0edc4776 preparation for warnings in static analysis 2014-06-26 11:57:44 +02:00
Dave Halter
393833059a fixed inheritance for exception checks 2014-06-23 13:01:12 +02:00
Dave Halter
c1181a0459 fix except: usage in analysis 2014-06-23 12:13:10 +02:00
Dave Halter
9348d4bb6c jedi should be able to detect exceptions even in except X: statements 2014-06-23 12:07:51 +02:00
Dave Halter
63868feb5d hasattr checks working now, #408 2014-06-10 16:08:53 +02:00
Dave Halter
c8b7d79b54 erroneus star arguments warning 2014-06-07 13:10:19 +02:00
Dave Halter
f061de0f74 Wrong var_args with a star star function. 2014-06-06 16:49:53 +02:00
Dave Halter
f3e986a285 add multiple values for keyword type error detection 2014-05-26 18:40:02 +02:00
Dave Halter
d9f17beea5 unexpected keyword arguments detection 2014-05-23 15:34:16 +02:00
Dave Halter
9d4dc546ca first version of too few params detection 2014-05-21 13:01:12 +02:00
Dave Halter
4ecc150d85 first version of too many arguments detection 2014-05-21 12:30:51 +02:00
Dave Halter
ecf9043d97 Improved error messages for AttributeErrors, however not a final version #408 2014-05-16 18:02:33 +02:00
Dave Halter
87704ec16a custom message capability for analysis 2014-05-16 15:46:08 +02:00
Dave Halter
11b7f9f7f6 decorators should also be included in the static analysis 2014-05-16 15:33:21 +02:00
Dave Halter
4e596060b9 test for is_nested failure 2014-05-16 13:00:13 +02:00
Dave Halter
8e27ed556e fix returns/flow command edge cases 2014-05-16 12:33:00 +02:00
Dave Halter
d59e21f43c new way of gathering statements to evaluate for static analysis 2014-05-16 12:23:09 +02:00
Dave Halter
bcab821df9 linter output changes - #408 2014-05-15 00:45:50 +02:00
Dave Halter
9bcc4f8fd2 static analysis is now able to tell the difference between NameError/AttributeError 2014-05-13 16:14:32 +02:00
Dave Halter
a2b483b4f5 None issue fix for static analysis 2014-05-13 01:21:32 +02:00
Dave Halter
00e43d4585 except can also catch multiple exceptions in one statement 2014-05-12 18:46:17 +02:00
Dave Halter
96386b4578 if something catches an exception, ignore that report 2014-05-12 18:10:17 +02:00