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
- 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.
- 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.
- 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.
- 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://).
- New Relevance hook work happens in the new repo (thin glue over
EvaluateRelevance.py — see comment below).
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:
validate_bes_xml)check-bes-conventionshook with the W2xx content/convention checks (prefetch line shape W206, prefetch https W207,</ActionScript>whitespace W205/W208, dynamic download W211, etc.)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):ActionScript.schclass/ExpandedActionScript.schclassgrammarEvaluateRelevance.py)httpinstead ofhttpsvalidate_bes_xml#1 — http vs https warnings (partially shipped as W207; escalation + broader scanning remain)Plan
pre-commit-bigfix) with its own.pre-commit-hooks.yaml, movingvalidate_bes.pyandbigfix_bes_check_conventions.pyover with their tests.validate-bes,check-bes-conventions) so consumers only have to change therepo:URL in their.pre-commit-config.yaml.</ActionScript>whitespace auto-fix, http→https escalation for no-hash prefetch/downloads, scanning Description CDATA forhttp://).EvaluateRelevance.py— see comment below).