Skip to content

[Refactor]: Centralize hardcoded data-type name strings into a package-level object #1438

Description

@Eshaan-byte

Problem

Data-type name strings ("landings", "index", "age_comp", "length_comp") are hardcoded inline in multiple places, e.g., distribution_formulas.R:33 has a FIXME asking for this exact change. #1247 standardised the naming but the centralisation was never done.

If a new data type is added or a name changes, every call site has to be found and updated manually.

Proposal

Define a single authoritative vector (e.g., fims_data_types) as internal package data or a package-level constant, and replace all inline occurrences with references to it.

Related issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions