Просмотр исходного кода

Switched from pre-commit to overcommit.

Dominik Klein 3 лет назад
Родитель
Сommit
d7728b23f3
4 измененных файлов с 51 добавлено и 12 удалено
  1. 44 0
      .overcommit.yml
  2. 1 1
      Gemfile
  3. 6 4
      Gemfile.lock
  4. 0 7
      config/pre_commit.yml

+ 44 - 0
.overcommit.yml

@@ -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
+

+ 1 - 1
Gemfile

@@ -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'

+ 6 - 4
Gemfile.lock

@@ -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

+ 0 - 7
config/pre_commit.yml

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