GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-05-15T19:06:21.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 10 JS, 2013 Sprint 10, Release 3.1.1, Release 3.2.0 |
Components | Code Processor |
Labels | code-analyzer, qe-closed-3.1.1, qe-testadded |
Reporter | Bryan Hughes |
Assignee | Bryan Hughes |
Created | 2013-05-08T05:21:18.000+0000 |
Updated | 2013-09-24T09:11:15.000+0000 |
Currently, list of APIs in plugin results (such as ti-api-usage-finder) are sorted by execution order which can get unwieldy to deal with in large projects. They should be sorted alphabetically instead
To test, run "titanium analyze -p iphone -A -R results". This will generate HTML results files in a directory called "results" inside the project folder. Open index.html in the results folder and navigate to the API Usage tab. Without the fix, the APIs are unsorted, but with the fix they are sorted alphabetically.
Functionally testing https://github.com/appcelerator/titanium-code-processor/pull/178 I found that either upper/lower case letters are not sorting properly, or the sorting is dependent on whether the API is a namespace versus a function. All the Ti.UI.createView calls are sorted _after_ all the Ti.UI.View ones. See the attached screenshot for reference.
Got an updated version of the plugin branches and all is working as expected now. Merged all 4 PRs.
The list of the APIs being used is displayed in the 'API Usage Finder' section. Verified that the order in which are displayed is alphabetically in all the subsections relative to APIs (like "APIs Used" and "APIs Used by File"). Appcelerator Studio 3.1.1.201305292130 Titanium SDK 3.1.1.v20130529114554 Alloy 1.1.3-alpha Titanium-Code-Processor 1.1.3-alpha3 Closing.