git-lint 1.1.0 → 1.1.1
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.tar.gz.sig +0 -0
- data/LICENSE.adoc +1 -1
- data/README.adoc +18 -20
- data/lib/git/lint/analyzers/commit_body_bullet_delimiter.rb +5 -1
- data/lib/git/lint/analyzers/commit_body_leading_line.rb +2 -1
- data/lib/git/lint/identity.rb +1 -1
- 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: ebbb3f67f04832ff30e770db178902f8d271af160d713ece50c188601d969160
|
4
|
+
data.tar.gz: '0285bce8629da448fb16fcf7fbe69ac0d3d3afcbfb3f10f140c3c35744841cfe'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52130792fd09ddb40873b3a3e997ffce167e263c12d01ef07cb14f8818e442776a0f0451fdf02eec478db05b4b034adf7bba22a7f72b971b2570d5b1d27ba331
|
7
|
+
data.tar.gz: 35969feb54089337530739b62e8edb23ab35c68d2ea7ea8cf348fa439a0f864c864157d0f0d0bc343c11e32546907dd89d5b64b6047cc4056fbb82e19b6a2fcf
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/LICENSE.adoc
CHANGED
@@ -150,7 +150,7 @@ additional liability.
|
|
150
150
|
|
151
151
|
END OF TERMS AND CONDITIONS
|
152
152
|
|
153
|
-
Copyright link:https://www.alchemists.io[
|
153
|
+
Copyright 2020 link:https://www.alchemists.io/team/brooke_kuhlmann[Brooke Kuhlmann].
|
154
154
|
|
155
155
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
156
156
|
compliance with the License. You may obtain a link:https://www.apache.org/licenses/LICENSE-2.0[copy]
|
data/README.adoc
CHANGED
@@ -45,8 +45,6 @@ image::https://www.alchemists.io/images/screencasts/git_lint/cover.svg[Screencas
|
|
45
45
|
|
46
46
|
== Setup
|
47
47
|
|
48
|
-
=== Production
|
49
|
-
|
50
48
|
To install, run:
|
51
49
|
|
52
50
|
[source,bash]
|
@@ -54,24 +52,6 @@ To install, run:
|
|
54
52
|
gem install git-lint
|
55
53
|
----
|
56
54
|
|
57
|
-
=== Development
|
58
|
-
|
59
|
-
To contribute, run:
|
60
|
-
|
61
|
-
[source,bash]
|
62
|
-
----
|
63
|
-
git clone https://github.com/bkuhlmann/git-lint.git
|
64
|
-
cd git-lint
|
65
|
-
bin/setup
|
66
|
-
----
|
67
|
-
|
68
|
-
You can also use the IRB console for direct access to all objects:
|
69
|
-
|
70
|
-
[source,bash]
|
71
|
-
----
|
72
|
-
bin/console
|
73
|
-
----
|
74
|
-
|
75
55
|
== Usage
|
76
56
|
|
77
57
|
=== Command Line Interface (CLI)
|
@@ -1046,6 +1026,24 @@ image::https://www.alchemists.io/images/projects/git-lint/screenshots/github-set
|
|
1046
1026
|
|
1047
1027
|
Applying the above changes will help maintain a clean Git history.
|
1048
1028
|
|
1029
|
+
== Development
|
1030
|
+
|
1031
|
+
To contribute, run:
|
1032
|
+
|
1033
|
+
[source,bash]
|
1034
|
+
----
|
1035
|
+
git clone https://github.com/bkuhlmann/git-lint.git
|
1036
|
+
cd git-lint
|
1037
|
+
bin/setup
|
1038
|
+
----
|
1039
|
+
|
1040
|
+
You can also use the IRB console for direct access to all objects:
|
1041
|
+
|
1042
|
+
[source,bash]
|
1043
|
+
----
|
1044
|
+
bin/console
|
1045
|
+
----
|
1046
|
+
|
1049
1047
|
== Tests
|
1050
1048
|
|
1051
1049
|
To test, run:
|
@@ -32,7 +32,11 @@ module Git
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def invalid_line? line
|
35
|
-
line.match?(/\A\s*#{
|
35
|
+
line.match?(/\A\s*#{pattern}(?!(#{pattern}|\s)).+\Z/)
|
36
|
+
end
|
37
|
+
|
38
|
+
def pattern
|
39
|
+
Regexp.union filter_list.to_regexp
|
36
40
|
end
|
37
41
|
end
|
38
42
|
end
|
@@ -14,9 +14,10 @@ module Git
|
|
14
14
|
def valid?
|
15
15
|
raw_body = commit.raw_body
|
16
16
|
subject, body = raw_body.split "\n", 2
|
17
|
+
|
17
18
|
return true if !String(subject).empty? && String(body).strip.empty?
|
18
19
|
|
19
|
-
raw_body.match?(/\A
|
20
|
+
raw_body.match?(/\A.+(\n\n|\#).+/m)
|
20
21
|
end
|
21
22
|
|
22
23
|
def issue
|
data/lib/git/lint/identity.rb
CHANGED
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: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
2XV8FRa7/JimI07sPLC13eLY3xd/aYTi85Z782KIA4j0G8XEEWAX0ouBhlXPocZv
|
29
29
|
QWc=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2020-10-
|
31
|
+
date: 2020-10-18 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: pastel
|
metadata.gz.sig
CHANGED
Binary file
|