Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10640] CodeProcessor: Implement accidental assignment in conditional Code Processor plugin

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2016-08-24T20:11:24.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsCode Processor
Labelsn/a
ReporterBryan Hughes
AssigneeChris Barber
Created2012-08-27T11:04:32.000+0000
Updated2017-03-16T21:33:23.000+0000

Description

We need to write a plugin that will throw a warning when doing an assignment inside of an if statement to prevent the following coding mistake:
var foo = 10;
if (foo = 5) {
     // do stuff
}
Doing assignments inside of an if statement is sometimes valid though, so it needs to be a warning only.

Comments

  1. Chris Barber 2016-08-24

    Code processor is dead.
  2. Lee Morris 2017-03-16

    Closing ticket as the issue won't fix.

JSON Source