Skip to content

Commit ea8e63e

Browse files
authored
Merge pull request #1636 from fluent/lynettemiles/sc-135369/set-endash-vale-test-to-error-for-fluent
Vale: removing dashes and turning on test
2 parents e1bd5b8 + 0293538 commit ea8e63e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pipeline/inputs/nginx.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Name | Type | Description | Labels
196196

197197
#### [HTTP Upstreams](https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_http_upstream)
198198

199-
> Note: for the `state` metric, the string values are converted to float64 using the following rule: `"up"` -> `1.0`, `"draining"` -> `2.0`, `"down"` -> `3.0`, `"unavail"` –> `4.0`, `"checking"` –> `5.0`, `"unhealthy"` -> `6.0`.
199+
> Note: for the `state` metric, the string values are converted to float64 using the following rule: `"up"` = `1.0`, `"draining"` = `2.0`, `"down"` = `3.0`, `"unavail"` = `4.0`, `"checking"` = `5.0`, `"unhealthy"` = `6.0`.
200200
201201
Name | Type | Description | Labels
202202
----|----|----|----|
@@ -216,7 +216,9 @@ Name | Type | Description | Labels
216216

217217
#### [Stream Upstreams](https://nginx.org/en/docs/http/ngx_http_api_module.html#def_nginx_stream_upstream)
218218

219-
> Note: for the `state` metric, the string values are converted to float64 using the following rule: `"up"` -> `1.0`, `"down"` -> `3.0`, `"unavail"` –> `4.0`, `"checking"` –> `5.0`, `"unhealthy"` -> `6.0`.
219+
> Note: for the `state` metric, the string values are converted to float64 using the
220+
> following rule: `"up"` = `1.0`, `"down"` = `3.0`, `"unavail"` = `4.0`,
221+
> `"checking"` = `5.0`, `"unhealthy"` = `6.0`.
220222
221223
Name | Type | Description | Labels
222224
----|----|----|----|

vale-styles/FluentBit/EnDash.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ extends: existence
22
message: "Use an em dash ('—') instead of '–'."
33
link: 'https://developers.google.com/style/dashes'
44
nonword: true
5-
level: suggestion
5+
level: error
66
action:
77
name: edit
88
params:
99
- replace
1010
- '-'
1111
- ''
1212
tokens:
13-
- ''
13+
- ''

0 commit comments

Comments
 (0)