-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98e95c4
commit 10ac0c1
Showing
63 changed files
with
63 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
fixtures/AbbreviationPeriods/.vale.ini → test/fixtures/AbbreviationPeriods/.vale.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
fixtures/Ambiguity/.vale.ini → test/fixtures/Ambiguity/.vale.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
fixtures/Contractions/.vale.ini → test/fixtures/Contractions/.vale.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
fixtures/OptionalPlurals/.vale.ini → test/fixtures/OptionalPlurals/.vale.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
fixtures/OxfordComma/.vale.ini → test/fixtures/OxfordComma/.vale.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
fixtures/Percentages/.vale.ini → test/fixtures/Percentages/.vale.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
fixtures/PreferredAlternatives/.vale.ini → .../fixtures/PreferredAlternatives/.vale.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
fixtures/RequiredAlternatives/.vale.ini → test/fixtures/RequiredAlternatives/.vale.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
fixtures/Semicolon/.vale.ini → test/fixtures/Semicolon/.vale.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
fixtures/SentenceLength/.vale.ini → test/fixtures/SentenceLength/.vale.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
fixtures/SimplerAlternatives/.vale.ini → test/fixtures/SimplerAlternatives/.vale.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
fixtures/WordRepitition/.vale.ini → test/fixtures/WordRepitition/.vale.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
StylesPath = ../../ | ||
StylesPath = ../../../ | ||
|
||
MinAlertLevel = suggestion | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,17 @@ | ||
import fs from "fs"; | ||
import path from "path"; | ||
|
||
function* walkSync(dir) { | ||
const files = fs.readdirSync(dir, { withFileTypes: true }); | ||
for (const file of files) { | ||
if (file.isDirectory()) { | ||
yield* walkSync(path.join(dir, file.name)); | ||
} else { | ||
yield path.join(dir, file.name); | ||
} | ||
} | ||
} | ||
const testDirectory = "test"; | ||
const fixturesDirectory = "fixtures"; | ||
|
||
const dir = path.resolve(process.cwd(), "test", "expectations"); | ||
const extension = ".log"; | ||
const parameters = []; | ||
const fixturesRoot = path.resolve(process.cwd(), testDirectory, fixturesDirectory); | ||
const parameters = fs.readdirSync(fixturesRoot, { | ||
withFileTypes: false, | ||
recursive: false | ||
}).map(fpath => path.basename(fpath)); | ||
|
||
for (const filePath of walkSync(dir)) { | ||
if (path.extname(filePath).toLowerCase() === extension) { | ||
const fileName = path.basename(filePath).replace(extension, ""); | ||
const fileContent = fs.readFileSync(filePath).toString().trim(); | ||
parameters.push([fileName, fileContent]); | ||
} | ||
} | ||
|
||
export default parameters; | ||
export { | ||
parameters as default, | ||
testDirectory, | ||
fixturesDirectory | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/expectations/AbbreviationPeriods.log → test/snapshots/AbbreviationPeriods.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
test.md:3:45:Prim.AbbreviationPeriods:Don't use periods with abbreviations such as 'H.T.T.P.S.'. | ||
test.md:3:45:Prim.AbbreviationPeriods:Don't use periods with abbreviations such as 'H.T.T.P.S.'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
test.md:3:49:Prim.Ambiguity:Avoid ambiguity. Don't use 'and/or'. | ||
test.md:3:49:Prim.Ambiguity:Avoid ambiguity. Don't use 'and/or'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
test.md:3:23:Prim.Ellipsis:In general, don't use an ellipsis. | ||
test.md:4:22:Prim.Ellipsis:In general, don't use an ellipsis. | ||
test.md:4:22:Prim.Ellipsis:In general, don't use an ellipsis. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
test.md:3:16:Prim.EmDash:Add spaces around '—'. | ||
test.md:3:45:Prim.EmDash:Add spaces around '—'. | ||
test.md:3:45:Prim.EmDash:Add spaces around '—'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
test.md:3:47:Prim.EnDash:Remove the spaces around '–'. | ||
test.md:4:31:Prim.EnDash:Remove the spaces around '–'. | ||
test.md:5:42:Prim.EnDash:Remove the spaces around '–'. | ||
test.md:5:42:Prim.EnDash:Remove the spaces around '–'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/expectations/OptionalPlurals.log → test/snapshots/OptionalPlurals.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
test.md:3:23:Prim.OptionalPlurals:Don't use plurals in parentheses such as in 'extension(s)'. | ||
test.md:4:5:Prim.OptionalPlurals:Don't use plurals in parentheses such as in 'checkbox(es)'. | ||
test.md:4:5:Prim.OptionalPlurals:Don't use plurals in parentheses such as in 'checkbox(es)'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
test.md:3:1:Prim.Ordinal:Don't add -ly to an ordinal number. | ||
test.md:3:45:Prim.Ordinal:Don't add -ly to an ordinal number. | ||
test.md:3:84:Prim.Ordinal:Don't add -ly to an ordinal number. | ||
test.md:3:84:Prim.Ordinal:Don't add -ly to an ordinal number. |
2 changes: 1 addition & 1 deletion
2
test/expectations/OxfordComma.log → test/snapshots/OxfordComma.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
test.md:3:41:Prim.OxfordComma:Use the Oxford comma in 'flour, sugar, eggs and butter.'. | ||
test.md:5:20:Prim.OxfordComma:Use the Oxford comma in 'clothes, toiletries or books?'. | ||
test.md:5:20:Prim.OxfordComma:Use the Oxford comma in 'clothes, toiletries or books?'. |
2 changes: 1 addition & 1 deletion
2
test/expectations/Percentages.log → test/snapshots/Percentages.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
test.md:3:28:Prim.Percentages:Use a numeral to represent a percentage. | ||
test.md:3:28:Prim.Percentages:Use a numeral to represent a percentage. |
2 changes: 1 addition & 1 deletion
2
test/expectations/PreferredAlternatives.log → test/snapshots/PreferredAlternatives.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
test.md:4:36:Prim.PreferredAlternatives:Prefer using 'Zero-day' over '0-day'. | ||
test.md:7:39:Prim.PreferredAlternatives:Prefer using 'Midnight' over '12 am'. | ||
test.md:10:30:Prim.PreferredAlternatives:Prefer using 'Noon' over '12 pm'. | ||
test.md:10:30:Prim.PreferredAlternatives:Prefer using 'Noon' over '12 pm'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test.md:3:33:Prim.Semicolon:Try to simplify this sentence. |
2 changes: 1 addition & 1 deletion
2
test/expectations/SentenceLength.log → test/snapshots/SentenceLength.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
test.md:3:1:Prim.SentenceLength:Try to keep sentences short (< 30 words). | ||
test.md:3:1:Prim.SentenceLength:Try to keep sentences short (< 30 words). |
2 changes: 1 addition & 1 deletion
2
test/expectations/SimplerAlternatives.log → test/snapshots/SimplerAlternatives.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
test.md:4:31:Prim.SimplerAlternatives:Use 'about' instead of 'approximately'. | ||
test.md:4:31:Prim.SimplerAlternatives:Use 'about' instead of 'approximately'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test.md:3:14:Prim.WordRepitition:'zoom' is repeated. |