Skip to content

Explore options to prevent incorrect URLs in configuration files #72

Open
@coderabbitai

Description

@coderabbitai

This issue tracks the exploration of three options to prevent incorrect URLs from slipping into configuration files like setup.cfg:

  1. Static analysis or linting to check for valid URLs.
  2. CI validation to verify the correctness of URLs.
  3. Centralized configuration using the remote URL from Git's fetch configuration.

Considerations:

  • Define the valid URL as the remote URL from the git fetch configuration.
  • Explore the use of Git attributes (e.g., $ID$) to reference the correct URL in configuration files.
  • Investigate the use of a Git hook to replace tokens in configuration files with the correct URL.
  • Check the compatibility of non-HTTP schemas in setup.cfg and other configuration files.

Related PR: #71
Related comment: #71 (comment)

Metadata

Metadata

Labels

LinterAny linter tool or setting file enhancementsenhancement

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions