Skip to content

Conversation

@massongit
Copy link
Member

@massongit massongit commented Dec 26, 2025

ParseLocationWithClient関数の循環的複雑度削減のため関数分割:

  • parseCoordinates: 座標文字列の直接解析
  • geocodePlace: ジオコーディングAPI呼び出し
  • parseGeocodeResponse: ジオコーディングレスポンス解析

HTTPリクエスト処理の重複コード削減:

  • executeAndReadResponse関数を新規追加
  • geocodePlaceとmakeHTTPRequestで共通利用
  • jscpdエラーを解消(重複率0.37% → 0%)

🤖 Generated with Claude Code

@dev-hato-app dev-hato-app bot added this to task list Dec 26, 2025
@github-project-automation github-project-automation bot moved this to In Progress in task list Dec 26, 2025
@massongit massongit changed the base branch from main to update_super_linter_3 December 26, 2025 11:09
@massongit massongit marked this pull request as ready for review December 26, 2025 11:12
@massongit massongit requested a review from Goryudyuma December 26, 2025 11:12
Goryudyuma
Goryudyuma previously approved these changes Dec 26, 2025
Base automatically changed from update_super_linter_3 to main December 26, 2025 11:22
@massongit massongit dismissed Goryudyuma’s stale review December 26, 2025 11:22

The base branch was changed.

@massongit massongit requested a review from Goryudyuma December 26, 2025 11:25
massongit and others added 3 commits December 30, 2025 09:52
ParseLocationWithClient関数の循環的複雑度削減のため関数分割:
- parseCoordinates: 座標文字列の直接解析
- geocodePlace: ジオコーディングAPI呼び出し
- parseGeocodeResponse: ジオコーディングレスポンス解析

HTTPリクエスト処理の重複コード削減:
- executeAndReadResponse関数を新規追加
- geocodePlaceとmakeHTTPRequestで共通利用
- jscpdエラーを解消(重複率0.37% → 0%)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
ParseLocation関数とGenerateFileName関数を非公開メソッドエリアから
公開メソッドエリアに移動し、ファイル構成を整理
geocodePlace関数を、それが呼び出すヘルパー関数
(executeAndReadResponse、parseGeocodeResponse)の後に移動し、
関数の依存関係を明確化
@massongit massongit changed the title lib/ameshのリファクタリングとlintエラー修正 lib/ameshのリファクタリング: 循環的複雑度とコード重複の削減 Dec 30, 2025
@massongit massongit requested review from Goryudyuma and removed request for Goryudyuma January 9, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants