Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Phodal
Coca
提交
8ef9fa62
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 搜索 >>
未验证
提交
8ef9fa62
编写于
1月 09, 2020
作者:
P
Phodal Huang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: fix lint issue
上级
2a922bb3
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
5 addition
and
14 deletion
+5
-14
cmd/git.go
cmd/git.go
+1
-1
go.sum
go.sum
+1
-2
pkg/application/call/call_graph.go
pkg/application/call/call_graph.go
+1
-1
pkg/application/evaluate/evaluator/models.go
pkg/application/evaluate/evaluator/models.go
+1
-1
pkg/application/refactor/base/models/jfull_identifier.go
pkg/application/refactor/base/models/jfull_identifier.go
+1
-1
pkg/infrastructure/ast/api/java_api_listener.go
pkg/infrastructure/ast/api/java_api_listener.go
+0
-8
未找到文件。
cmd/git.go
浏览文件 @
8ef9fa62
...
...
@@ -77,7 +77,7 @@ var gitCmd = &cobra.Command{
const
secondsOfOneMonth
=
2600640
month
:=
time
.
Since
(
info
.
Age
)
.
Seconds
()
/
secondsOfOneMonth
displayMonth
:=
strconv
.
FormatFloat
(
month
,
'f'
,
2
,
64
)
agesDisplay
=
append
(
agesDisplay
,
CodeAgeDisplay
{
info
.
EntityName
,
displayMonth
})
agesDisplay
=
append
(
agesDisplay
,
CodeAgeDisplay
{
EntityName
:
info
.
EntityName
,
Month
:
displayMonth
})
}
table
.
SetHeader
([]
string
{
"EntityName"
,
"Month"
})
...
...
go.sum
浏览文件 @
8ef9fa62
...
...
@@ -28,8 +28,7 @@ github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5y
github.com/hashicorp/hcl
v1.0.0/go.mod h1:
E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/hpcloud/tail
v1.0.0 h1:
nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=
github.com/hpcloud/tail
v1.0.0/go.mod h1:
ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/huleTW/bad-smell-analysis
v0.0.0-20200108141729-8208e91ffb91 h1:
gtDJh/2ApQrXtvVDNqfszlkMDhSdWDh3fVkwKN97IeY=
github.com/huleTW/bad-smell-analysis
v0.0.0-20200108141729-8208e91ffb91/go.mod h1:
m/G88wmnOY6Qii7BkXlx8Omm8LLK3bvT+J7HqFQ4Jak=
github.com/huleTW/bad-smell-analysis
v0.1.0 h1:
mEVtiekah7S2X5CqyeakCDUcWyO3v0QruJDNh7JzX+s=
github.com/huleTW/bad-smell-analysis
v0.1.0/go.mod h1:
m/G88wmnOY6Qii7BkXlx8Omm8LLK3bvT+J7HqFQ4Jak=
github.com/iancoleman/strcase
v0.0.0-20191112232945-16388991a334 h1:
VHgatEHNcBFEB7inlalqfNqw65aNkM1lGX2yt3NmbS8=
github.com/iancoleman/strcase
v0.0.0-20191112232945-16388991a334/go.mod h1:
SK73tn/9oHe+/Y0h39VT4UCxmurVJkR5NA7kMEAOgSE=
...
...
pkg/application/call/call_graph.go
浏览文件 @
8ef9fa62
...
...
@@ -10,7 +10,7 @@ type CallGraph struct {
}
func
NewCallGraph
()
CallGraph
{
return
*&
CallGraph
{}
return
CallGraph
{}
}
func
(
c
CallGraph
)
Analysis
(
funcName
string
,
clzs
[]
domain
.
JClassNode
)
string
{
...
...
pkg/application/evaluate/evaluator/models.go
浏览文件 @
8ef9fa62
...
...
@@ -35,5 +35,5 @@ type EvaluateModel struct {
}
func
NewEvaluateModel
()
EvaluateModel
{
return
*&
EvaluateModel
{
Nullable
:
Nullable
{
Items
:
nil
}}
return
EvaluateModel
{
Nullable
:
Nullable
{
Items
:
nil
}}
}
pkg/application/refactor/base/models/jfull_identifier.go
浏览文件 @
8ef9fa62
...
...
@@ -35,7 +35,7 @@ type JFullIdentifier struct {
}
func
NewJFullIdentifier
()
JFullIdentifier
{
identifier
:=
*&
JFullIdentifier
{
""
,
""
,
""
}
identifier
:=
JFullIdentifier
{
""
,
""
,
""
}
methods
=
nil
fields
=
make
(
map
[
string
]
JField
)
imports
=
nil
...
...
pkg/infrastructure/ast/api/java_api_listener.go
浏览文件 @
8ef9fa62
...
...
@@ -23,22 +23,18 @@ var currentPkg string
var
identMap
map
[
string
]
models
.
JIdentifier
var
imports
[]
string
var
currentExtends
=
""
var
currentImplements
=
""
var
depInjectMap
map
[
string
]
string
func
NewJavaApiListener
(
jIdentMap
map
[
string
]
models
.
JIdentifier
,
diMap
map
[
string
]
string
)
*
JavaApiListener
{
isSpringRestController
=
false
currentClz
=
""
currentPkg
=
""
currentExtends
=
""
currentImplements
=
""
imports
=
nil
restApis
=
nil
identMap
=
jIdentMap
depInjectMap
=
diMap
params
:=
make
(
map
[
string
]
string
)
currentRestApi
=
models
.
RestApi
{
MethodParams
:
params
}
...
...
@@ -64,10 +60,6 @@ func (s *JavaApiListener) EnterClassDeclaration(ctx *parser.ClassDeclarationCont
currentClz
=
ctx
.
IDENTIFIER
()
.
GetText
()
}
if
ctx
.
EXTENDS
()
!=
nil
{
currentExtends
=
ctx
.
TypeType
()
.
GetText
()
}
if
ctx
.
IMPLEMENTS
()
!=
nil
{
currentImplements
=
ctx
.
TypeList
()
.
GetText
()
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录