Facebook
From Red Lechwe, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 100
  1. ### How to use pre-push hook linter
  2.  
  3. In the project **rmf-flink-local** is configured a linter. You can install the pre push hook by executing the
  4. following command:
  5. ```shell
  6. ./gradlew installKotlinterPrePushHook
  7. ```
  8.  
  9. This will install a **pre-push** file under the folder .git/hooks. You need to move this file one folder below under
  10. root folder so that it is applied per every push to git.
  11. This will effectively run linter and fail the push if the linter command cannot be applied successfully