Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Create a rule set for assembly specific rules #1

Open
rohennes opened this issue Sep 20, 2022 · 2 comments
Open

Create a rule set for assembly specific rules #1

rohennes opened this issue Sep 20, 2022 · 2 comments

Comments

@rohennes
Copy link
Owner

rohennes commented Sep 20, 2022

All the current rules apply to modules only, how can we create and apply rules to assemblies only.

@rohennes rohennes changed the title Separate out module specific rules from assembly specific rules Create a rule set for assembly specific rules Oct 19, 2022
@aireilly
Copy link
Collaborator

StylesPath = .vale/styles

MinAlertLevel = suggestion

Packages = RedHat, https://github.com/rohennes/vale-asciidoc/releases/latest/download/AsciiDoc.zip

[[!.]*.adoc]
BasedOnStyles = RedHat, AsciiDoc

AsciiDoc.RuleIDontWantInAssemblies = NO
AsciiDoc.SecondRuleIDontWantInAssemblies = NO

[*modules/*.adoc]
BasedOnStyles = RedHat, AsciiDoc

@aireilly
Copy link
Collaborator

aireilly commented Mar 9, 2023

for reference, this is the one folder, one vale.ini approach:

.vale.ini

StylesPath = .vale/styles

MinAlertLevel = suggestion

Packages = RedHat, AsciiDoc, OpenShiftAsciiDoc

OpenShiftAsciiDoc.RuleIDontWantInAssemblies = NO
OpenShiftAsciiDoc.SecondRuleIDontWantInAssemblies = NO

[[!.]*.adoc]
BasedOnStyles = RedHat

modules/.vale.ini

StylesPath = ../.vale/styles

MinAlertLevel = suggestion

[[!.]*.adoc]
BasedOnStyles = RedHat, AsciiDoc, OpenShiftAsciiDoc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants