Switched from pre-commit to overcommit.

This commit is contained in:
Dominik Klein 2021-07-06 14:42:00 +02:00
parent 32a3e31db8
commit d7728b23f3
4 changed files with 51 additions and 12 deletions

44
.overcommit.yml Normal file
View File

@ -0,0 +1,44 @@
CommitMsg:
ALL:
enabled: false
EmptyMessage:
enabled: true
PreCommit:
ALL:
enabled: false
RuboCop:
enabled: true
on_warn: fail # Treat all warnings as failures
CoffeeLint:
enabled: true
on_warn: fail # Treat all warnings as failures
PostCheckout:
ALL:
enabled: false
PostCommit:
ALL:
enabled: false
PostMerge:
ALL:
enabled: false
PostRewrite:
ALL:
enabled: false
PrePush:
ALL:
enabled: false
PreRebase:
ALL:
enabled: false
PrepareCommitMsg:
ALL:
enabled: false

View File

@ -187,7 +187,7 @@ group :development, :test do
# code QA
gem 'coffeelint'
gem 'pre-commit'
gem 'overcommit'
gem 'rubocop'
gem 'rubocop-faker'
gem 'rubocop-performance'

View File

@ -292,6 +292,7 @@ GEM
ice_cube (~> 0.16)
ice_cube (0.16.3)
inflection (1.0.0)
iniparse (1.5.0)
interception (0.5)
json (2.5.1)
jwt (2.2.3)
@ -392,14 +393,15 @@ GEM
omniauth (~> 1.5)
omniauth-oauth2 (>= 1.4.0)
openssl (2.2.0)
overcommit (0.58.0)
childprocess (>= 0.6.3, < 5)
iniparse (~> 1.4)
rexml (~> 3.2)
parallel (1.20.1)
parser (3.0.2.0)
ast (~> 2.4.1)
pg (0.21.0)
pluginator (1.5.0)
power_assert (2.0.0)
pre-commit (0.39.0)
pluginator (~> 1.5)
protocol-hpack (1.4.2)
protocol-http (0.22.4)
protocol-http1 (0.14.1)
@ -707,8 +709,8 @@ DEPENDENCIES
omniauth-twitter
omniauth-weibo-oauth2
openssl
overcommit
pg (= 0.21.0)
pre-commit
pry-rails
pry-remote
pry-rescue

View File

@ -1,7 +0,0 @@
---
:checks_remove:
- :common
- :rails
:checks_add:
- :rubocop
- :coffeelint