Explorar o código

Updated rules and gitignore

Signed-off-by: chanmosq <[email protected]>
chanmosq %!s(int64=2) %!d(string=hai) anos
pai
achega
cf8bb80736

+ 1 - 1
tools/vale-prose-linter/.vale.ini

@@ -2,7 +2,7 @@ StylesPath = styles
 
 MinAlertLevel = suggestion
 
-Packages = RedHat, Hugo
+Packages = Hugo
 
 Vocab = O3DETerminology
 

+ 8 - 4
tools/vale-prose-linter/styles/O3DE/ExpandedAbbreviations.yml

@@ -1,8 +1,12 @@
-extends: existence
-message: If this is the first appearance of %s in this page, use it's expanded form. For example, 'Open 3D Engine (O3DE)'.
+---
+extends: substitution
+message: "Use expanded form %s, if this is the first appearance of %s in this page"
 level: warning
 ignorecase: false
-tokens:
-  - (?:[A-Z]){2,}
+swap:
+  - 'CLI': 'command-line interface (CLI)'
+  - 'LOD': 'level-of-detail (LOD)'
+  - 'TAA': 'temporal anti-aliasing (TAA)'
+  - '(?:[A-Z]){2,}': # Must be last, catches all abbreviations
 exceptions:
 # See O3DETerminology vocab for more exceptions.

+ 8 - 0
tools/vale-prose-linter/styles/O3DE/ReleaseNotes-ListStyle.yml

@@ -0,0 +1,8 @@
+---
+extends: substitution
+message: "Use %s instead of %s for release notes."
+level: warning
+ignorecase: false
+swap:
+
+exceptions:

+ 13 - 3
tools/vale-prose-linter/styles/O3DE/Spelling.yml

@@ -1,12 +1,22 @@
-#file: noinspection IncorrectFormatting
 ---
 extends: spelling
 level: warning
-link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/spelling/
+link: 
 message: "Use correct American English spelling. Did you really mean '%s'?"
 # source: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/spelling/
 # A "filter" is a case-sensitive regular expression specifying words to ignore during spell checking.
 # Spelling rule applies to individual words
 ignorecase: true
+#ignore: 
+  #- spelling.txt
 filters:
-- respawns
+- "bindless"
+- "rollout[s]?"
+- "shader[s]?"
+- "shader"
+- "shaders"
+- "viewport[s]?"
+- "respawn[s]?"
+- "mipmap[s]?"
+- "mip[s]?"
+- "respawns"

+ 3 - 0
tools/vale-prose-linter/styles/O3DE/spelling.txt

@@ -2,3 +2,6 @@ bindless
 rollout
 shaders
 viewport
+respawns
+mipmaps
+mips

+ 7 - 11
tools/vale-prose-linter/styles/Vocab/O3DETerminology/accept.txt

@@ -1,35 +1,30 @@
-[Bb]indless
-[Rr]ollout
-[Ss]haders?
-[Vv]iewport
-[Mm]ips?
-[Mm]ip [Mm]aps?
-
-
-[G]ems
 sig-*
 SIG 
 
 AnimGraph
 Asset Browser
+Asset Processor
 Atom Renderer
 Atom Sample Viewer
 Atom
 AZSL
 AZ
+Editor
+Gems
+Gem
 O3DE Documentation
 O3DE
 Entity Outliner
-Asset Processor
 Material Canvas
 Material Editor
+Viewport
 RHI
 RPI
 Test Impact Analysis Framework
 TIAF
-Editor
 
 FBX
+Python
 PySide
 Snap
 JSON
@@ -53,3 +48,4 @@ PC
 UI
 URL
 UX
+UUID