Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 503 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 503 Bytes

Spectral Integration With Husky

In this example you'll see how to use Spectral with Husky, the git hook manager.

  • Clone the project, run yarn install (or npm install)

Now try editing src/main.rb and put in something dangerous.

Maybe replace ___ with an AWS key (look for 'AKIA'), find an example key here https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html

  • Try to commit
  • Husky should fail your attempt to commit (a good thing!)