From f6dfb90a0ff90c6338c6cd266e4eed9c644baaf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Olender?= <92638966+TC-MO@users.noreply.github.com> Date: Mon, 10 Aug 2026 16:11:05 +0200 Subject: [PATCH] chore: consume the apify/vale-rules package instead of local styles Pin v1.0.0 and remove the nine local Apify rules. vale sync replaces the whole directory, so the four synced dirs are gitignored and ImageAltText.yml is untracked rather than deleted. Add ApifyDocs to BasedOnStyles and rename Apify.H1 to ApifyDocs.H1, because four rules moved styles and Vale ignores an unknown override silently. Errors stay at 12 on the same lines across sources/platform and academy. Deferred: TechnologyNames misses the VSCode casing, and ActorCapitalization is a suggestion where Capitalization was an error. --- .github/styles/Apify/AdmonitionTitle.yml | 6 ----- .github/styles/Apify/Apify.yml | 24 -------------------- .github/styles/Apify/Capitalization.yml | 9 -------- .github/styles/Apify/H1.yml | 6 ----- .github/styles/Apify/HeadingGerund.yml | 28 ------------------------ .github/styles/Apify/ImageAltText.yml | 6 ----- .github/styles/Apify/Languages.yml | 17 -------------- .github/styles/Apify/SalesLanguage.yml | 15 ------------- .github/styles/Apify/UIVerbs.yml | 10 --------- .gitignore | 4 ++++ .vale.ini | 6 ++--- 11 files changed, 7 insertions(+), 124 deletions(-) delete mode 100644 .github/styles/Apify/AdmonitionTitle.yml delete mode 100644 .github/styles/Apify/Apify.yml delete mode 100644 .github/styles/Apify/Capitalization.yml delete mode 100644 .github/styles/Apify/H1.yml delete mode 100644 .github/styles/Apify/HeadingGerund.yml delete mode 100644 .github/styles/Apify/ImageAltText.yml delete mode 100644 .github/styles/Apify/Languages.yml delete mode 100644 .github/styles/Apify/SalesLanguage.yml delete mode 100644 .github/styles/Apify/UIVerbs.yml diff --git a/.github/styles/Apify/AdmonitionTitle.yml b/.github/styles/Apify/AdmonitionTitle.yml deleted file mode 100644 index 3fb4503df1..0000000000 --- a/.github/styles/Apify/AdmonitionTitle.yml +++ /dev/null @@ -1,6 +0,0 @@ -extends: existence -message: "Admonitions must have titles (e.g., ':::note My title')." -level: error -scope: raw -raw: - - ":::(note|tip|info|caution|danger)\\s*\\n" diff --git a/.github/styles/Apify/Apify.yml b/.github/styles/Apify/Apify.yml deleted file mode 100644 index 12077e4473..0000000000 --- a/.github/styles/Apify/Apify.yml +++ /dev/null @@ -1,24 +0,0 @@ -extends: substitution -message: "Use '%s' instead of '%s'." -ignorecase: true -level: warning -scope: text -swap: - # Product name changes - 'apify dashboard': Apify Console - 'apify console': Apify Console - 'apify store': Apify Store - 'the apify console': Apify Console - 'the apify store': Apify Store - - # Capitalization fixes - 'apify freelancers': Apify freelancers - 'apify platform': Apify platform - - # Proxy variations (simplified) - 'apify proxy': Apify Proxy - 'the apify proxy': Apify Proxy - - # Common abbreviations - circa: approx. - 'ca\.': circa diff --git a/.github/styles/Apify/Capitalization.yml b/.github/styles/Apify/Capitalization.yml deleted file mode 100644 index f128166a09..0000000000 --- a/.github/styles/Apify/Capitalization.yml +++ /dev/null @@ -1,9 +0,0 @@ -extends: substitution -message: "Use '%s' instead of '%s'." -ignorecase: false -level: error -nonword: true -scope: text,~alt,~code -swap: - '\bactor\b': Actor - '\bactors\b': Actors diff --git a/.github/styles/Apify/H1.yml b/.github/styles/Apify/H1.yml deleted file mode 100644 index bc324783c6..0000000000 --- a/.github/styles/Apify/H1.yml +++ /dev/null @@ -1,6 +0,0 @@ -extends: existence -message: 'Do not use H1 headings (#). The main title is generated automatically. Please use H2 (##) or lower.' -level: error -scope: heading.h1 -tokens: - - '.+' diff --git a/.github/styles/Apify/HeadingGerund.yml b/.github/styles/Apify/HeadingGerund.yml deleted file mode 100644 index 8e66b7e769..0000000000 --- a/.github/styles/Apify/HeadingGerund.yml +++ /dev/null @@ -1,28 +0,0 @@ -extends: existence -message: "Avoid gerunds (-ing) in headings. Use noun phrases or imperatives." -level: warning -scope: heading -tokens: - - '^\w+ing\b' -exceptions: - - Billing - - Pricing - - Debugging - - String - - Caching - - Logging - - Troubleshooting - - Missing - - Polling - - Timing - - Marketing - - Existing - - Pending - - Underlying - - Remaining - - Corresponding - - Incoming - - Outgoing - - Resulting - - Leading - - Following diff --git a/.github/styles/Apify/ImageAltText.yml b/.github/styles/Apify/ImageAltText.yml deleted file mode 100644 index 634885274f..0000000000 --- a/.github/styles/Apify/ImageAltText.yml +++ /dev/null @@ -1,6 +0,0 @@ -extends: existence -message: "Images must include meaningful alt text." -level: error -scope: raw -raw: - - '!\[\]\(' diff --git a/.github/styles/Apify/Languages.yml b/.github/styles/Apify/Languages.yml deleted file mode 100644 index d0d4bf5dc6..0000000000 --- a/.github/styles/Apify/Languages.yml +++ /dev/null @@ -1,17 +0,0 @@ -extends: substitution -message: "Use '%s' instead of '%s'." -ignorecase: false -level: warning -swap: - 'javascript|Javascript|javaScript': JavaScript - '(?]*>), ([^\n]+@[^\n]+\.[^\n]), ({[^}]*}) @@ -29,7 +29,7 @@ Microsoft.URLFormat = NO Microsoft.GeneralURL = NO [{README.md,CONTRIBUTING.md}] -Apify.H1 = NO +ApifyDocs.H1 = NO [.claude/**/*.md] # Ignore all Vale checks in .claude directory (infrastructure docs)