Skip to content

Write a formatter utility #4310

Open
Open
@FichteFoll

Description

@FichteFoll

The formatter should:

  • Unify labels and translate them to lower case (Clean up labels a bit and see if contributions here are welcome. #4277)
  • Unify repository urls and remove trailing slahes for example
  • Remove redundant keys that would be equivalent to what PC finds from details, notably readme, author, base
  • Remove redundant keys that specify the general default value, notably platforms (also "platforms": ["windows", "linux", "osx"])
  • Unify whitespace usage. I'm thinking of what example-repository.json uses, which is:
    • Block style by default, that means a new line for each value
    • Inline style (in same line) for labels, author and platforms keys
    • The same indentation/whitespace style (I don't think I need to explain this)
    • No trailing whitespaces
    • Newline at EOF
  • -(Optional) Add a name key for github repos if none present? We could make this a soft requirement in the process.
  • Transform all platforms values into a list?

More?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions