gitlab-dangerfiles 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8a22cec902c95d63352af51b2b0460e7cb761ddda7ee7ab2833077686ee5428
4
- data.tar.gz: 1eb6288e842695e9811d6f8ba88cf43d8c75caa1c441a3419aed3f5988c11864
3
+ metadata.gz: f2fca983a5c97d75dbd16b7689b26ed93a12ae5ea1781ce7bac4787f7ed2a6d3
4
+ data.tar.gz: f24ee73b3ee86de8ee2f447db04ca4cf46dda59d3711d85fd27fad002a2644f3
5
5
  SHA512:
6
- metadata.gz: 81214e30c00e1b8c3f164a8b3bdfbc135902b5292a1064a8f4acbcd26ef5f9d9b0e83ebea83c51621e1742b2b6df13af1e81732fb4c9256bb254cac153370170
7
- data.tar.gz: dd5be048537a4604d21774622effdb3e02d82aa3aefaaecb5bdcf598a96efcbff9ade89100c753cb26cff12b85b7cded1fdde71bbae10035ea341717b9704c67
6
+ metadata.gz: 5a04e545969282bbc1561201db8ba45e1677dedc2ccd5ac35fcd8b069366906d66f79ff8d0b2ecd73e0bca064d5b158cfd40790df28e33df160c8f97f125b1b4
7
+ data.tar.gz: bc7f08b1508e130491cc860b96947cf6ccac0e03a0cb577118399f391f7997c5e69e82db4658fd845b039b92cea8c6ab0ada5337f044cc9bea79a2bb66d4e58b
@@ -2,5 +2,8 @@ require "gitlab/dangerfiles/version"
2
2
 
3
3
  module Gitlab
4
4
  module Dangerfiles
5
+ def self.import_plugins(danger)
6
+ danger.import_plugin(File.expand_path("../danger/*.rb", __dir__))
7
+ end
5
8
  end
6
9
  end
@@ -6,6 +6,7 @@ require_relative "emoji_checker"
6
6
  module Gitlab
7
7
  module Dangerfiles
8
8
  class CommitLinter < BaseLinter
9
+ MAX_CHANGED_FILES_IN_COMMIT = 3
9
10
  MAX_CHANGED_LINES_IN_COMMIT = 30
10
11
  SHORT_REFERENCE_REGEX = %r{([\w\-\/]+)?(?<!`)(#|!|&|%)\d+(?<!`)}.freeze
11
12
 
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module Dangerfiles
3
- VERSION = "0.7.0"
3
+ VERSION = "0.8.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-dangerfiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rémy Coutable
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-04 00:00:00.000000000 Z
11
+ date: 2021-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger