git-lint 4.1.0 → 4.2.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: ee738a7ce606f8a291a1dbada5828b3096345062e1c27caee577ab786a06e216
4
- data.tar.gz: 0717bc13c09ec9802e72a599236aa52ab5dce82694289916ea23dc871b0b0f80
3
+ metadata.gz: bf45a81cc2f62bfa8b59725e355fb1bbcc7dcfd7d9207bff2383c2ed19db33d0
4
+ data.tar.gz: e9e057e6ecfb930d0f535ed226631ac402ec23e7b6388fab78f39564ebe2f5e7
5
5
  SHA512:
6
- metadata.gz: fc01873bb90afbed6bc8718a29a1142bcf7ba7764eac8efbf183cce1a61aaac62b2fdb2f3ea68ccbefeb690114cef2ff5a6cf5f6c4999e0f3a6df19dc4fcc8cb
7
- data.tar.gz: 0cd9f1449cddb6405b7f27b4ed092db62969be9a0b608e8ead0b5efe668e0e7c33d6053fbd7ec119091713f3c1272b46f3a60d90abbbf0cf3294d854aae46a64
6
+ metadata.gz: 5e73f3559cd84bcb9a29f14029bb9a110d7ce53443eda45238a25c998280156dff9a87036874374e188070c06252923d82b8797885cacdc19a66e39d1fdcc57b
7
+ data.tar.gz: 42b11c8435acf551b8dc4af82469d540730753fdeb2b01a2c1eca01720fb286a4ba49191d612762881533feefba2e386241788a7d5e5c6f054902b73f63e219b
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -25,6 +25,7 @@ toc::[]
25
25
 
26
26
  == Requirements
27
27
 
28
+ . link:https://git-scm.com[Git]
28
29
  . link:https://www.ruby-lang.org[Ruby]
29
30
 
30
31
  == Setup
@@ -36,23 +37,6 @@ To install, run:
36
37
  gem install git-lint
37
38
  ----
38
39
 
39
- == Upgrade
40
-
41
- If upgrading from 2.0.0 to 3.0.0, you'll need to make the following changes:
42
-
43
- * The YAML configuration requires a top-level `:analyzers:` key for which all analyzer
44
- configurations should be listed under. See the _Configuration_ section below for more details.
45
- * The `--config` command requires either an `edit` or `view` argument now.
46
- * The `--analyze` command can accept a `--sha` option for passing in the hash of the SHA you want to
47
- analyze. If using this as a post commit Git Hook, you'll need to update your Bash script
48
- accordingly.
49
- * The _Commit Body Line Length_ analyzer configuration has replaced `length` with `maximum` as the
50
- key for defining maximum line length.
51
- * The _Commit Body Issue Tracker Link_ analyzer has been replaced with the _Commit Body Tracker
52
- Shorthand_ analyzer. See documentation below for details.
53
- * The _Commit Subject Length_ analyzer has replaced `length` with `maximum` as the key for defining
54
- maximum subject length.
55
-
56
40
  == Usage
57
41
 
58
42
  === Command Line Interface (CLI)
@@ -234,6 +218,7 @@ variables. The default configuration is:
234
218
  :commit_subject_prefix:
235
219
  :enabled: true
236
220
  :severity: :error
221
+ :delimiter: " "
237
222
  :includes:
238
223
  - Fixed
239
224
  - Added
@@ -717,6 +702,7 @@ Automatically ignores _fixup!_ or _squash!_ commit prefixes when calculating sub
717
702
  |===
718
703
  | Enabled | Severity | Defaults
719
704
  | true | error | includes: (see below)
705
+ | | | delimiter: " "
720
706
  |===
721
707
 
722
708
  Ensures each commit subject uses consistent prefixes that explain _what_ is being committed. The
@@ -751,6 +737,10 @@ milestones and Git tag histories. For a deeper dive on subject prefixes and good
751
737
  general, please read about link:https://www.alchemists.io/articles/git_commit_anatomy[commit anatomy
752
738
  ] to learn more. 🎉
753
739
 
740
+ Each prefix is delimited by a space which is the default setting but can be customized if desired.
741
+ Whatever you choose for a delimiter will not affect Git's special bang prefixes as described in the
742
+ tip below.
743
+
754
744
  💡 This analyzer automatically ignores _amend!_, _fixup!_, or _squash!_ commit prefixes when used as
755
745
  a Git Hook in order to not disturb interactive rebase workflows.
756
746
 
data/git-lint.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "git-lint"
5
- spec.version = "4.1.0"
5
+ spec.version = "4.2.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://www.alchemists.io/projects/git-lint"
@@ -20,7 +20,11 @@ module Git
20
20
 
21
21
  protected
22
22
 
23
- def load_filter_list = Kit::FilterList.new(settings.includes)
23
+ def load_filter_list
24
+ settings.includes
25
+ .map { |prefix| "#{prefix}#{settings.delimiter}" }
26
+ .then { |list| Kit::FilterList.new list }
27
+ end
24
28
 
25
29
  def locally_prefixed? = !ci? && commit.prefix?
26
30
 
@@ -85,6 +85,7 @@
85
85
  :commit_subject_prefix:
86
86
  :enabled: true
87
87
  :severity: :error
88
+ :delimiter: " "
88
89
  :includes:
89
90
  - Fixed
90
91
  - Added
@@ -5,6 +5,7 @@ module Git
5
5
  module Configuration
6
6
  # Defines analyzer specific settings.
7
7
  Setting = Struct.new(
8
+ :delimiter,
8
9
  :enabled,
9
10
  :excludes,
10
11
  :id,
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- ����lJ�;�=��y���ot�8)�z���A63���!Xa.+��{@�$�b��Eqi��f:�9vF�hJPz�K�5,b�&Ab��đǺßX ����B�������DX:�}S�j Z{��%�y��ͳ�On7S8�:��p�R�}|GkT�+���AM��
2
- ��-�L����U/甐3o��)���ET����@1]�'"��A��Ϳ>e��h���&n] Hb)��C�����T&z�,H-K^�
1
+ gΘQ���m�D�z���[�[��~h.��
2
+ ��C�h^��d�y_r)U(�4�&GK��_�EL>��7C�f�4Y�f�:� �$9��3�I��W�n���;k�+|��g�Ѡ�Tv���ܦɊ3J.�f
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
29
29
  RFE=
30
30
  -----END CERTIFICATE-----
31
- date: 2022-05-07 00:00:00.000000000 Z
31
+ date: 2022-05-15 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: auto_injector
metadata.gz.sig CHANGED
Binary file