Problem description
Analyzing an Alloy project using Model/Collections, there is an unexpected error in the Code Analyzer report regarding the Collection name, which is reported as not defined.
Steps to reproduce
1. Use Alloy sample app:
https://github.com/appcelerator/alloy/tree/1_1_X/test/apps/models/journal (also attached here in the Jira)
2. Run the Code Analyzer
Result:
Error ["journal' is not defined] is reported.
Description: "journal" is not defined
File: Alloy.Collections.instance("journal");
Line: 37
'journal' is the value of the 'collection_name'.
It seems the line number is also not correct.
Alloy.Collections.instance("journal");
line is present in Resources/alloy/controllers/index.js but at line 44 (Resources files are included in the Project attached too).
After some investigation and discussion with Tony, this is actually expected behavior in Alloy.