1
0
forked from VimPlug/jedi
Commit Graph

94 Commits

Author SHA1 Message Date
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
Dave Halter 64af9524b7 simple generator static analysis subscript check 2014-05-12 16:06:28 +02:00
Dave Halter 3f2e737702 statical analysis shouldn't report the exact same error twice 2014-05-11 16:45:22 +02:00
Dave Halter 7b525285bd static analysis import tests 2014-05-11 15:18:48 +02:00
Dave Halter c59a8dce28 ImportError detection 2014-05-11 01:54:25 +02:00
Dave Halter 6098ba5e84 small fixes to the analysis.Error class. 2014-05-08 12:04:40 +02:00
Dave Halter 7c965e544f dive further into following imports, etc 2014-05-08 11:26:08 +02:00
Dave Halter 9eb75f9c61 static analysis prototype decription 2014-05-07 12:39:18 +02:00