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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +7 -17
- data/git-lint.gemspec +1 -1
- data/lib/git/lint/analyzers/commit_subject_prefix.rb +5 -1
- data/lib/git/lint/configuration/defaults.yml +1 -0
- data/lib/git/lint/configuration/setting.rb +1 -0
- data.tar.gz.sig +2 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf45a81cc2f62bfa8b59725e355fb1bbcc7dcfd7d9207bff2383c2ed19db33d0
|
4
|
+
data.tar.gz: e9e057e6ecfb930d0f535ed226631ac402ec23e7b6388fab78f39564ebe2f5e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -20,7 +20,11 @@ module Git
|
|
20
20
|
|
21
21
|
protected
|
22
22
|
|
23
|
-
def load_filter_list
|
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
|
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
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.
|
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-
|
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
|