Documentation
¶
Overview ¶
blockstat: if/for/switch 블록 내부 라인 수 통계 depth-1 제어 구조 블록의 내부 body 라인 수를 측정
Usage: go run scripts/blockstat.go [dir]
blockstat_by_kind: if/for/range/switch 종류별 body 라인 수 분포
Usage: go run scripts/blockstat_by_kind.go [dir]
bodystat: 함수별 순수 body 라인 수 통계 단일 if 블록, for {} 블록의 라인을 제외한 순수 시퀀스 라인 수를 계산
Usage: go run scripts/bodystat.go [dir]
casestat: switch/select의 case 절 내부 라인 수 통계
Usage: go run scripts/casestat.go [dir]
patternstat: 함수 depth-1 제어문 패턴 분석 함수 body의 루트 레벨에서 if/for/switch 개수를 세어 패턴 분류
Usage: go run scripts/patternstat.go [dir]
structural_metrics: Phase011 구조 건전성 지표 측정. internal/gen 과 pkg/generate 를 비교해 리포트 생성.
지표:
- 함수별 매개변수 수 분포 (평균, 중앙값, 최대, 8+ 함수 수)
- 파일 수, 평균/중앙값 파일 줄 수
- *WithDomains 중복 함수 쌍
- Decide* 순수 판정 함수 (Phase010 대체 지표. Toulmin 미채택.)
- toulmin.NewGraph / g.Rule / g.Counter / g.Except 호출 수 (fullend 전체)
Usage: go run scripts/structural_metrics.go
Source Files
¶
Click to show internal directories.
Click to hide internal directories.