Skip to content

break away bigfix pre-commits to their own repo #23

Description

@jgstew

Break away the BigFix pre-commit hooks to their own dedicated repo.

There are currently 2 BigFix pre-commit hooks in this repo and I'd like to add more:

The plan is to grow this into a hook dedicated to ActionScript and another dedicated to Relevance. That's easier and more sensible in a standalone BigFix-focused repo than inside this general-purpose hooks collection.

Context

This issue is the landing spot for the content-level validation backlog that was closed out of validate_bes_xml (which is staying deliberately XSD-only — the schema treats ActionScript/Relevance bodies as opaque strings, so content checks don't belong there):

Plan

  1. Create a new repo (something like pre-commit-bigfix) with its own .pre-commit-hooks.yaml, moving validate_bes.py and bigfix_bes_check_conventions.py over with their tests.
  2. Keep the hook ids stable (validate-bes, check-bes-conventions) so consumers only have to change the repo: URL in their .pre-commit-config.yaml.
  3. Deprecate the BigFix hooks here: leave them working for a release or two with a deprecation note in the README pointing at the new repo, then remove.
  4. New ActionScript hook work happens in the new repo (schclass-driven per-line verb validation, </ActionScript> whitespace auto-fix, http→https escalation for no-hash prefetch/downloads, scanning Description CDATA for http://).
  5. New Relevance hook work happens in the new repo (thin glue over EvaluateRelevance.py — see comment below).

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