Commit 68df7337 authored by 王海鹰's avatar 王海鹰

脱敏白名单新加时间字段

parent aa763a65
Pipeline #14433 failed with stages
in 2 minutes and 10 seconds
......@@ -5,7 +5,7 @@ source: "hdfs"
hdfs_src: "hdfs://cdh-2:8020/tmp/datawarehouse4/jzjy/kcbp_biz_log"
# hdfs日志写入地址,非必传,默认写到hdfs-src目录下的output目录下
hdfs_dest: "hdfs://cdh-2:8020/tmp/datawarehouse/jzjy/kcbp_biz_log/output4/"
hdfs_dest: "hdfs://cdh-2:8020/tmp/datawarehouse/jzjy/kcbp_biz_log/output5/"
# 脱敏结果下载到的本地路径
download_path: "/tmp"
......@@ -24,7 +24,7 @@ end_time: 1601348850000
# 不做脱敏的字段白名单
fieldsWhiteList: "messid,fundid,custid,orgid,brhid,secuid,bankcode,market,ordersno,ordergroup,count,poststr,stkcode,bsflag,\
orderamt,price,qty,bankcode,tacode,ofcode,transacc,taacc"
orderamt,price,qty,bankcode,tacode,ofcode,transacc,taacc,indexTime,logchecktime,end_logtime,collecttime,deserializerTime,versioninfo"
# 脱敏用的正则表达式
reg_exp:
......@@ -41,7 +41,7 @@ reg_exp:
# 身份证号码(18位)正则
id18: "[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9Xx])"
# 银行卡号
bank_card: "([1-9]{1})(\d{11}|\d{15}|\d{16}|\d{17}|\d{18})"
bank_card: "([1-9]{1})(\\d{11}|\\d{15}|\\d{16}|\\d{17}|\\d{18})"
# 家庭住址正则
address: "([\u4E00-\u9FA5A-Za-z0-9_]+(省|市|区|县|道|路|街|号|弄|条|室)){2,}"
# ip地址正则
......
  • SonarQube analysis reported 151 issues

    • 🚫 19 critical
    • 83 major
    • 🔽 48 minor
    • 1 info

    Top 30 extra issues

    Note: The following issues were found on lines that were not modified in the commit. Because these issues can't be reported as line comments, they are summarized here:

    1. 🚫 Move constants to a class or enum. 📘
    2. 🚫 Move constants to a class or enum. 📘
    3. 🚫 Move constants to a class or enum. 📘
    4. 🚫 Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation. 📘
    5. 🚫 Change this "try" to a try-with-resources. (sonar.java.source not set. Assuming 7 or greater.) 📘
    6. 🚫 Refactor this code to not throw exceptions in finally blocks. 📘
    7. 🚫 Refactor this code to not throw exceptions in finally blocks. 📘
    8. 🚫 Make "patterns" private or transient. 📘
    9. 🚫 Define a constant instead of duplicating this literal "序列化失败" 15 times. 📘
    10. 🚫 Define a constant instead of duplicating this literal " {\n" 7 times. 📘
    11. 🚫 [Define a constant instead of duplicating this literal " "type": \n" 7 times. 📘
    12. 🚫 Define a constant instead of duplicating this literal " "string",\n" 4 times. 📘
    13. 🚫 Define a constant instead of duplicating this literal " "null"\n" 4 times. 📘
    14. 🚫 [Define a constant instead of duplicating this literal " ]\n" 7 times.](https://git.zorkdata.com/wanghaiying/transactionlogmask/blob/68df7337949626c8858df3625053cc89c21a9ffa/src/main/java/com/zorkdata/datamask/util/avro/LogAvroMacroDef.java#L20) 📘
    15. 🚫 Define a constant instead of duplicating this literal " },\n" 6 times. 📘
    16. 🚫 Define a constant instead of duplicating this literal " "null",\n" 3 times. 📘
    17. 🚫 Define a constant instead of duplicating this literal " {\n" 3 times. 📘
    18. 🚫 Define a constant instead of duplicating this literal " "type": "map",\n" 3 times. 📘
    19. 🚫 Define a constant instead of duplicating this literal " }\n" 3 times. 📘
    20. Define and throw a dedicated exception instead of using a generic one. 📘
    21. 【HDFSLogQueryParam】不符合UpperCamelCase命名风格 📘
    22. Remove this unused "source" private field. 📘
    23. Remove this unused "hdfsSrc" private field. 📘
    24. Remove this unused "hdfsDest" private field. 📘
    25. Remove this unused "core" private field. 📘
    26. Remove this unused "date" private field. 📘
    27. Remove this unused "startTime" private field. 📘
    28. Remove this unused "endTime" private field. 📘
    29. Remove this unused "servers" private field. 📘
    30. Remove this unused "zookeeper" private field. 📘
    • ... 121 more
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment