Skip to content

Commit 47dfbfe

Browse files
committed
Use /tmp/ for temporary Vale config instead of .work/
Not all repos have .work/ gitignored, so using /tmp/ avoids accidentally committing temporary config files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
1 parent 595d9ed commit 47dfbfe

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.claude/
33
site/
44
.venv/
5+
.vale/
56
__pycache__/
67
*.pyc
78
.work/

plugins/vale-tools/skills/vale/SKILL.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ BasedOnStyles = RedHat
3939

4040
Do NOT create the file automatically, ask the user if they want to create it first.
4141

42-
If a temporary config is needed, create it in `.work/` (gitignored) and clean it up after linting:
42+
If a temporary config is needed, create it in `/tmp/` and clean it up after linting:
4343

4444
```bash
45-
mkdir -p .work
46-
cat <<'EOF' > .work/vale-temp.ini
45+
cat <<'EOF' > /tmp/vale-temp.ini
4746
StylesPath = .vale/styles
4847
MinAlertLevel = suggestion
4948
Packages = RedHat
@@ -56,7 +55,7 @@ BasedOnStyles = RedHat
5655
EOF
5756
```
5857

59-
Use `--config=.work/vale-temp.ini` when running Vale, and remove the temp config and `.work/.vale/` directory when done.
58+
Use `--config=/tmp/vale-temp.ini` when running Vale, and remove the temp config when done.
6059

6160
### Sync styles
6261

0 commit comments

Comments
 (0)