diff --git a/styles-vale/OutSystems/AmericanSpelling.yml b/styles-vale/OutSystems/AmericanSpelling.yml new file mode 100644 index 0000000..e1d60fc --- /dev/null +++ b/styles-vale/OutSystems/AmericanSpelling.yml @@ -0,0 +1,15 @@ +extends: substitution +message: Use the American spelling '%s' instead of '%s'. +level: error +ignorecase: true +swap: + colour: color + behaviour: behavior + analise: analyze + analised: analyzed + analising: analyzing + centre: center + travelling: traveling + organise: organize + organizing: organizing + fortnight: two weeks diff --git a/styles-vale/OutSystems/BrandName.yml b/styles-vale/OutSystems/BrandName.yml new file mode 100644 index 0000000..5b1c685 --- /dev/null +++ b/styles-vale/OutSystems/BrandName.yml @@ -0,0 +1,8 @@ +extends: existence +message: Do not write '%s' +scope: sentence +level: warning +code: false +ignorecase: false +raw: + - "(?:OutSystems'|OutSystems Platform)" diff --git a/styles-vale/OutSystems/SentenceComplexity.yml b/styles-vale/OutSystems/SentenceComplexity.yml new file mode 100644 index 0000000..ba74ddb --- /dev/null +++ b/styles-vale/OutSystems/SentenceComplexity.yml @@ -0,0 +1,7 @@ +extends: readability +message: "Readability score (grade level %s) might be too high." +level: suggestion +grade: 13 +metrics: + - Flesch-Kincaid +# - Gunning Fog diff --git a/styles-vale/OutSystems/SentenceLength.yml b/styles-vale/OutSystems/SentenceLength.yml new file mode 100644 index 0000000..c9754c6 --- /dev/null +++ b/styles-vale/OutSystems/SentenceLength.yml @@ -0,0 +1,7 @@ +# Based on OpenStack.SentenceLength +message: "Write short sentences (less than 40 words)." +extends: occurrence +scope: sentence +level: suggestion +max: 40 +token: \b(\w+)\b