Skip to content

Commit e1c757d

Browse files
committed
정리: 매개변수 이름 규칙의 신규 위반 3 건을 닫는다
lint 체인이 cycle 뒤에서 막고 있던 자리다. 셋 다 직전 세션 커밋(d638120, eaf1ab5)에서 들어왔고 baseline 갱신 없이 남아 있었다. disclosureManifest._narrative 의 section 은 DartSource('narrative', ...) 로 흘러가는 topic 식별자가 맞다. 규칙이 section 을 topic 의 alias 로 명시하므로 이름을 통일한다(파일 내부 전용, 호출부 11). parquetContent 의 count/size 는 결과 개수 한도가 아니다. RLE 해독할 값의 개수와 정확히 읽어야 할 byte 수라 limit 으로 바꾸면 상한이라는 거짓 의미가 생긴다. 규칙이 같은 사정으로 simulate 를 빼둔 scopeExclude 에 사유와 함께 등재한다. 신규 위반 0, 전체 81 -> 78. scan 446 passed, catalog import 88 concepts.
1 parent 3519c78 commit e1c757d

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎src/dartlab/core/extractionCatalog/disclosureManifest.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _narrative(
3636
conceptId: str,
3737
label: str,
3838
chapter: str,
39-
section: str,
39+
topic: str,
4040
edgarItem: str | None,
4141
keyword: str,
4242
*,
@@ -49,7 +49,7 @@ def _narrative(
4949
conceptId=conceptId,
5050
category="narrative",
5151
label=label,
52-
dart=DartSource("narrative", section),
52+
dart=DartSource("narrative", topic),
5353
edgar=edgar,
5454
axisType="text",
5555
valueType=valueType,

‎src/dartlab/core/naming/aliases.json‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@
6969
"scope": [
7070
"arg"
7171
],
72-
"note": "결과 개수 한도. None 이면 전수. 두 곳은 예외다. simulate 는 `topK` 가 매개변수가 아니라 도메인 어휘라서 출력 스키마 키(`topK`)와 컬럼(`topKProb`), 함수명(`hardenedTopK`)이 모두 그 단어로 서 있다. facade `search` 의 `topK` 는 이미 `limit` 이 정본이고 문서에 호환 alias 로 적힌 뒤 곧바로 `limit` 으로 강제 변환된다. 둘 다 이름을 바꾸면 계약이 깨지거나 호환 장치 자체가 사라진다.",
72+
"note": "결과 개수 한도. None 이면 전수. 두 곳은 예외다. simulate 는 `topK` 가 매개변수가 아니라 도메인 어휘라서 출력 스키마 키(`topK`)와 컬럼(`topKProb`), 함수명(`hardenedTopK`)이 모두 그 단어로 서 있다. facade `search` 의 `topK` 는 이미 `limit` 이 정본이고 문서에 호환 alias 로 적힌 뒤 곧바로 `limit` 으로 강제 변환된다. 둘 다 이름을 바꾸면 계약이 깨지거나 호환 장치 자체가 사라진다. parquetContent 는 세 번째 예외다. RLE/bit-packed 해독기의 `count` 는 해독할 값의 개수이고 `size` 는 정확히 읽어야 할 byte 수라, 둘 다 결과 개수 한도가 아니다. `limit` 으로 바꾸면 상한이라는 거짓 의미가 생긴다.",
7373
"scopeExclude": [
74-
"src/dartlab/simulate/",
75-
"src/dartlab/__init__.py"
74+
"src/dartlab/__init__.py",
75+
"src/dartlab/scan/builders/kr/parquetContent.py",
76+
"src/dartlab/simulate/"
7677
]
7778
},
7879
"verboseFlag": {

0 commit comments

Comments
 (0)