Skip to content

Commit f2cfb13

Browse files
authored
Merge pull request #1638 from fluent/lynettemiles/sc-135376/update-ampersand-vale-test-for-fluent-bit
2 parents ea8e63e + e3d7ed1 commit f2cfb13

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

CONTRIBUTING.md

+4
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,7 @@ The following tests are at a `error` level and will prevent merging:
138138
to prevent this problem.
139139
- [Repetition](https://github.com/errata-ai/vale/blob/v3/testdata/styles/Markup/Repetition.yml):
140140
Checks for the same word used twice in succession.
141+
142+
The following tests are at a `warning` level and won't prevent merging:
143+
144+
- [Ampersand](https://developers.google.com/style/word-list#ampersand)

SUMMARY.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
* [What is Fluent Bit?](about/what-is-fluent-bit.md)
88
* [A Brief History of Fluent Bit](about/history.md)
9-
* [Fluentd & Fluent Bit](about/fluentd-and-fluent-bit.md)
9+
* [Fluentd and Fluent Bit](about/fluentd-and-fluent-bit.md)
1010
* [License](about/license.md)
1111
* [Sandbox and Lab Resources](about/sandbox-and-lab-resources.md)
1212

@@ -69,7 +69,7 @@
6969
* [Unit Sizes](administration/configuring-fluent-bit/unit-sizes.md)
7070
* [Multiline Parsing](administration/configuring-fluent-bit/multiline-parsing.md)
7171
* [Transport Security](administration/transport-security.md)
72-
* [Buffering & Storage](administration/buffering-and-storage.md)
72+
* [Buffering and Storage](administration/buffering-and-storage.md)
7373
* [Backpressure](administration/backpressure.md)
7474
* [Scheduling and Retries](administration/scheduling-and-retries.md)
7575
* [Networking](administration/networking.md)
@@ -217,7 +217,7 @@
217217
* [Stackdriver](pipeline/outputs/stackdriver.md)
218218
* [Standard Output](pipeline/outputs/standard-output.md)
219219
* [Syslog](pipeline/outputs/syslog.md)
220-
* [TCP & TLS](pipeline/outputs/tcp-and-tls.md)
220+
* [TCP and TLS](pipeline/outputs/tcp-and-tls.md)
221221
* [Treasure Data](pipeline/outputs/treasure-data.md)
222222
* [Vivo Exporter](pipeline/outputs/vivo-exporter.md)
223223
* [WebSocket](pipeline/outputs/websocket.md)

administration/buffering-and-storage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Buffering & Storage
1+
# Buffering and Storage
22

33
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=cde12327-09ed-409c-ac02-7c0afa5eff51" />
44

pipeline/inputs/cpu-metrics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ As described above, the CPU input plugin gathers the overall usage every one sec
5757

5858
### Configuration File
5959

60-
In your main configuration file append the following _Input_ & _Output_ sections:
60+
In your main configuration file append the following _Input_ and _Output_ sections:
6161

6262
{% tabs %}
6363
{% tab title="fluent-bit.conf" %}

vale-styles/FluentBit/Ampersand.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
---
21
extends: existence
3-
message: "Don't use an ampersand in place of the word 'and'. Always write out 'and' unless the ampersand is part of a proper name."
2+
message: 'Use "and" instead of "&" in content.'
3+
level: warning
4+
scope: text
45
nonword: true
5-
ignorecase: false
6-
level: suggestion
7-
scope: sentence
86
tokens:
9-
- '[^\*{2}].*.&.*[^\*{2}]\n'
7+
- '\s&\s'
8+
- '^&\s'
9+
- '\s&$'
10+
- '\s&[^\w]'
11+
- '[^\w]&\s'

0 commit comments

Comments
 (0)