<dev>
1. 修改身份证比银行卡号先匹配 2. 新增持仓正则 3. 增加是否脱敏维度功能 4. 提取hdfs用户下载名称
Showing
This diff is collapsed.
| ... | ... | @@ -52,6 +52,11 @@ public class RegularExpressions implements Serializable { |
| */ | ||
| private String macRegExp; | ||
| /** | ||
| * 持仓信息正则 | ||
| */ | ||
| private String positionExp; | ||
|
||
| public RegularExpressions(){ | ||
| } | ||
| ... | ... | @@ -67,5 +72,6 @@ public class RegularExpressions implements Serializable { |
| this.addressRegExp = MapUtils.getString(map, RegExpConstants.ADDRESS_REG_EXP); | ||
| this.ipRegExp = MapUtils.getString(map, RegExpConstants.IP_REG_EXP); | ||
| this.macRegExp = MapUtils.getString(map, RegExpConstants.MAC_REG_EXP); | ||
| this.positionExp = MapUtils.getString(map, RegExpConstants.POSITION_EXP); | ||
| } | ||
| } | ||
-
SonarQube analysis reported 113 issues
-
🚫 24 critical -
⚠ 61 major -
🔽 27 minor -
ℹ 1 info
Watch the comments in this conversation to review them.
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:
-
🚫 Add a default case to this switch.📘 -
🚫 switch中每个case需要通过break/return等来终止📘 -
🚫 switch块缺少default语句📘 -
🚫 Define a constant instead of duplicating this literal " {\n" 11 times.📘 -
🚫 [Define a constant instead of duplicating this literal " "type": \n" 11 times.📘 -
🚫 Define a constant instead of duplicating this literal " "string",\n" 6 times.📘 -
🚫 Define a constant instead of duplicating this literal " "null"\n" 6 times.📘 -
🚫 [Define a constant instead of duplicating this literal " ]\n" 11 times.](https://git.zorkdata.com/liaomingtao/transaction_log_desensitization/blob/487ccca8343d8f795e79208b3aab4209d59a361c/src/main/java/com/zorkdata/desensitization/avro/AvroSchemaDef.java#L23)📘 -
🚫 Define a constant instead of duplicating this literal " },\n" 9 times.📘 -
🚫 Define a constant instead of duplicating this literal " "null",\n" 5 times.📘 -
🚫 Define a constant instead of duplicating this literal " {\n" 5 times.📘 -
🚫 Define a constant instead of duplicating this literal " "type": "map",\n" 5 times.📘 -
🚫 Define a constant instead of duplicating this literal " "values": "string"\n" 3 times.📘 -
🚫 Define a constant instead of duplicating this literal " }\n" 5 times.📘 -
🚫 Define a constant instead of duplicating this literal "序列化失败" 13 times.📘 -
🚫 Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.📘 -
🚫 Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.📘 -
🚫 Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.📘 -
🚫 常量【dataFormats】命名应全部大写并以下划线分隔📘 -
🚫 Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.📘 -
🚫 Change this "try" to a try-with-resources. (sonar.java.source not set. Assuming 7 or greater.)📘 -
🚫 Refactor this code to not throw exceptions in finally blocks.📘 -
🚫 Refactor this code to not throw exceptions in finally blocks.📘 -
🚫 Change this "try" to a try-with-resources. (sonar.java.source not set. Assuming 7 or greater.)📘 -
⚠ This block of commented-out lines of code should be removed.📘 -
⚠ 及时清理不再使用的代码段或配置信息。📘 -
⚠ Replace this use of System.out or System.err by a logger.📘 -
⚠ Replace this use of System.out or System.err by a logger.📘 -
⚠ String contains no format specifiers.📘 -
⚠ Replace this use of System.out or System.err by a logger.📘
- ... 79 more
-