码迷,mamicode.com
首页 > 其他好文 > 详细

华为项目Tree canvas画图 数据

时间:2017-07-28 17:12:53      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:efi   children   imp   should   env   ice   aide   long   head   

var radarLeftRight = {
"Reusability": [
"System Coupling", "Service Complexity", "Service Coupling", "System Consistency",
"Component Coupling","Component Complexity","Module Independency",
"Construct Complexity","Module Independency",
"File Complexity","Module Independency"
],
"Constructability": [
"System Coupling", "Service Complexity", "Service Coupling", "System Consistency",
"Sub-System Consistency", "Component Coupling","Component Complexity","Module Independency",
"Construct Complexity", "Construct Redundancy","Module Independency",
"File Size", "File Complexity","Module Independency"
],
"Evolutionability": [
"System Coupling", "System Redundancy", "Service Coupling",
"Sub-System Redundancy","Sub-System Consistency","Component Coupling","Component Complexity","Module Independency",
"Service Redundancy","Module Independency","Component Redundancy",
"Module Redundancy","File Size","File Complexity","Interface Rationality","Function Complexity"
],
"Testability": [
"System Coupling", "", "Service Complexity", "Service Coupling",
"Component Coupling","Component Complexity","Module Independency",
"Module Independency",
"File Size","File Complexity","Function Complexity"
]
};



/*1
var system = {
"Reusability": ["System Coupling", "Service Complexity", "Service Coupling", "System Consistancy"],
"Constructability": [ "System Coupling", "Service Complexity", "Service Coupling", "System Consistancy"],
"Modifiability": ["System Coupling", "System Redundancy", "Service Coupling"],
"Testability": ["System Coupling", "", "Service Complexity", "Service Coupling"]
};

var subsystem ={
"Reusability": ["Component Coupling","Component Complexity","Module Independency"],
"Constructability": ["Sub-System Consistancy", "Component Coupling","Component Complexity","Module Independency"],
"Modifiability": ["Sub-System Redundancy","Sub-System Consistancy","Component Coupling","Component Complexity","Module Independency"],
"Testability": ["Component Coupling","Component Complexity","Module Independency"]
};
3
var service ={
"Reusability": ["Construct Complexity","Module Independency"],
"Constructability": ["Construct Complexity", "Construct Redundancy","Module Independency"],
"Modifiability": ["Service Redundancy","Module Independency"],
"Testability": ["Module Independency"]
};
4
var component ={
"Reusability": ["Construct Complexity","Module Independency"],
"Constructability": ["Construct Complexity", "Construct Redundancy","Module Independency"],
"Modifiability": ["Component Redundancy","Module Independency"],
"Testability": ["Module Independency"]
};
5
var module ={
"Reusability": ["File Complexity","Module Independency"],
"Constructability": ["File Size", "File Complexity","Module Independency"],
"Modifiability": ["Module Redundancy","File Size","File Complexity","Interface Rationality","Function Complexity"],
"Testability": ["File Size","File Complexity","Function Complexity"]
};
*/
/*var dates = {
"code": "0",
"message": "success",
"data": {
"top10ProjectDefect": [
{
"description_en": "The over-complexity function means its cyclomatic complexity exceeds 15. The more the over-complexity functions in the system, the more difficult to understand and maintain.",
"other": "",
"name": "Over-Complexity Function",
"value": 6.0
},
{
"description_en": "The implements of a single module should be concentrated in an independent directory, otherwise it‘s fragile in configuration or maintaining.",
"other": "",
"name": "The Overlapped Module",
"value": 2.0
},
{
"description_en": "The Insufficient Module means the count of the sibling modules are less than 4.",
"other": "",
"name": "Insufficient Module",
"value": 2.0
},
{
"description_en": "An instance of \"cyclic dependency\" is detected by identifying a cycle in the subsystem dependency graph.",
"other": "",
"name": "Cyclic Dependencies",
"value": 2.0
},
{
"description_en": "The over-large Module means its size exceeds 40% of the parent module total LOC. ",
"other": "",
"name": "Over-Large Module",
"value": 2.0
},
{
"description_en": "The reduplicate code means more than 10 continuous lines of code are similar.",
"other": "",
"name": "Reduplicate Code",
"value": 89.0
},
{
"description_en": "Functions or methods seem more interested in the data of other capsules than the data of those in which they reside.",
"other": "",
"name": "Feature Envy",
"value": 2.0
},
{
"description_en": "The mismatch between a subsystem‘s stability and its level of abstractness.",
"other": "",
"name": "SAP Breakers",
"value": 1.0
},
{
"description_en": "large(head) file exceed some value.",
"other": "",
"name": "LargeFile",
"value": 7.0
},
{
"description_en": "A \"god class\" is a class that manipulates data that belongs to other classes in the system, and tends to concentrate functionality from several unrelated classes.",
"other": "",
"name": "God Class",
"value": 1.0
}
],
"saiDetail": [
{
"name": "ARCHATTRIBUTE",
"children": [
{
"description_en": "The code duplication rate should not exceed 5%. A higher duplication rate means that the software is redundant and software maintenance is difficult.",
"name_en": "Constructability",
"description": "通常要求是代码重复率不应该超过0.5%,超过则说明软件中存在较多冗余,不利于软件维护。",
"name": "可重构性",
"score": 5.11,
"dataIndex": "Constructability"
},
{
"description_en": "The code duplication rate should not exceed 5%. A higher duplication rate means that the software is redundant and software maintenance is difficult.",
"name_en": "Reusability",
"description": "通常要求是代码重复率不应该超过0.5%,超过则说明软件中存在较多冗余,不利于软件维护。",
"name": "可重用性",
"score": 35.24,
"dataIndex": "Reusability"
},
{
"description_en": "The code duplication rate should not exceed 5%. A higher duplication rate means that the software is redundant and software maintenance is difficult.",
"name_en": "Modifiability",
"description": "通常要求是代码重复率不应该超过0.5%,超过则说明软件中存在较多冗余,不利于软件维护。",
"name": "可修改性",
"score": 7.058,
"dataIndex": "Modifiability"
},
{
"description_en": "The code duplication rate should not exceed 5%. A higher duplication rate means that the software is redundant and software maintenance is difficult.",
"name_en": "Testability",
"description": "通常要求是代码重复率不应该超过0.5%,超过则说明软件中存在较多冗余,不利于软件维护。",
"name": "可测试性",
"score": 8.19,
"dataIndex": "Testability"
}
]
},
{

华为项目Tree canvas画图 数据

标签:efi   children   imp   should   env   ice   aide   long   head   

原文地址:http://www.cnblogs.com/duguangyan/p/7251239.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!