Skip to content

Vale: Add HeadingPunctuation test to error #1642

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
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ The following tests are at a `error` level and will prevent merging:
- [Emdash](https://github.com/errata-ai/Google/blob/master/Google/EmDash.yml)
- [Endash](https://github.com/errata-ai/Google/blob/master/Google/EmDash.yml)
- [Exclamation](https://github.com/errata-ai/Google/blob/master/Google/Exclamation.yml)
- [HeadingPunctuation](https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings)
- [LyHyphens](https://developers.google.com/style/hyphens)
- [NonStandardQuotes](https://github.com/fluent/fluent-bit-docs/blob/master/vale-styles/FluentBit/NonStandardQuotes.yml):
[Use standard quotes](https://developers.google.com/style/quotation-marks#straight-and-curly-quotation-marks).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ This functionality is only exposed in YAML configuration and not in classic conf

[Processor example](configuration-file.md#example-using-processors)

### Example: Using processors.
### Example: Using processors

The following configuration file example demonstrates the use of processors to change the log record in the input plugin section by adding a new key "hostname" with the value "monox", and we use lua to append the tag to the log record. Also in the ouput plugin section we added a new key named "output" with the value "new data". All these without the need of routing the logs further in the pipeline.

Expand Down
4 changes: 2 additions & 2 deletions vale-styles/FluentBit/HeadingPunctuation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ extends: existence
message: "Don't put a period at the end of a heading."
link: 'https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings'
nonword: true
level: suggestion
level: error
scope: heading
action:
name: edit
params:
- remove
- '.'
tokens:
- '[a-z0-9][.]\s*$'
- '[a-z0-9][.]\s*$'