danger-l10nlint 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/danger_plugin.rb +2 -2
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9ebfe0f8f2316c6754e3efff12caa8920b830377e380e0b6cd34a81d9088e56
|
4
|
+
data.tar.gz: ec4fd8186322b0e68cda9a065565a83625d319c6a56961ec0058124623032968
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fab36dff04e6c85ea1f71200e67f585d246241aaf1da4446bdc9cfeab4ca194d13a8f41f40eac688047b20c33c3a8844c378dfc27e6954a065bbc52aac6485d
|
7
|
+
data.tar.gz: 57fd6b4715f9c8c30b14b9345a0d94bf12d92fcc522195949cfcdcc38eabec24f6cc2b71fabfa75f889c9e61c1c2cff7e14126b485c127976efdd2b7f8008d65
|
data/Gemfile.lock
CHANGED
data/lib/danger_plugin.rb
CHANGED
@@ -95,6 +95,7 @@ module Danger
|
|
95
95
|
@warnings = issues.select { |issue| issue['severity'] == 'warning' }
|
96
96
|
@errors = issues.select { |issue| issue['severity'] == 'error' }
|
97
97
|
|
98
|
+
subtitle_in_title = subtitle.empty? ? '' : "(#{subtitle})"
|
98
99
|
if inline_mode
|
99
100
|
# Separate each warnings and errors by inline_except_rules
|
100
101
|
if inline_except_rules
|
@@ -109,7 +110,7 @@ module Danger
|
|
109
110
|
send_inline_comment(inline_errors, (fail_on_error || strict) ? :fail : :warn)
|
110
111
|
|
111
112
|
if markdown_warnings.count > 0 || markdown_errors.count > 0
|
112
|
-
message = "### L10nLint found issues\n\n".dup
|
113
|
+
message = "### L10nLint found issues #{subtitle_in_title}\n\n".dup
|
113
114
|
message << markdown_issues(markdown_warnings, 'Warnings') unless markdown_warnings.empty?
|
114
115
|
message << markdown_issues(markdown_errors, 'Errors') unless markdown_errors.empty?
|
115
116
|
markdown message
|
@@ -119,7 +120,6 @@ module Danger
|
|
119
120
|
|
120
121
|
elsif warnings.count > 0 || errors.count > 0
|
121
122
|
# Report if any warning or error
|
122
|
-
subtitle_in_title = subtitle.empty? '' : "(#{subtitle})"
|
123
123
|
message = "### L10nLint found issues #{subtitle_in_title}\n\n".dup
|
124
124
|
message << markdown_issues(warnings, 'Warnings') unless warnings.empty?
|
125
125
|
message << markdown_issues(errors, 'Errors') unless errors.empty?
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-l10nlint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazumasa Shimomura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-plugin-api
|