Skip to content

CRITICAL: standardizer_declarations_core.f90 exceeds 1000-line hard limit (1941 lines) #1917

@krystophny

Description

@krystophny

Summary

src/standardizers/standardizer_declarations_core.f90 violates CLAUDE.md hard limit (1941 lines > 1000 line maximum)

Details

  • Current size: 1941 lines
  • Hard limit: 1000 lines
  • Soft limit: 500 lines
  • Overage: 941 lines (94% over hard limit)

PR #1916 increased this file from 1733 → 1941 lines (+208 lines), worsening pre-existing violation.

CLAUDE.md Rule

Modules <500 lines (hard limit 1000)

Proposed Solution

Refactor standardizer_declarations_core.f90 into multiple modules:

  • standardizer_declarations_insertion.f90 - declaration insertion logic
  • standardizer_declarations_parsing.f90 - type string parsing
  • standardizer_declarations_collection.f90 - variable collection
  • standardizer_declarations_array.f90 - array dimension handling

Priority

BLOCKING - Prevents approval of PRs that worsen this violation

Metadata

Metadata

Assignees

No one assigned

    Labels

    polishCode quality and style improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions