[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Common Lua (Logic/Style etc) Errors Detectable Through Static Analysis
- From: Jon Akhtar <akhtar@...>
- Date: Tue, 15 Feb 2011 10:34:17 -0500
On Tue, Feb 15, 2011 at 10:05 AM, Peter Odding <peter@peterodding.com> wrote:
> Actually I'm not that lazy! ;-) I looked through inspections.lua but assumed
> the "Global self" example referred only to setting the global variable
> "self". Good to hear your plug-in handles both cases, and yes it is an
> insidious error!
>
> - Peter Odding
Didn't mean to imply you were lazy :) Just wanted to make it easier on everyone.
But yes, anywhere it sees global self being used it flags it. It knows
which identifiers are local and which ones are global, so it can
detect global self anywhere that it is used.
-Jon