test: check the validator's rules against the reference table
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 48/100
Piste de recherche
Compare the Dependency rules table in references/ffca/project_structure.md with the rules map in scripts/validate_layers.dart, noting the known shared mismatch. Study the existing tests in scripts/test/validate_layers_test.dart and the sync_reference.dart --check drift check for the pattern to follow. Done when a test parses the table, fails on drift, and handles the shared row either by waiting for VGVentures/very_good_engineering#292 or by documenting it as a known difference.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Description
The Dependency rules section of references/ffca/project_structure.md says its table "is the whole rule, and it is the version a validation script implements". Nothing checks that the rules map at the top of scripts/validate_layers.dart actually matches that table, so the two can drift apart without anyone noticing.
They already disagree: the table says shared may depend on "external packages only", while the validator allows shared → shared. We believe the reference should change, and that is tracked in Very Good Engineering: VGVentures/very_good_engineering#292.
Requirements
- A test in
scripts/test/validate_layers_test.dartparses the Dependency rules table fromreferences/ffca/project_structure.mdand checks it against the validator'srulesmap. - When the table changes upstream and is re-synced, the test fails until the validator is updated.
- The test lands after the reference is re-synced with VGVentures/very_good_engineering#293, which allows
shared → sharedand is merged, so no known-difference exception is needed. - All CI/CD checks are passing.
- There is no drop in the test coverage percentage.
Additional Context
This is the drift check sync_reference.dart --check already does for the reference mirror, applied to the validator itself.
Status (2026-10-20): VGVentures/very_good_engineering#293 is merged, but the VGV Engineering site has not redeployed yet. Once the site deploys, run dart run scripts/sync_reference.dart (which also brings in VGVentures/very_good_engineering#297's lib/src/ and data barrel changes), then add this test.
- Langage dominant
- Dart
- Étoiles
- 7
- Forks
- 2
- Merge moyen
- 2 j 8 h
- PR mergées (30 j)
- 9
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de VeryGoodOpenSource/vgv-ffca-plugin
-
feature
Difficulté 4/5 3-5 jours Accessibilité débutants 54/100
VeryGoodOpenSource/vgv-ffca-plugin#39 ·
Les mainteneurs répondent en général sous 1 jour
-
feature
Difficulté 4/5 3-5 jours Accessibilité débutants 22/100
VeryGoodOpenSource/vgv-ffca-plugin#28 ·
Les mainteneurs répondent en général sous 1 jour
-
feature
Difficulté 4/5 3-5 jours Accessibilité débutants 38/100
VeryGoodOpenSource/vgv-ffca-plugin#26 ·
Les mainteneurs répondent en général sous 1 jour
-
external dependency feature
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
VeryGoodOpenSource/vgv-ffca-plugin#6 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de VeryGoodOpenSource/vgv-ffca-plugin
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Vinillian/book_tracker#208 ·
Les mainteneurs répondent en général sous 1 jour
-
Delete annoying log messagesOuverteCodeheat
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
fossasia/badgemagic-app#2048 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
-
Difficulté 1/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 2 jours
-
CI: a superseded Quality run keeps its test shards running and the new head waits behind themOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
fdittgen-png/deskilo#3753 ·
Les mainteneurs répondent en général sous 1 jour