Skip to content

Commit

Permalink
Merge pull request #506 from 0RAJA/feat_code_quality
Browse files Browse the repository at this point in the history
feat: 处理代码质量问题 --story=121538668
  • Loading branch information
0RAJA authored Jan 6, 2025
2 parents b296784 + 798353c commit 80136e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .code.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
source:
# 测试代码(扫描时排除)
test_source:
filepath_regex:
filepath_regex: [".*/backend/tests/.*"]
# 工具或框架自动生成的且在代码库中的代码(扫描时排除)
auto_generate_source:
filepath_regex: [".*/migrations/.*"]
filepath_regex: [".*/migrations/.*", ".*/backend/.*pdm.lock"]
# 直接以源码形式存在的第三方代码(扫描时排除)
third_party_source:
filepath_regex: [".*/backend/templates/*", ".*/backend/static/.*"]
2 changes: 1 addition & 1 deletion src/backend/services/web/risk/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ def is_skip(self, member: str) -> bool:
return False

def __init__(self, risk: Risk):
super().__init__(operator=risk.operator[0] if len(risk.operator) else "")
super().__init__(operator=risk.operator[0] if risk.operator else "")

0 comments on commit 80136e6

Please sign in to comment.