Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Phodal
Coca
提交
357138a6
C
Coca
项目概览
Phodal
/
Coca
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Coca
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
357138a6
编写于
12月 15, 2019
作者:
P
Phodal Huang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: update README
上级
b0ebba13
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
84 addition
and
2 deletion
+84
-2
README.md
README.md
+84
-2
未找到文件。
README.md
浏览文件 @
357138a6
...
...
@@ -20,11 +20,11 @@ Available Commands:
bs Bad Code Smell
call call graph api
concept concept api
ga git analysis
help Help about any command
refactor auto refactor code
scc scc [FILE or DIRECTORY]
```
### Analysis
...
...
@@ -39,10 +39,57 @@ coca analysis -p [PATH]
coca bs -p examples/api -s type
```
Examples Result:
```
{
"dataClass": [
{
"File": "examples/api/BookController.java",
"BS": "dataClass"
}
...
],
"lazyElement": [
{
"File": "examples/api/model/BookRepresentaion.java",
"BS": "lazyElement"
}
...
]
}
```
### Code Line Count
```
coca cloc
coca scc
```
Results:
```
───────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity
───────────────────────────────────────────────────────────────────────────────
Go 58 31763 7132 890 23741 2847
Java 44 971 208 21 742 62
Markdown 8 238 75 0 163 0
Gherkin Specificati… 2 32 2 16 14 0
Document Type Defin… 1 293 36 0 257 0
License 1 201 32 0 169 0
SQL 1 2 0 0 2 0
SVG 1 199 0 34 165 0
Shell 1 3 1 1 1 0
XML 1 13 0 0 13 0
gitignore 1 61 8 4 49 0
───────────────────────────────────────────────────────────────────────────────
Total 119 33776 7494 966 25316 2909
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop $803,822
Estimated Schedule Effort 14.120551 months
Estimated People Required 6.743156
───────────────────────────────────────────────────────────────────────────────s
```
### Build Deps Tree
...
...
@@ -51,6 +98,8 @@ coca cloc
coca call -c com.phodal.pholedge.book.BookController.createBook -d deps.json -r com.phodal.pholedge.
```
Examples Results:
![
Call Demo
](
docs/sample/call_demo.svg
)
### Identify Spring API
...
...
@@ -59,6 +108,39 @@ coca call -c com.phodal.pholedge.book.BookController.createBook -d deps.json -r
coca api -p examples/api -d deps.json
```
### Git Analysis
```
coca ga -t -b
```
```
+----------------------------------------------+-----------+-------------+
| ENTITYNAME | REVSCOUNT | AUTHORCOUNT |
+----------------------------------------------+-----------+-------------+
| adapter/call/JavaCallListener.go | 35 | 2 |
| helloworld.go | 22 | 1 |
| refactor/base/JavaRefactorListener.go | 16 | 2 |
| .gitignore | 14 | 2 |
| refactor/rename/rename_method.go | 12 | 2 |
| bs/BadSmellApp.go | 11 | 1 |
| cmd/analysis.go | 10 | 2 |
| README.md | 10 | 2 |
| adapter/identifier/JavaIdentifierListener.go | 9 | 2 |
| bs/BadSmellListener.go | 8 | 1 |
| adapter/api/JavaApiListener.go | 8 | 1 |
| cmd/refactor.go | 8 | 2 |
| adapter/identifier/JavaIdentifierApp.go | 8 | 2 |
| refactor/main.go | 7 | 2 |
| src/domain/call_graph.go | 7 | 1 |
| refactor/base/JavaRefactorApp.go | 7 | 1 |
| go.mod | 7 | 1 |
| src/domain/concept_analyser.go | 6 | 1 |
| cmd/root.go | 6 | 2 |
| refactor/move_class_app.go | 6 | 1 |
+----------------------------------------------+-----------+-------------+
```
### Refactor
support:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录