Skip to content

Commit 0556ce2

Browse files
committed
feat(rule): preferred alternatives - open-source
1 parent 64b2554 commit 0556ce2

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Prim/PreferredAlternatives.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ swap:
88
0-day: zero-day
99
12 am: midnight
1010
12 pm: noon
11+
open-source: open source

test/fixtures/PreferredAlternatives/test.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ Our online support is available until 12 am.
88

99
<!-- 12 pm -->
1010
Please submit your report by 12 pm tomorrow.
11+
12+
<!-- open-source -->
13+
I contributed a new feature to an open-source project.
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
test.md:4:36:Prim.PreferredAlternatives:Prefer using 'Zero-day' over '0-day'.
22
test.md:7:39:Prim.PreferredAlternatives:Prefer using 'Midnight' over '12 am'.
3-
test.md:10:30:Prim.PreferredAlternatives:Prefer using 'Noon' over '12 pm'.
3+
test.md:10:30:Prim.PreferredAlternatives:Prefer using 'Noon' over '12 pm'.
4+
test.md:13:35:Prim.PreferredAlternatives:Prefer using 'open source' over 'open-source'.

0 commit comments

Comments
 (0)