[TIMOB-10640] CodeProcessor: Implement accidental assignment in conditional Code Processor plugin
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2016-08-24T20:11:24.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | Code Processor |
Labels | n/a |
Reporter | Bryan Hughes |
Assignee | Chris Barber |
Created | 2012-08-27T11:04:32.000+0000 |
Updated | 2017-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.
Code processor is dead.
Closing ticket as the issue won't fix.