Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Ajout d'une règle forcant l'ajout d'un commentaire sur les colonnes. #25

Merged

Conversation

VincentHardouin
Copy link
Member

@VincentHardouin VincentHardouin commented Jul 16, 2024

🦄 Problème

Dans le but de faciliter la compréhension des nos modèles de données, il est préférable d'ajouter une description à nos colonnes. Knex permet de le faire grâce à la fonction comment(). Afin d'éviter les oublis, nous avons décider d'ajouter une règle de lint qui empêche l'ajout ou la modification d'une colonne sans ajouter de commentaire.

🤖 Proposition

Ajouter une règle de lint forçant l'ajout d'un commentaire.

🌈 Remarques

Il faudra désactiver la règle sur les anciennes migration (npx suppress-eslint-errors@2.0.4 . --rules=@1024pix/no-column-migration-without-comment)

💯 Pour tester

Vérifier que les test passent (la règle a été testée sur le code du mono repo).

@VincentHardouin VincentHardouin force-pushed the add-no-column-migration-without-comment branch 3 times, most recently from bd02646 to bc5cc28 Compare July 16, 2024 14:13
@MathieuGilet MathieuGilet marked this pull request as ready for review July 16, 2024 14:31
@yannbertrand
Copy link
Member

je suis ci

Copy link

@bpetetot bpetetot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Co-authored-by: Mathieu Gilet <mathieu.gilet@pix.fr>
@pix-service-auto-merge pix-service-auto-merge force-pushed the add-no-column-migration-without-comment branch from bc5cc28 to 06f501a Compare July 16, 2024 15:46
@pix-service-auto-merge pix-service-auto-merge merged commit 9dada92 into main Jul 16, 2024
2 checks passed
pix-service-auto-merge pushed a commit that referenced this pull request Jul 16, 2024
# [1.3.0](v1.2.2...v1.3.0) (2024-07-16)

### 🚀 Amélioration

- [#25](#25) Ajout d'une règle forcant l'ajout d'un commentaire sur les colonnes.
@pix-service-auto-merge
Copy link
Contributor

🎉 This issue has been resolved in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants