Skip to content

Commit b58cf96

Browse files
authored
Merge pull request #74 from Vale-at-Red-Hat/themr0c-patch-1
2 parents d3a19b7 + f84c2ef commit b58cf96

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

modules/end-user-guide/partials/ref_defining-a-vale-onboarding-strategy.adoc

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,36 @@ Under 100 Vale errors::
2626
The project is almost compliant with the `RedHat` style. Consider integration with a continuous integration service using the defaults from the `{repository-name}` repository. Consider massively fixing the few errors.
2727

2828
Over 100 Vale errors::
29-
The project is big or poorly compliant with the `RedHat` style. Consider further investigation to understand the issue.
29+
The project is big or poorly compliant with the `RedHat` style. Consider further investigation to understand the issue.
30+
31+
== Start small
32+
33+
* To onboard a collection of repositories, start by the repository with the smallest word count. See xref:reporting-vale-alerts.adoc[]
34+
35+
== Focus on errors
36+
37+
* Report only *errors*. Don't report *warnings* and *suggestions*.
38+
+
39+
----
40+
$ vale --minAlertLevel=error .
41+
----
42+
43+
== Expect false positives
44+
45+
* The _RedHat_ style has been thoroughly tested on a corpus of 113000 words. You can expect false positives when applying the style to a new corpus. Consider xref:contributor-guide:contributing.adoc[] to the style.
46+
47+
== Collect data
48+
49+
* xref:reporting-vale-alerts.adoc[]
50+
51+
* Use the results to identify the rule creating the most errors, and work on that rule. Most probably, start with the Spelling rule.
52+
53+
* Report alerts for one single rule. Maybe use custom output templates to generate a custom report. See link:https://docs.errata.ai/vale/cli#--output[Vale documentation - `--output` template]. Consider aggregating alerts to identify the most common. Examine the report to distinguish legit alerts from false positives. Use the curated list of false positives to link:https://github.com/vale-at-red-hat/vale-at-red-hat/issues[report an issue].
54+
+
55+
====
56+
For example, for the Spelling rule, create a report containing the list of all words reported by the Spelling rule, and count their occurrences.
57+
Use that list to differentiate false positives from legit errors. Use the curated list to link:https://github.com/vale-at-red-hat/vale-at-red-hat/issues[report an issue].
58+
====
3059

3160
== Fix the alerts
3261

0 commit comments

Comments
 (0)