Skip to content

Commit 17a8edf

Browse files
Update rules
1 parent 98d2f87 commit 17a8edf

File tree

4 files changed

+15
-21
lines changed

4 files changed

+15
-21
lines changed

Openly/Quotes.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Openly/Readability.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
---
2-
extends: readability
3-
message: "Grade level (%s) too high!"
4-
level: warning
5-
grade: 10
6-
metrics:
7-
- Flesch-Kincaid
8-
- Gunning Fog
9-
- Coleman-Liau
10-
- SMOG
11-
- Automated Readability
1+
extends: metric
2+
message: "Try to keep the Flesch reading ease score (%s) above 70."
3+
link: https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests
4+
5+
formula: |
6+
206.835 - (1.015 * (words / sentences)) - (84.6 * (syllables / words))
7+
8+
condition: "< 70"

Openly/So.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ extends: existence
33
message: "Don't start a sentence with '%s'"
44
ignorecase: true
55
level: error
6+
action:
7+
name: edit
8+
params:
9+
- remove
10+
- '.?!'
611
raw:
7-
- '(?<=[.;?!]\s)(?:[.-]?\s*)so\b'
12+
- '(?<=[.;?!]\s)(?:[.-]?\s*)so\b'

fixtures/basic/fail.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# HEADINGS!
22

3-
So, click the button to see what the computer thinks they will say. There is also right click of course. This is true.
3+
So, click the button to see what the computer thinks they will say. There is also right click of course. This is true. Also check this. Andthere is this
44

55
But I'm telling you the truth is that it has the manpower and knows and arguably tries to assist you.
66

0 commit comments

Comments
 (0)