feat(rules): add no-hardcoded-tmp-prefix rule for daw-code pack #69
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type/architecture
type
bug
type
config
type
deployment
type
docs
type/documentation
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
type/task
type/tech-debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/fragjan#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Add rule to detect hardcoded project-specific prefixes in /tmp/ paths.
Common modules must use a neutral prefix like /tmp/daw_*.
Rule
no-hardcoded-tmp-prefix:
primitive: pattern
pattern: "/tmp/"
file_pattern: "*.lua"
severity: warn
message: "{file}: hardcoded /tmp/ path -- use neutral daw_ prefix"
Notes
Belongs in daw-code pack.
Found in: crypto.lua (steurjan_hash_ prefix), base64.lua.
Implemented: two rules added to daw-lua-code pack.
no-hardcoded-tmp-prefix: detects /tmp/ paths (2 hits in fragjan article.lua).
no-temp-dir-literal: detects .temp hardcoded directories (2 hits in daw-module-manager sig.lua and index.lua, covered by DAW/daw-module-manager#12).