Skip to content

Code style: meaningful strings should be constants, but aren't #2724

@bencomp

Description

@bencomp

As @pdurbin notes in #2720 (comment), the file extension ".tab" is hardcoded in many places (and therefore changing it is non-trivial).
There are many more important strings in the Dataverse code that suffer from this. For example, URI paths and query parameters, special metadata block names ("citation") with property names ("title") and many more.

Special strings should be defined as public constants and they should be used throughout the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions