Skip to main content

Questions tagged [hooks]

4votes
9answers
1kviews

Should I be enforcing lint rules on feature branches?

I am working on a project and I typically setup precompile git hooks for things like linting and testing. I recently had some consultants we use complain about requiring lint on every commit. Their ...
Jose Gleeson's user avatar
1vote
0answers
696views

How to run the Unit Test on Master branch using hook before merging the incoming changes of other branches

We have project which have more than 500 unit test and run for hours through Jenkins CI pipeline. In case there is failure of single UNIT test we need to kick off the build job again. I want to run ...
Isthatyou's user avatar
-2votes
2answers
773views

What is the best way to run untrusted hooks/plugins?

I'm building a data processing system where users can submit hooks to execute on incoming data. The hooks are untrusted and should execute in a sandbox with access only to a limited API that I expose ...
Benjamin Egelund-Müller's user avatar
2votes
1answer
201views

Is using Microsoft Hooks an ethical process for getting non sensitive Information

So we have an application that I am not ready to describe in full before we take it to the market, but I will give the details necessary. We currently have an application that takes a snapshot of an ...
RSon1234's user avatar
2votes
1answer
738views

Is it possible to run a git hook that is executed when adding a file? [closed]

I'm planning to set up a client side git hook to force a commit to fail if any file in the commit contains the text "donotcommit". Is it possible to hook the execution of "git add", such that I can ...
dgnuff's user avatar
1vote
2answers
120views

In a web application, are Hooks and Event Subscriptions the same thing?

When I look at at some PHP applications, they typically have hooks. Drupal and Wordpress are examples. When I look at an application from the .NET world like Orchard or Umbraco, one subscribes to ...
johnny's user avatar
  • 3,679
5votes
3answers
389views

Patterns to allow for versatile data-flow hooks in Javascript

I have an application where I'd like to add ways for external modules/components to hook during the processes and data-flow and perform actions/modify data. For the first requirement—performing ...
Sunyatasattva's user avatar
11votes
3answers
742views

When are hooks the right design choice?

I've worked on a large Rails app where the use of ActiveRecord callbacks was rampant and harrowing. Saving a record often had unexpected side-effects and it was a challenge to reason about the system. ...
ivan's user avatar
  • 319
5votes
1answer
1kviews

Driving Linux input events from serial device

I'd like to build a RaspberryPi-based device that can communicate with my Linux laptop over USB (don't think it matters, but I'll be using a custom made USB dongle that has an FTDI chip on it, and my ...
smeeb's user avatar
  • 4,940
3votes
1answer
223views

What's a good strategy to go about registering 2-step hotkeys?

User32.dll exposes a RegisterHotKey function, to register, well, hotkeys: [DllImport("user32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] public static extern bool ...
Mathieu Guindon's user avatar
0votes
2answers
1kviews

Are hooks really subsumed by Slim Framework middleware?

I've been using the Slim Framework (v2) for a little while now to develop my user management system. They recently released Slim 3, and according to the upgrade guide, Slim v3 no longer has the ...
alexw's user avatar
2votes
1answer
105views

Development approach for GUI application sharing on X

I'm curious about developing a simple system for GUI application sharing between users on a single computer, which uses Xorg (or perhaps any modern form of X11 display). I'd like user Alice to be able ...
Chris Robison's user avatar
50votes
9answers
30kviews

Is it a good practice to run unit tests in version control hooks?

From the technical point of view it is possible to add some pre/post push hooks which will run unit tests before allowing some specific commit to be merged to remote default branch. My question is - ...
shabunc's user avatar
  • 2,454
26votes
3answers
4kviews

What should plugins use: hooks, events or something else?

Consider an app that allows plugins to react to its program flow. I know 2 ways to achieve this: hooks and events 1. Hooks Use calls to empty functions inside the main program flow. These functions ...
Stas Bichenko's user avatar

close