Skip to content

Commit

Permalink
Merge pull request #4747 from ddlin0719/issue_4572
Browse files Browse the repository at this point in the history
feat: CodeCC For 1.5 #4572
  • Loading branch information
irwinsun authored Jul 21, 2021
2 parents 5376344 + 4ad63c3 commit b2e7b40
Show file tree
Hide file tree
Showing 7 changed files with 1,220 additions and 3,005 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 All @@ -39,7 +39,7 @@
{"_id":{"$oid":"5ef466e4072319f425bac1a5"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"GIT","param_value":"2.*","param_type":"OPENSOURCE_VERSION","create_date":1556610717,"created_by":"systen_admin","updated_date":1556610717,"updated_by":"systen_admin"}
{"_id":{"$oid":"5ef7320a072319f425bdce42"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"openSourceCheckerSetType","param_value":"FULL","param_type":"FILTER_CONFIG","param_extend1":"1","create_date":1556610717,"created_by":"systen_admin","updated_date":1556610717,"updated_by":"systen_admin"}
{"_id":{"$oid":"5eff2240072319f425ccba5f"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"Trigger","param_value":"[\"codecc\", \"show-code\"]","param_type":"OPENSOURCE_ROUTE","create_date":1556610717,"created_by":"systen_admin","updated_date":1556610717,"updated_by":"systen_admin"}
{"_id":{"$oid":"5cc7fe9dc87521036868c149"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"TOOL_ORDER","param_value":"CLANGWARNING,SPOTBUGS,PHPCS,BKCHECK-CPP,KTLINT,SWIFTLINT,PYLINT,CSSLINT,STYLECOP,DETEKT,CPPLINT,CHECKSTYLE,BKCHECK-OC,GOML,ESLINT,CCN,DUPC,CLOC","param_type":"TOOL_ORDER","create_date":1556610717,"created_by":"systen_admin","updated_date":1556610717,"updated_by":"systen_admin"}
{"_id":{"$oid":"5cc7fe9dc87521036868c149"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"TOOL_ORDER","param_value":"CLANGWARNING,SPOTBUGS,PHPCS,BKCHECK-CPP,KTLINT,SWIFTLINT,PYLINT,STYLECOP,DETEKT,CPPLINT,CHECKSTYLE,BKCHECK-OC,GOML,ESLINT,CCN,DUPC,CLOC","param_type":"TOOL_ORDER","create_date":1556610717,"created_by":"systen_admin","updated_date":1556610717,"updated_by":"systen_admin"}
{"_id":{"$oid":"5cc7fe9dc87521036868c14b"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"4","param_name":"JAVA","param_type":"LANG","param_status":"P","param_extend1":"JAVA","param_extend2":"[\"JAVA\",\"Java\",\"java\"]","param_extend3":"1","param_extend4":"JAVA","param_extend5":"true","lang_full_key":"JAVA","lang_type":"compile","open_source_checker_sets":[{"checker_set_id":"standard_java","tool_list":["CHECKSTYLE"],"checker_set_type":"FULL"},{"checker_set_id":"codecc_default_ccn_java","tool_list":["CCN"]},{"checker_set_id":"codecc_default_dupc_java","tool_list":["DUPC"]},{"checker_set_id":"standard_java_stockproj","tool_list":["CHECKSTYLE"],"checker_set_type":"SIMPLIFIED"}],"create_date":1556610717,"created_by":"systen_admin","updated_date":1556610717,"updated_by":"systen_admin"}
{"_id":{"$oid":"5cc7fe9dc87521036868c14d"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"64","param_name":"JS","param_type":"LANG","param_status":"P","param_extend1":"JavaScript","param_extend2":"[\"JS\",\"JavaScript\",\"javascript\",\"JAVASCRIPT\"]","param_extend3":"3","param_extend4":"JS","param_extend5":"false","lang_full_key":"JS","lang_type":"uncompile","open_source_checker_sets":[{"checker_set_id":"standard_js","tool_list":["ESLINT"],"checker_set_type":"FULL"},{"checker_set_id":"codecc_default_ccn_js","tool_list":["CCN"]},{"checker_set_id":"codecc_default_dupc_js","tool_list":["DUPC"]},{"checker_set_id":"standard_js_stockproj","tool_list":["ESLINT"],"checker_set_type":"SIMPLIFIED"},{"checker_set_id":"pecker_js","tool_list":["WOODPECKER_SENSITIVE","HORUSPY"]}],"create_date":1556610717,"created_by":"systen_admin","updated_date":1556610717,"updated_by":"systen_admin"}
{"_id":{"$oid":"5cc7fe9dc87521036868c151"},"_class":"com.tencent.bk.codecc.task.model.BaseDataEntity","param_code":"128","param_name":"Ruby","param_type":"LANG","param_status":"P","param_extend1":"Ruby","param_extend2":"[\"RUBY\",\"Ruby\",\"ruby\"]","param_extend3":"7","param_extend4":"RUBY","param_extend5":"false","lang_full_key":"RUBY","lang_type":"uncompile","open_source_checker_sets":[{"checker_set_id":"codecc_default_ccn_ruby","tool_list":["CCN"]},{"checker_set_id":"pecker_ruby","tool_list":["WOODPECKER_SENSITIVE","HORUSPY"]}],"create_date":1556610717,"created_by":"systen_admin","updated_date":1556610717,"updated_by":"systen_admin"}
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"}
Loading

0 comments on commit b2e7b40

Please sign in to comment.