Skip to content

Commit 88cc986

Browse files
Add vale (#183)
* add styles and cofig for vale for local checks and CI checks * add docs as base dir * fix parameter name * make an edit to test
1 parent f4fa25c commit 88cc986

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1555
-2
lines changed

.circleci/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ parameters:
77

88
orbs:
99
aws-cli: circleci/[email protected]
10+
vale: circleci/[email protected]
1011

1112
executors:
1213
node_executor:
@@ -243,6 +244,14 @@ jobs:
243244
244245
245246
workflows:
247+
248+
lint:
249+
unless:
250+
equal: [ main, << pipeline.git.branch >> ]
251+
jobs:
252+
- vale/lint:
253+
reference_branch: main
254+
base_dir: docs
246255
build_validate_and_deploy:
247256
when:
248257
equal: ["", << pipeline.parameters.cleanup_preview_branch >>]

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ ui/node_modules/
77
ui/public/
88
ui/**/.DS_Store
99
extensions/.temp
10-
.env
10+
.env
11+
.vscode/

.vale.ini

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
StylesPath = styles
2+
3+
Vocab = Docs
4+
5+
MinAlertLevel = suggestion
6+
7+
Packages = Readability
8+
9+
[asciidoctor]
10+
# attribute = value
11+
#
12+
# where 'YES' enables and 'NO' disables.
13+
14+
# enable
15+
experimental = YES
16+
17+
# assign a specific value
18+
attribute-missing = drop
19+
20+
[*.adoc]
21+
BasedOnStyles = circleci-docs, Vale, Readability, Openly

docs/guides/modules/about-circleci/pages/about-circleci.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ image::guides:ROOT:circleci-system-diagram.png[CircleCI process diagram]
1515
[#what-is-ci-cd]
1616
== What is CI/CD?
1717

18-
*Continuous integration (CI)* is a practice that integrates code into a chosen branch of a shared repository, early and often. Instead of building out features in isolation and integrating them at the end of a development cycle, code is integrated with the shared repository by developers multiple times throughout the day by committing daily to a shared mainline. Every commit triggers automated tests and builds. If these fail, they can be repaired quickly.
18+
*Continuous integration (CI)* is a practice that integrates code into a chosen branch of a shared repository, early and often. Instead of building out features in isolation and integrating them at the end of a development cycle, code is integrated with the shared repository multiple times throughout the day. Every commit to a shared mainline triggers automated tests and builds. If these fail, they can be repaired quickly.
1919

2020
*Continuous delivery (CD)* is a practice that produces reliable releases to a chosen development environment, like a staging or production branch.
2121

styles/Openly/A11Y.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
extends: substitution
3+
message: Consider using '%s' instead of '%s'
4+
ignorecase: true
5+
level: error
6+
action:
7+
name: replace
8+
swap:
9+
(?:^click|press): "'select'"

styles/Openly/Anthropomorphism.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
extends: existence
3+
ignorecase: true
4+
level: warning
5+
message: "Don't attribute human qualities to software or hardware."
6+
raw:
7+
- \b(?:PC|computer|object|machine|software|hardware|data|database|engine|message|command|interface)\b\s*
8+
tokens:
9+
- sees
10+
- tells
11+
- thinks
12+
- wants
13+
- cares
14+
- realizes
15+
- assumes
16+
- knows
17+
- remembers
18+
- decides
19+
- knows
20+
- refuses
21+
- demands
22+
- understands
23+
- behaves

styles/Openly/But.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
extends: existence
3+
message: "Do not start a paragraph with a 'but'."
4+
level: error
5+
scope: paragraph
6+
action:
7+
name: remove
8+
params:
9+
- remove
10+
- '.?!'
11+
tokens:
12+
- ^But

styles/Openly/Clarity.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
extends: substitution
3+
message: Consider using '%s' instead of '%s'
4+
level: warning
5+
ignorecase: false
6+
# swap maps tokens in form of bad: good
7+
swap:
8+
help: assist

styles/Openly/E-Prime.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
extends: existence
3+
message: 'Avoid using "%s"'
4+
ignorecase: true
5+
level: suggestion
6+
tokens:
7+
- am
8+
- aren't
9+
- being
10+
- he's
11+
- here's
12+
- here's
13+
- how's
14+
- i'm
15+
- isn't
16+
- she's
17+
- that's
18+
- there's
19+
- they're
20+
- wasn't
21+
- we're
22+
- weren't
23+
- what's
24+
- where's
25+
- who's
26+
- you're
27+
- foobar

styles/Openly/FutureTense.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
extends: existence
2+
message: "Possible future tense."
3+
ignorecase: true
4+
level: warning
5+
tokens:
6+
- will
7+
- '[\w][ll]'
8+
- we are going
9+
- would-be
10+
- would be

0 commit comments

Comments
 (0)