Skip to content

Commit

Permalink
Merge pull request #3693 from Ana06/git-cop-task
Browse files Browse the repository at this point in the history
[ci] Rake task to run git-cop locally
  • Loading branch information
Ana06 committed Aug 31, 2017
2 parents fb96490 + 817dddb commit 0dc6173
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CONTRIBUTING.md
Expand Up @@ -163,7 +163,13 @@ You can access the frontend at [localhost:3000](http://localhost:3000). Whatever
vagrant exec make -C src/backend test
```

12. Explore the development environment:
12. Check your commits:

```
vagrant exec rake git_cop
```

13. Explore the development environment:

```
vagrant ssh
Expand Down
8 changes: 8 additions & 0 deletions src/api/lib/tasks/git_cop.rake
@@ -0,0 +1,8 @@
desc 'Run Git-cop locally'
task :git_cop do
puts "\nCopying configuration file into ~/.config/git-cop/configuration.yml"
sh "mkdir -p ~/.config/git-cop"
sh "cp ../../dist/git-cop_configuration.yml ~/.config/git-cop/configuration.yml"
puts
sh "bundle exec git-cop --police"
end

0 comments on commit 0dc6173

Please sign in to comment.