-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
8 changed files
with
45 additions
and
31 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
code-quality/src/main/kotlin/cc/unitmesh/quality/ExtRuleAnalyser.kt
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package cc.unitmesh.quality | ||
|
||
class ExtRuleAnalyser { | ||
// check with WebAPI, SQL or Other rule by ArchGuard | ||
} |
2 changes: 1 addition & 1 deletion
2
.../cc/unitmesh/quality/BadSmellGraphCall.kt → ...esh/quality/badsmell/BadSmellGraphCall.kt
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,4 +1,4 @@ | ||
package cc.unitmesh.quality | ||
package cc.unitmesh.quality.badsmell | ||
|
||
class BadSmellGraphCall { | ||
companion object { | ||
|
9 changes: 9 additions & 0 deletions
9
code-quality/src/main/kotlin/cc/unitmesh/quality/badsmell/BadSmellModel.kt
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package cc.unitmesh.quality.badsmell | ||
|
||
data class BadSmellModel( | ||
val file: String? = null, | ||
val line: String? = null, | ||
val bs: SmellType? = null, | ||
val description: String? = null, | ||
val size: Int? = null, | ||
) |
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
9 changes: 9 additions & 0 deletions
9
code-quality/src/main/kotlin/cc/unitmesh/quality/badsmell/BsConfig.kt
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package cc.unitmesh.quality.badsmell | ||
|
||
data class BsConfig( | ||
val bsLongParasLength: Int = 5, | ||
val bsIfSwitchLength: Int = 8, | ||
val bsLargeLength: Int = 20, | ||
val bsMethodLength: Int = 30, | ||
val bsIfLinesLength: Int = 3, | ||
) |
13 changes: 13 additions & 0 deletions
13
code-quality/src/main/kotlin/cc/unitmesh/quality/badsmell/SmellType.kt
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package cc.unitmesh.quality.badsmell | ||
|
||
enum class SmellType { | ||
SMELL_GARPH_CONNECTED_CALL, | ||
SMELL_LAZY_ELEMENT, | ||
SMELL_LONG_METHOD, | ||
SMELL_DATA_CLASS, | ||
SMELL_REFUSED_BEQUEST, | ||
SMELL_LARGE_CLASS, | ||
SMELL_COMPLEX_CONDITION, | ||
SMELL_REPEATED_SWITCHES, | ||
SMELL_LONG_PARAMETER_LIST | ||
} |
5 changes: 5 additions & 0 deletions
5
code-quality/src/main/kotlin/cc/unitmesh/quality/base/QualityAnalyser.kt
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package cc.unitmesh.quality.base | ||
|
||
interface QualityAnalyser { | ||
fun analysis() | ||
} |
2 changes: 2 additions & 0 deletions
2
code-quality/src/test/kotlin/cc/unitmesh/quality/BadsmellAnalyserTest.kt
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