Skip to content

Comments

Refactor: code quality fix#18

Merged
yaito3014 merged 6 commits intomainfrom
claude/code-quality-fixes-bFG43
Feb 18, 2026
Merged

Refactor: code quality fix#18
yaito3014 merged 6 commits intomainfrom
claude/code-quality-fixes-bFG43

Conversation

@yaito3014
Copy link
Member

No description provided.

Replace Map<string, Row> with Map<string, Map<string, Row>> so the
cell lookup uses a (rowKey, column) pair instead of serializing both
parts into a single JSON string. This eliminates the double
JSON.stringify and makes the key structure explicit.

https://claude.ai/code/session_011phn9pZy35XcjPTkM7eRLb
- Replace non-null assertions on env vars with a requireEnv() helper
  that throws descriptive errors on missing variables
- Validate regex named groups (runId/jobId) before destructuring
- Make post_comment async and await it at both call sites
- Extract duplicated row key generation into generateRowKey() helper
- Replace IIFEs for compileResult and stepId with plain control flow
  (stepId now uses Array.findIndex instead of manual while loop)
- Change ROW_HEADER_FIELDS type from any[] to string[]

https://claude.ai/code/session_011phn9pZy35XcjPTkM7eRLb
Introduce a CompositeKeyMap<V> class that encapsulates JSON.stringify
behind a typed get/set API with readonly string[] keys. This flattens
the previous Map<string, Map<string, Row>> into a single map keyed by
[...rowFieldValues, column], removing the generateRowKey helper and
the manual nested-map bookkeeping in generateTable.

https://claude.ai/code/session_011phn9pZy35XcjPTkM7eRLb
Drop the accumulator parameter (a C++ value-semantics pattern) and let
each recursive call return its own array, spread into the parent. Also
inlines the two-pass dir collection into a single loop.

https://claude.ai/code/session_011phn9pZy35XcjPTkM7eRLb
Makes the required fields explicit while keeping the index signature
for dynamic regex group fields.

https://claude.ai/code/session_011phn9pZy35XcjPTkM7eRLb
- Remove unreachable .length === 0 checks after null checks on
  String.match() results (always returns null or non-empty array)
- Fix compareDate using == (reference equality) on Date objects;
  use .getTime() subtraction instead
- Use === instead of == for string comparison
- Change rows to const (never reassigned, only mutated)

https://claude.ai/code/session_011phn9pZy35XcjPTkM7eRLb
@yaito3014 yaito3014 temporarily deployed to CppWarningNotifier February 18, 2026 05:04 — with GitHub Actions Inactive
@cppwarningnotifier
Copy link

@yaito3014 yaito3014 merged commit 1e9693a into main Feb 18, 2026
13 checks passed
@yaito3014 yaito3014 deleted the claude/code-quality-fixes-bFG43 branch February 18, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants