Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14014] Code Analyzer: 'Grade' value in Category Scores section is always N/A

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2016-08-24T20:01:09.000+0000
Affected Version/sRelease 3.1.1
Fix Version/s2013 Sprint 11 JS, 2013 Sprint 11, Release 3.1.1, Release 3.2.0
ComponentsCode Processor
Labelscode-analyzer, qe-3.1.1, qe-closed-3.1.1, qe-testadded
ReporterFederico Casali
AssigneeEric Merriman
Created2013-05-29T00:40:24.000+0000
Updated2017-03-20T20:29:21.000+0000

Description

Problem description

When using the Code Analyzer for Alloy projects, the Grade in the results is always N/A

Steps to reproduce

1. Create a default new Alloy project (for example the default Two-Tab Project, as attached). 2. Run Code-Processor and check the results Result: in the Category Score section, the Grade values are always N/A. This applies to all the Alloy projects analyzed so far.

Attachments

FileDateSize
Alloy_sampleTODOapp.zip2013-05-31T18:37:57.000+000094561
alloy_twoTabbedDefault.zip2013-05-29T00:40:24.000+00007410027
Screen Shot 2013-05-31 at 11.35.37 AM.png2013-05-31T18:37:57.000+000043220

Comments

  1. Bryan Hughes 2013-05-29

    Note: there is wording on the summary page that explains that not enough code was analyzed to provide a score, but this messaging is not shown on the project score page and should be.
  2. Ingo Muschenetz 2013-05-29

    [~bhughes] Can you fix the message ASAP?
  3. Tony Lukasavage 2013-05-30

    [~ingo] or [~bhughes] I set up the plugin, ran
       ti analyze -p iphone -A
       
    against an alloy 2 tabbed app and got the following output with regards to the score on both the summary and the project score section:
       Analysis completed in 12.3 seconds at 20:14:45 GMT-0400 (EDT) on Wed May 29 2013
       Project Score: 0 points were deducted. Not enough source code was analyzed to assign a grade
       
    Is this considered to be a pass for the functional testing? If so, I will merge it and resolve this ticket as code review passes.
  4. Tony Lukasavage 2013-05-30

    Code and functional review pass. Both PRs have been merged.
  5. Bryan Hughes 2013-05-30

    Sorry to get back to you so late, but yes that is expected. This fix was purely a messaging fix, not a functionality fix.
  6. Federico Casali 2013-05-31

    Message is displayed correctly and when there is enough code to be analyzed a Project Grade score is correctly given. However, 'Grade' values in the Category Scores section details are still displayed as N/A. See screenshot. Attached a sample Alloy project which is returning a Project Grade B but displaying the Category Scores table with all Grade values set to N/A as in the screenshot.
  7. Federico Casali 2013-05-31

    Also reproducible with a default Classic (non-Alloy) Tabbed Application. In this case the Grade is A - but in the 'Category Scores' table under 'Project Score' section, all the entries have 'Grade' value N/A instead of A.
  8. Bryan Hughes 2013-05-31

    PR: https://github.com/appcelerator/appcelerator-code-processor-plugins/pull/32 1_0_X PR: https://github.com/appcelerator/appcelerator-code-processor-plugins/pull/33
  9. Tony Lukasavage 2013-06-03

    Code and functional review passes. Both PRs merged.
  10. Federico Casali 2013-06-04

    Verified as fixed. Environment: Appcelerator Studio 3.1.1.201306032350 Titanium SDK 3.1.1.v20130531163723 CLI 3.1.1-cr Alloy 1.1.3-cr Titanium-Code-Processor 1.1.3-cr Closing.
  11. Khushbu Agrawal 2014-12-18

    The issue is reproducible with the below environment with Alloy projects. Tested on: 1. Mac OSX Yosemite 10.10 2. Appcelerator Studio, build: 3.4.1.201410281743 3. Titanium SDK, build: 3.5.0.v20141217170926 4. Titanium CLI, build: 3.4.1 5. Alloy: 1.5.1 6. Xcode 6.1 7. iOS SDK 8.1 8. iPhone 5s with iOS 8.1 In the Category Score section, the Grade values are always N/A. This applies to all the Alloy projects analyzed so far.
  12. Chris Barber 2016-08-24

    Code processor is dead.
  13. Lee Morris 2017-03-20

    Closing ticket as Code processor is no longer supported.

JSON Source