From ac82ac1c831efcadf7e71ca909df7b155e9d1f65 Mon Sep 17 00:00:00 2001 From: wmat Date: Mon, 16 Jun 2025 10:23:54 -0400 Subject: [PATCH 1/4] Add newline at end of file for precommit to finish Precommit requires a newline at the end of file. Removed an extraneous space as well. --- .github/workflows/vale-linting.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vale-linting.yml b/.github/workflows/vale-linting.yml index 9111e19..de7d042 100644 --- a/.github/workflows/vale-linting.yml +++ b/.github/workflows/vale-linting.yml @@ -1,5 +1,5 @@ name: Linting with Vale using Reusable Config -on: +on: push: branches: [main] pull_request: @@ -7,4 +7,4 @@ on: jobs: call-reusable-vale-workflow-in-riscv-vale-repo: - uses: riscv-admin/riscv-vale/.github/workflows/vale-reusable.yml@main \ No newline at end of file + uses: riscv-admin/riscv-vale/.github/workflows/vale-reusable.yml@main From ddeabb409e630001cb07c14f2e8869030d3102ec Mon Sep 17 00:00:00 2001 From: wmat Date: Mon, 16 Jun 2025 10:29:20 -0400 Subject: [PATCH 2/4] Add newline that pre-commit requires --- .github/workflows/vale-linting.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vale-linting.yml b/.github/workflows/vale-linting.yml index de7d042..9362f65 100644 --- a/.github/workflows/vale-linting.yml +++ b/.github/workflows/vale-linting.yml @@ -7,4 +7,5 @@ on: jobs: call-reusable-vale-workflow-in-riscv-vale-repo: - uses: riscv-admin/riscv-vale/.github/workflows/vale-reusable.yml@main + uses: riscv-admin/riscv-vale/.github/workflows/vale-reusable.yml@maina + From 66a4bd184dc685f036d90630ccd6d732516c2f54 Mon Sep 17 00:00:00 2001 From: wmat Date: Mon, 16 Jun 2025 10:34:36 -0400 Subject: [PATCH 3/4] Set to run with Vale rules --- .vale.ini | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.vale.ini b/.vale.ini index e69de29..967f19f 100644 --- a/.vale.ini +++ b/.vale.ini @@ -0,0 +1,35 @@ +StylesPath = .github/styles +minAlertLevel = suggestion + +IgnoredScopes = code, tt, img, url, a, body.id + +SkippedScopes = script, style, pre, figure, code, tt, blockquote, listingblock, literalblock + +Packages = RedHat, AsciiDoc, https://github.com/riscv-admin/riscv-vale/releases/latest/download/riscv.zip, https://github.com/riscv-admin/riscv-vale/releases/latest/download/config.zip +Vocab = riscv-vocab + +[*.adoc] +BasedOnStyles = riscv +#BasedOnStyles = Vale, RedHat, riscv, AsciiDoc + +#[*.md] +#BasedOnStyles = Vale, RISCV-Vale, AsciiDoc + +# Ignore code surrounded by backticks or plus sign, parameters defaults, URLs. +TokenIgnores = (\x60[^\n\x60]+\x60), ([^\n]+=[^\n]*), (\+[^\n]+\+), (http[^\n]+\[) + +# Match INI files. See: https://docs.errata.ai/vale/scoping +#[*.ini] +#BasedOnStyles = Vale, RISCV-Vale + +# Disabling rules (NO) +#RedHat.CaseSensitiveTerms = NO +#RedHat.ConfigMap = NO +#RedHat.Definitions = NO +#RedHat.Slash = NO +#RedHat.Spacing = NO +#RedHat.Spelling = NO +#RedHat.TermsSuggestions = NO + +#with: +# files: src/*.adoc \ No newline at end of file From 06307e28417f5f4fe7ac8873ee124078538b6518 Mon Sep 17 00:00:00 2001 From: wmat Date: Mon, 16 Jun 2025 11:08:42 -0400 Subject: [PATCH 4/4] Fix url to reusable workflow. --- .github/workflows/vale-linting.yml | 14 +++++++------- .vale.ini | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/vale-linting.yml b/.github/workflows/vale-linting.yml index 9362f65..08cd975 100644 --- a/.github/workflows/vale-linting.yml +++ b/.github/workflows/vale-linting.yml @@ -1,11 +1,11 @@ +--- name: Linting with Vale using Reusable Config on: - push: - branches: [main] - pull_request: - branches: [main] + push: + branches: [main] + pull_request: + branches: [main] jobs: - call-reusable-vale-workflow-in-riscv-vale-repo: - uses: riscv-admin/riscv-vale/.github/workflows/vale-reusable.yml@maina - + call-reusable-vale-workflow-in-riscv-vale-repo: + uses: riscv-admin/riscv-vale/.github/workflows/vale-reusable.yml@main diff --git a/.vale.ini b/.vale.ini index 967f19f..1911362 100644 --- a/.vale.ini +++ b/.vale.ini @@ -32,4 +32,4 @@ TokenIgnores = (\x60[^\n\x60]+\x60), ([^\n]+=[^\n]*), (\+[^\n]+\+), (http[^\n]+\ #RedHat.TermsSuggestions = NO #with: -# files: src/*.adoc \ No newline at end of file +# files: src/*.adoc