-
Notifications
You must be signed in to change notification settings - Fork 31
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
Allows enabling hooks for code analysis #1214
base: main
Are you sure you want to change the base?
Conversation
16ece60
to
0c1bc09
Compare
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.
@jyeshe , this is super cool, but i'd suggest it doesn't belong in Lightning. Would it make more sense in OpenFn/kit or OpenFn/adaptors? (My rational is this... if a developer is writing job state and expressions on their local filesystem, it's because they're using the CLI, not Lightning. What do you think? In other words, I love the concept but think it's in the wrong repo!)
Oooh actually, @jyeshe , this should probably go in the https://github.com/OpenFn/project template |
Hey Taylor, thanks for clarifying. For this check I have looked at this: https://github.com/OpenFn/Lightning/blob/2b93dce6d7f057601a928658f28fd7600f001e91/lib/lightning_web/controllers/api/provisioning_controller.ex#L38 |
0c1bc09
to
e45090a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1214 +/- ##
=======================================
Coverage 89.31% 89.31%
=======================================
Files 231 231
Lines 7227 7227
=======================================
Hits 6455 6455
Misses 772 772 ☔ View full report in Codecov by Sentry. |
Blocked until @stuartc is back |
@jyeshe @taylordowns2000 can I get an explanation of what these changes do, I mean I see the git hooks - but no changes to the README or really what the justification is. I can figure it out but this does change things for anyone contributing to the project - for these kinds of things I feel it's fair to have a proposal as why it's a good change. Aside:
Curious why |
Basically it avoids code to be committed without proper formatting. From time to time we need to push again because it was not formatted (making the diff more precise as well). On a The CI only passed with the |
Notes for the reviewer
This preventsstate.json
or similar content to be pushed even temporarily to the public git repo.Allows enabling git commit and push hooks for code formatting and analysis.
@taylordowns2000 this is for the security suggest
cc @stuartc
To enable the hooks for
security andcode check, please runmix git_hooks.install
.Related issue
Keep going and help automating a bit GDPR (and equivalent) compliance.Just to anticipate some checks executed by CI.
Review checklist