Skip to content

Commit

Permalink
feat: CodeCC For 1.5 TencentBlueKing#4572
Browse files Browse the repository at this point in the history
  • Loading branch information
ddlin0719 committed Jul 21, 2021
1 parent 5376344 commit 2bf7b75
Show file tree
Hide file tree
Showing 7 changed files with 1,421 additions and 59 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{"_id":{"$oid":"5d6f5b4a97e61722dcdfdd6f"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_value":".*/third-party/.*","param_name":"url","param_type":"DEFAULT_FILTER_PATH","param_status":"1","create_date":1567578954525,"created_by":"systen_admin"}
{"_id":{"$oid":"5dc26e49467d4daef81ece9a"},"param_type":"ADMIN_MEMBER","create_date":1556610717,"created_by":"systen_admin","param_code":"ADMIN_MEMBER","param_value":"admin1;admin2;admin3;admin4;admin5;admin6;admin7;admin8;admin9;admin10;admin11;admin12;admin13;admin14;admin15;admin","updated_by":"systen_admin","updated_date":1.556610717E+09}
{"_id":{"$oid":"5dc4070c467d4daef820a505"},"param_value":".*/.svn/.*","param_name":"url","param_type":"DEFAULT_FILTER_PATH","param_status":"1","create_date":1567578954556,"created_by":"systen_admin"}
{"_id":{"$oid":"5e11a79c381926818bc12a17"},"param_type":"LANG_ORDER","create_date":1556610717,"created_by":"systen_admin","param_code":"LANG_ORDER","param_value":"C/C++,JAVA,C#,JS,OC/OC++,Python,PHP,Golang,Kotlin,TS,Swift,LUA,Ruby,Dart,Scala,其他","updated_by":"systen_admin","updated_date":1.556610717E+09}
{"_id":{"$oid":"5e11a79c381926818bc12a17"},"param_type":"LANG_ORDER","create_date":1556610717,"created_by":"systen_admin","param_code":"LANG_ORDER","param_value":"C/C++,JAVA,C#,JS,OC/OC++,Python,PHP,Golang,Kotlin,TS,Swift,LUA,Ruby,其他","updated_by":"systen_admin","updated_date":1.556610717E+09}
{"_id":{"$oid":"5dfc3fcb75230886818d2e2f"},"param_type":"DOCKERNIZED_TOOLS","create_date":1556610717,"created_by":"systen_admin","param_code":"DOCKERNIZED_TOOLS","param_value":"DETEKT,CPPLINT,PYLINT,CHECKSTYLE,STYLECOP,GOML,PHPCS,CCN,DUPC,BKCHECK-OC,OCCHECK","updated_by":"systen_admin","updated_date":1.556610717E+09}
{"_id":{"$oid":"5e40fca6381926818be9da28"},"param_type":"BG_ADMIN_MEMBER","create_date":1556610717,"created_by":"systen_admin","param_code":"29294","param_value":"admin","updated_by":"systen_admin","updated_date":1.556610717E+09}
{"_id":{"$oid":"5e40fca6381926818be9da2e"},"param_type":"BG_ADMIN_MEMBER","create_date":1556610717,"created_by":"systen_admin","param_code":"29292","param_value":"","updated_by":"systen_admin","updated_date":1.556610717E+09}
Expand Down Expand Up @@ -81,7 +81,6 @@
{"_id":{"$oid":"5f3a440026b00a8b851302d3"},"param_type":"FAST_INCREMENTAL_OPENSOURCE_TASK_WHITE_LIST","create_date":1596610717,"created_by":"systen_admin","param_code":"FAST_INCREMENTAL_OPENSOURCE_TASK_WHITE_LIST","param_value":"25302","param_status":"ENABLE","updated_by":"systen_admin","updated_date":1.596610717E+09}
{"_id":{"$oid":"5eda12b62651da10f1251e71"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"show-code","param_value":"PCG_RD","param_type":"APP_CODE_MAPPING","create_date":1556610717,"created_by":"systen_admin","updated_date":1556610717,"updated_by":"systen_admin"}
{"_id":{"$oid":"5ed356ab2651da10f1a7b8d9"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"techmap","param_value":"TEG_CUSTOMIZED","param_type":"APP_CODE_MAPPING","create_date":1556610717,"created_by":"systen_admin","updated_date":1556610717,"updated_by":"systen_admin"}
{"_id":{"$oid":"5f463837753a79868f7965f7"},"param_code":"32768","param_name":"Scala","param_type":"LANG","param_status":"P","param_extend1":"Scala","param_extend2":"[\"SCALA\",\"Scala\",\"scala\"]","param_extend3":"16","param_extend4":"SCALA","param_extend5":"true","lang_full_key":"SCALA","lang_type":"compile","open_source_checker_sets":[],"create_date":1589169367,"created_by":"systen_admin","updated_date":1589169367,"updated_by":"systen_admin"}
{"_id":{"$oid":"5f68b7c7753a79868ffa1f48"},"param_type":"SECURITY_TOOLS","create_date":1556610717,"created_by":"systen_admin","param_code":"SECURITY_TOOLS","param_value":"WOODPECKER_SENSITIVE,RIPS,HORUSPY,COVERITY,XCHECK,SCSCANNER","updated_by":"systen_admin","updated_date":1.556610717E+09}
{"_id":{"$oid":"5f6c0443753a79868f073ba4"},"param_type":"TOOL_TYPE","param_status":"P","create_date":1556610717,"created_by":"systen_admin","param_code":"STAT","param_name":"统计","param_extend1":"统计数据","param_extend3":3,"updated_by":"systen_admin","updated_date":1.556610717E+09}
{"_id":{"$oid":"5f6c4b11da6bf23170ad6b83"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"EXCLUDE_USER_MEMBER","param_value":"v_zhenwliu;v_ziwli;v_lzhiweili;v_jiandeng;v_rjliu;v_rrowang","param_type":"EXCLUDE_USER_MEMBER","updated_date":1601280664281,"updated_by":"v_zhiyu"}
Expand Down Expand Up @@ -118,7 +117,6 @@
{"_id":{"$oid":"5f6ca85fda6bf24cadf89dc9"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"1024","param_name":"CLOC","param_type":"ONCE_CHECKER_SET_KEY","param_extend1":"cloc_swift","create_date":1600956511355,"created_by":"admin","updated_date":1600956511355,"updated_by":"admin"}
{"_id":{"$oid":"5f6ca85fda6bf24cadf89dca"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"2048","param_name":"CLOC","param_type":"ONCE_CHECKER_SET_KEY","param_extend1":"cloc_ts","create_date":1600956511355,"created_by":"admin","updated_date":1600956511355,"updated_by":"admin"}
{"_id":{"$oid":"5f6ca85fda6bf24cadf89dcb"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"4096","param_name":"CLOC","param_type":"ONCE_CHECKER_SET_KEY","param_extend1":"cloc_kotlin","create_date":1600956511356,"created_by":"admin","updated_date":1600956511356,"updated_by":"admin"}
{"_id":{"$oid":"5f6ca85fda6bf24cadf89dcc"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"8192","param_name":"CLOC","param_type":"ONCE_CHECKER_SET_KEY","param_extend1":"cloc_dart","create_date":1600956511357,"created_by":"admin","updated_date":1600956511357,"updated_by":"admin"}
{"_id":{"$oid":"5f6ca85fda6bf24cadf89dcd"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"16382","param_name":"CLOC","param_type":"ONCE_CHECKER_SET_KEY","param_extend1":"cloc_solidity","create_date":1600956511358,"created_by":"admin","updated_date":1600956511358,"updated_by":"admin"}
{"_id":{"$oid":"5f6ca85fda6bf24cadf89dce"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"1073741824","param_name":"CLOC","param_type":"ONCE_CHECKER_SET_KEY","param_extend1":"standard_cloc","create_date":1600956511359,"created_by":"admin","updated_date":1600956511359,"updated_by":"admin"}
{"_id":{"$oid":"6041a07f16aa0f139bb1b4c2"},"param_code":"65536","param_name":"CSS","param_type":"LANG","param_status":"P","param_extend1":"CSS","param_extend2":"[\"CSS\",\"css\"]","param_extend3":"17","lang_full_key":"CSS","lang_type":"uncompile","open_source_checker_sets":[{"checker_set_id":"tencent_css_standard","tool_list":["STYLELINT"],"version":1}],"cloc_lang":"CSS","epc_checker_sets":[],"create_date":1614913570,"created_by":"admin"}
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,4 @@
{"_id":{"$oid":"60b09bd273a3da7cbf756e80"},"_class":"com.tencent.bk.codecc.defect.model.checkerset.CheckerSetEntity","checker_set_id":"codecc_default_ts","version":5,"checker_set_name":"TS快速检查","code_lang":2048,"checker_set_lang":"TS","scope":1,"creator":"admin","create_time":1579082006242,"last_update_time":1622186962068,"checker_props":[{"tool_name":"CLOC","checker_key":"CodeLineCount","props":""}],"task_usage":0,"enable":1,"project_id":"codecc","description":"检查圈复杂度等,不含Coverity。","catagories":[{"en_name":"DEFECT","cn_name":"通用"}],"base_checker_set_id":"","init_checkers":true,"official":2,"checker_set_source":"DEFAULT","recommended":2}
{"_id":{"$oid":"60d3357a3ca6b848690db8dc"},"_class":"com.tencent.bk.codecc.defect.model.checkerset.CheckerSetEntity","checker_set_id":"ts_standard","version":8,"checker_set_name":"腾讯代码规范(TS规则集)","code_lang":2048,"checker_set_lang":"TS","scope":1,"creator":"admin","create_time":1591952204406,"last_update_time":1624454522419,"checker_props":[{"tool_name":"ESLINT","checker_key":"@typescript-eslint/adjacent-overload-signatures","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/brace-style","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/class-literal-property-style","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/comma-spacing","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/dot-notation","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/func-call-spacing","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/indent","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/keyword-spacing","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/naming-convention","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/no-array-constructor","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/no-dupe-class-members","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/no-empty-interface","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/no-non-null-asserted-optional-chain","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/no-unused-expressions","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/no-unused-vars","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/prefer-namespace-keyword","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/quotes","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/semi","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/space-before-function-paren","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/triple-slash-reference","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/type-annotation-spacing","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/typedef","props":""},{"tool_name":"ESLINT","checker_key":"@typescript-eslint/unified-signatures","props":""}],"task_usage":0,"enable":1,"project_id":"codecc","description":"根据公司规范持续更新...","catagories":[{"en_name":"FORMAT","cn_name":"规范"}],"base_checker_set_id":"","init_checkers":true,"official":2,"checker_set_source":"RECOMMEND","recommended":2}
{"_id":{"$oid":"5fbc83b48892bf766dc051a4"},"_class":"com.tencent.bk.codecc.defect.model.checkerset.CheckerSetEntity","checker_set_id":"codecc_default_swift","version":4,"checker_set_name":"Swift快速检查","code_lang":1024,"checker_set_lang":"Swift","scope":1,"creator":"admin","create_time":1579081883327,"last_update_time":1579081883327,"checker_props":[{"tool_name":"CCN","checker_key":"CCN_threshold","props":"[{\"displayValue\":\"20\",\"propValue\":\"20\",\"propName\":\"ccn_threshold\"}]"},{"tool_name":"CLOC","checker_key":"CodeLineCount"}],"task_usage":0,"enable":1,"project_id":"codecc","description":"对圈复杂度、重复率、代码行等进行快速检查,无需编译代码。","catagories":[{"en_name":"DEFECT","cn_name":"通用"}],"base_checker_set_id":"","init_checkers":true,"official":2,"checker_set_source":"DEFAULT","recommended":2}
{"_id":{"$oid":"604723078892bf315332779c"},"_class":"com.tencent.bk.codecc.defect.model.checkerset.CheckerSetEntity","checker_set_id":"standard_swift","version":1,"checker_set_name":"腾讯代码规范(Swift)","code_lang":1024,"checker_set_lang":"Swift","scope":1,"creator":"admin","create_time":1614957339967,"last_update_time":1617026945439,"checker_props":[{"tool_name":"SWIFTLINT","checker_key":"file_name"},{"tool_name":"SWIFTLINT","checker_key":"file_name_no_space"},{"tool_name":"SWIFTLINT","checker_key":"line_length","props":"[{\"displayValue\":\"150\",\"propValue\":\"150\",\"propName\":\"warning\"}]"},{"tool_name":"SWIFTLINT","checker_key":"trailing_semicolon"},{"tool_name":"SWIFTLINT","checker_key":"number_separator"},{"tool_name":"SWIFTLINT","checker_key":"trailing_comma"},{"tool_name":"SWIFTLINT","checker_key":"syntactic_sugar"},{"tool_name":"SWIFTLINT","checker_key":"force_unwrapping"},{"tool_name":"SWIFTLINT","checker_key":"implicitly_unwrapped_optional"},{"tool_name":"SWIFTLINT","checker_key":"lower_acl_than_parent"},{"tool_name":"SWIFTLINT","checker_key":"for_where"},{"tool_name":"SWIFTLINT","checker_key":"fallthrough"},{"tool_name":"SWIFTLINT","checker_key":"no_fallthrough_only"},{"tool_name":"SWIFTLINT","checker_key":"compiler_protocol_init"},{"tool_name":"SWIFTLINT","checker_key":"explicit_init"},{"tool_name":"SWIFTLINT","checker_key":"implicit_getter"}],"task_usage":0,"enable":1,"project_id":"codecc-auto-tools-prod","description":"将根据公司规范持续更新…","catagories":[{"en_name":"FORMAT","cn_name":"规范"}],"init_checkers":true,"official":2,"checker_set_source":"RECOMMEND"}
{"_id":{"$oid":"600155ca1e48563afba712d0"},"_class":"com.tencent.bk.codecc.defect.model.checkerset.CheckerSetEntity","checker_set_id":"cloc_scala","version":1,"checker_set_name":"代码行统计(Scala)","code_lang": 32768,"checker_set_lang":"Scala","scope":1,"creator":"admin","create_time":1610700234388,"last_update_time": 1610700234388,"checker_props":[{"tool_name":"CLOC","checker_key":"CodeLineCount"}],"enable":1,"project_id":"codecc","description":"统计代码行、注释行、空白行等信息","catagories":[{"en_name":"FORMAT","cn_name":"规范"}],"base_checker_set_id":"","init_checkers":true,"official":2,"task_usage":0}
{"_id":{"$oid":"604723078892bf315332779c"},"_class":"com.tencent.bk.codecc.defect.model.checkerset.CheckerSetEntity","checker_set_id":"standard_swift","version":1,"checker_set_name":"腾讯代码规范(Swift)","code_lang":1024,"checker_set_lang":"Swift","scope":1,"creator":"admin","create_time":1614957339967,"last_update_time":1617026945439,"checker_props":[{"tool_name":"SWIFTLINT","checker_key":"file_name"},{"tool_name":"SWIFTLINT","checker_key":"file_name_no_space"},{"tool_name":"SWIFTLINT","checker_key":"line_length","props":"[{\"displayValue\":\"150\",\"propValue\":\"150\",\"propName\":\"warning\"}]"},{"tool_name":"SWIFTLINT","checker_key":"trailing_semicolon"},{"tool_name":"SWIFTLINT","checker_key":"number_separator"},{"tool_name":"SWIFTLINT","checker_key":"trailing_comma"},{"tool_name":"SWIFTLINT","checker_key":"syntactic_sugar"},{"tool_name":"SWIFTLINT","checker_key":"force_unwrapping"},{"tool_name":"SWIFTLINT","checker_key":"implicitly_unwrapped_optional"},{"tool_name":"SWIFTLINT","checker_key":"lower_acl_than_parent"},{"tool_name":"SWIFTLINT","checker_key":"for_where"},{"tool_name":"SWIFTLINT","checker_key":"fallthrough"},{"tool_name":"SWIFTLINT","checker_key":"no_fallthrough_only"},{"tool_name":"SWIFTLINT","checker_key":"compiler_protocol_init"},{"tool_name":"SWIFTLINT","checker_key":"explicit_init"},{"tool_name":"SWIFTLINT","checker_key":"implicit_getter"}],"task_usage":0,"enable":1,"project_id":"codecc-auto-tools-prod","description":"将根据公司规范持续更新…","catagories":[{"en_name":"FORMAT","cn_name":"规范"}],"init_checkers":true,"official":2,"checker_set_source":"RECOMMEND"}
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@
{
"version_type" : "P",
"docker_trigger_shell" : "/bin/bash##-c##\"cd /usr/codecc/tool_scan/; python3 ./sdk/src/scan.py --input={input.json} --output={output.json}\"",
"docker_image_url" : "swiftlint_scan",
"docker_image_url" : "bkcodecc/swiftlint_scan",
"docker_image_version" : "latest",
"foreign_docker_image_version" : "latest",
"docker_image_hash" : "sha256:3f91a8111c79f4ec2bc72d5dd387e9b5224818f8350755b2a6898a58802ab4d2",
Expand All @@ -1061,7 +1061,7 @@
{
"version_type" : "T",
"docker_trigger_shell" : "/bin/bash##-c##\"cd /usr/codecc/tool_scan/; python3 ./sdk/src/scan.py --input={input.json} --output={output.json}\"",
"docker_image_url" : "swiftlint_scan",
"docker_image_url" : "bkcodecc/swiftlint_scan",
"docker_image_version" : "v-1615274543129",
"foreign_docker_image_version" : "latest",
"docker_image_hash" : "sha256:3f91a8111c79f4ec2bc72d5dd387e9b5224818f8350755b2a6898a58802ab4d2",
Expand All @@ -1073,7 +1073,7 @@
{
"version_type" : "G",
"docker_trigger_shell" : "/bin/bash##-c##\"cd /usr/codecc/tool_scan/; python3 ./sdk/src/scan.py --input={input.json} --output={output.json}\"",
"docker_image_url" : "swiftlint_scan",
"docker_image_url" : "bkcodecc/swiftlint_scan",
"docker_image_version" : "v-1615274543129",
"foreign_docker_image_version" : "latest",
"docker_image_hash" : "sha256:3f91a8111c79f4ec2bc72d5dd387e9b5224818f8350755b2a6898a58802ab4d2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@
{"_id":{"$oid":"5da7e51f97e61739fc203e55"},"_class":"com.tencent.bk.codecc.defect.model.CheckerPackageEntity","tool_name":"DETEKT","pkg_id":"11","pkg_name":"BEST_PRACTICES","pkg_desc":"最佳实践包"}
{"_id":{"$oid":"5da7e51f97e61739fc203e56"},"_class":"com.tencent.bk.codecc.defect.model.CheckerPackageEntity","tool_name":"DETEKT","pkg_id":"3","pkg_name":"PERFORMANCE","pkg_desc":"性能规则包"}
{"_id":{"$oid":"5da7e51f97e61739fc203e57"},"_class":"com.tencent.bk.codecc.defect.model.CheckerPackageEntity","tool_name":"DETEKT","pkg_id":"9","pkg_name":"LOGICAL","pkg_desc":"逻辑规则包"}
{"_id":{"$oid":"5da7e5b697e61721f05f056b"},"_class":"com.tencent.bk.codecc.defect.model.CheckerPackageEntity","tool_name":"OCCHECK","pkg_id":"0","pkg_name":"DEFAULT","pkg_desc":"默认规则包"}
{"_id":{"$oid":"5da7e5b897e61721f05f056c"},"_class":"com.tencent.bk.codecc.defect.model.CheckerPackageEntity","tool_name":"OCCHECK","pkg_id":"10","pkg_name":"STYLISTIC","pkg_desc":"风格规范包"}
Original file line number Diff line number Diff line change
Expand Up @@ -71,42 +71,6 @@
}


{
"_id":{"$oid":"5f314632f7a4320e60c2304b"},
"_class" : "com.tencent.bk.codecc.defect.model.checkerset.CheckerSetEntity",
"checker_set_id" : "cloc_dart",
"version" : 1,
"checker_set_name" : "代码行统计(dart)",
"code_lang" : 8192,
"checker_set_lang" : "Dart",
"scope" : 1,
"creator" : "admin",
"create_time" : 1597064754583,
"last_update_time" : 1597064754583,
"checker_props" : [
{
"tool_name" : "CLOC",
"checker_key" : "CodeLineCount",
"props" : ""
}
],
"enable" : 1,
"project_id" : "codecc",
"description" : "统计代码行、注释行、空白行等信息",
"catagories" : [
{
"en_name" : "FORMAT",
"cn_name" : "规范"
}
],
"base_checker_set_id" : "",
"init_checkers" : true,
"official" : 2,
"task_usage" : 33,
"checker_set_source" : "RECOMMEND"
}


{
"_id":{"$oid":"5f02ef79f7a4321cc01038e4"},
"_class" : "com.tencent.bk.codecc.defect.model.checkerset.CheckerSetEntity",
Expand Down
Loading

0 comments on commit 2bf7b75

Please sign in to comment.