forked from alibaba/COLA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fulan.zjf
committed
Jun 30, 2020
1 parent
9fb73ff
commit d5ef8de
Showing
9 changed files
with
199 additions
and
161 deletions.
There are no files selected for viewing
42 changes: 0 additions & 42 deletions
42
.../craftsman-app/src/main/java/com/alibaba/craftsman/interceptor/ValidationInterceptor.java
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...craftsman/craftsman-app/src/main/java/com/alibaba/craftsman/interceptor/package-info.java
This file was deleted.
Oops, something went wrong.
86 changes: 0 additions & 86 deletions
86
...sman/craftsman-app/src/test/java/com/alibaba/craftsman/app/ValidationInterceptorTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 40 additions & 2 deletions
42
...infrastructure/src/main/java/com/alibaba/craftsman/tunnel/rpc/dataobject/AppMetricDO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,50 @@ | ||
package com.alibaba.craftsman.tunnel.rpc.dataobject; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class AppMetricDO { | ||
private String appName;//应用名称 | ||
private int cyclomaticComplexityCount;//圈复杂度超标的数目 | ||
private int duplicatedMethodCount;//重复代码的数目 | ||
private int longMethodCount;//长方法的数目 | ||
private int blockedCodeConductCount;//不符合编码标准的数目 | ||
|
||
public String getAppName() { | ||
return appName; | ||
} | ||
|
||
public void setAppName(String appName) { | ||
this.appName = appName; | ||
} | ||
|
||
public int getCyclomaticComplexityCount() { | ||
return cyclomaticComplexityCount; | ||
} | ||
|
||
public void setCyclomaticComplexityCount(int cyclomaticComplexityCount) { | ||
this.cyclomaticComplexityCount = cyclomaticComplexityCount; | ||
} | ||
|
||
public int getDuplicatedMethodCount() { | ||
return duplicatedMethodCount; | ||
} | ||
|
||
public void setDuplicatedMethodCount(int duplicatedMethodCount) { | ||
this.duplicatedMethodCount = duplicatedMethodCount; | ||
} | ||
|
||
public int getLongMethodCount() { | ||
return longMethodCount; | ||
} | ||
|
||
public void setLongMethodCount(int longMethodCount) { | ||
this.longMethodCount = longMethodCount; | ||
} | ||
|
||
public int getBlockedCodeConductCount() { | ||
return blockedCodeConductCount; | ||
} | ||
|
||
public void setBlockedCodeConductCount(int blockedCodeConductCount) { | ||
this.blockedCodeConductCount = blockedCodeConductCount; | ||
} | ||
} |
Oops, something went wrong.