Skip to content

Vale: Ampersand test and testing #1638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,7 @@ The following tests are at a `error` level and will prevent merging:
to prevent this problem.
- [Repetition](https://github.com/errata-ai/vale/blob/v3/testdata/styles/Markup/Repetition.yml):
Checks for the same word used twice in succession.

The following tests are at a `warning` level and won't prevent merging:

- [Ampersand](https://developers.google.com/style/word-list#ampersand)
6 changes: 3 additions & 3 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

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

Expand Down Expand Up @@ -69,7 +69,7 @@
* [Unit Sizes](administration/configuring-fluent-bit/unit-sizes.md)
* [Multiline Parsing](administration/configuring-fluent-bit/multiline-parsing.md)
* [Transport Security](administration/transport-security.md)
* [Buffering & Storage](administration/buffering-and-storage.md)
* [Buffering and Storage](administration/buffering-and-storage.md)
* [Backpressure](administration/backpressure.md)
* [Scheduling and Retries](administration/scheduling-and-retries.md)
* [Networking](administration/networking.md)
Expand Down Expand Up @@ -217,7 +217,7 @@
* [Stackdriver](pipeline/outputs/stackdriver.md)
* [Standard Output](pipeline/outputs/standard-output.md)
* [Syslog](pipeline/outputs/syslog.md)
* [TCP & TLS](pipeline/outputs/tcp-and-tls.md)
* [TCP and TLS](pipeline/outputs/tcp-and-tls.md)
* [Treasure Data](pipeline/outputs/treasure-data.md)
* [Vivo Exporter](pipeline/outputs/vivo-exporter.md)
* [WebSocket](pipeline/outputs/websocket.md)
Expand Down
2 changes: 1 addition & 1 deletion administration/buffering-and-storage.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Buffering & Storage
# Buffering and Storage

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

Expand Down
2 changes: 1 addition & 1 deletion pipeline/inputs/cpu-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ As described above, the CPU input plugin gathers the overall usage every one sec

### Configuration File

In your main configuration file append the following _Input_ & _Output_ sections:
In your main configuration file append the following _Input_ and _Output_ sections:

{% tabs %}
{% tab title="fluent-bit.conf" %}
Expand Down
14 changes: 8 additions & 6 deletions vale-styles/FluentBit/Ampersand.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
extends: existence
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."
message: 'Use "and" instead of "&" in content.'
level: warning
scope: text
nonword: true
ignorecase: false
level: suggestion
scope: sentence
tokens:
- '[^\*{2}].*.&.*[^\*{2}]\n'
- '\s&\s'
- '^&\s'
- '\s&$'
- '\s&[^\w]'
- '[^\w]&\s'