Comments (8)
The pre commit check fails a commit if one check fails. But hooks, like a CICD pipeline, should never introduce code changes.
Instead when you make a commit, the pre commit hook should be triggered, it will run the checks (formatter, analyzer) and tell you what's wrong.
from collaction_app.
If it's possible to show the output of these commands that would be a nice, since it would be kind of required to fix what stopped the commit from going through.
I also think we should use pre-push hooks instead of pre-commit hooks, since formatting and analyzing the code could take a considerable amount of time (many seconds).
We really only need to ensure that the code is "OK" when it is being pushed. Individual commits don't have to be checked in my opinion and we don't want to discourage frequent commits.
from collaction_app.
Yes, I think there is no such thing as Git without Bourne (Again) Shell aka (ba)sh
from collaction_app.
May replace https://github.com/CollActionteam/collaction_app/blob/development/cl.sh
from collaction_app.
Does the --dry-run
flag work now as it does not come up as a flag on running flutter format --help
?
If the intention is to not fix the code and only send the exit code then we can use -o none
flag as this does the intended thing.
from collaction_app.
Also, we can just run flutter format --set-exit-if-changed .
if we need to automatically fix any style errors.
from collaction_app.
Okay so do we need to show the files that need to be formatted in the output or it should just return with the exit code?
from collaction_app.
(should work with both bash and cmd)
@rubenhorn I think Git for Windows installs Git bash by default so will there be a need to create cmd script?
from collaction_app.
Related Issues (20)
- [BUG]: Gallery Selector shown after selecting a profile
- [SUGGESTION]: Integrate melos to simplify task execution HOT 5
- [UnitTest]: Presentation Layer HOT 9
- [CICD]: Improve CI Script w/ caching
- [FEATURE]: View others profiles HOT 5
- [BUG]: showPasswordModal() bottom overflow error HOT 1
- [BUG]: App malfunction if no CrowdActions are fetched HOT 1
- [SUGGESTION]: Support for darkmode
- [BUG]: Placeholder supporting associated domains
- [FEATURE]: Show Country of CrowdAction in form of a Flag HOT 1
- [FEATURE]: Force Sign-in to Access Application HOT 1
- [FEATURE]: Menu Tab
- [FEATURE]: Menu Tab: Account Information Screen
- [FEATURE]: Menu Tab: Contact us full-screen dialog HOT 4
- [BUG]: Use separate Signing for Android on Dev than on Prod HOT 2
- [IMPROVEMENT]: Migrate to basic models from freezed HOT 2
- [IMPROVEMENT]: Show user at top of Participant List after participating in CrowdAction
- [FEATURE]: Reduce built bundle size HOT 4
- [BUG]: Update AppIcons with new Logo HOT 14
- [SUGGESTION]: Upgrade Flutter and Dart Versions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collaction_app.