-
-
Notifications
You must be signed in to change notification settings - Fork 105
Nettoyage du code #689
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
Nettoyage du code #689
Conversation
build have repaired on the main repo
pour App.tsx, pas le choix, ajoute |
…ve-gesture-handler
une fois fait, j'approuverai, j'viens de recheck, tout est bon pour moi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est bon pour moi !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request cleans up the codebase by removing unused variables and unreachable code while enforcing consistent coding standards. Key changes include the removal of redundant break statements and unused state variables, conversion from var to let for better scoping, and updates to ESLint configuration and custom rules to enforce code quality.
Reviewed Changes
Copilot reviewed 285 out of 285 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/components/Global/FileIcon.tsx | Removed unreachable break statements after return calls |
src/components/FirstInstallation/PapillonShineBubble.tsx | Removed unused state variable (sHeight) and its setters |
src/components/Addons/AddonsWebview.tsx | Unified log handling into a single conditional for various log types |
src/background/Notifications.ts | Simplified boolean assignments by removing unnecessary ternaries |
src/background/BackgroundTasks.ts | Refactored event handling to use log function and proper scoping |
src/addons/addons.ts | Replaced var with let for improved scoping |
plugins/notifee-mod.js | Minor code style adjustments for arrow function parameters |
eslint_rules/* | Added custom ESLint rules for detecting redundant logical and ternary expressions |
eslint.config.js | Updated ESLint configuration to include the new custom rules |
App.tsx | Improved code clarity with formatting and duplicate import handling |
Faudrait que je fasse par plusieurs PR au lieu de tout faire en une 🤔 |
Ouais, ça me rappelle les pr sur Expo 52, un commit => conflit 😂😂
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Faut que j'y réfléchisse, je résoud les conflits régulièrement, mais bon, ça ralenti les reviews
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Par contre le résumé de Copilot est trop juste.
Si tu veux une review plus rapide et éviter de te péter le crâne pour résoudre les conflits, sépare cette pr en plusieurs
|
🚀 Nouvelle Pull Request
Proposez vos modifications pour améliorer Papillon
Checklist d'avant pull request
Veuillez cocher toutes les cases applicables en remplaçant [ ] par [x].
TODO
(aka des annotations pour du code manquant) dans vos modificationsChangelogs proposés
var
parlet
(J'aurais peut être dû utiliser desconst
à quelques endroits)break
après desreturn
void
,return
ouawait
sur des fonctions non async.tsconfig.json
pour spécifier que c'est bien du code react native.Informations supplémentaires
D'autres PR de ce type sont à prévoir prochainement, sauf si elles ne sont pas considérées comme intéressantes.
Ce genre de PR peut avoir l'air violente car elle fait surtout du retrait mais elle permet de simplifier une bonne partie du code.