rules: detect reimplementations of daw.common functions #77
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#77
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 rules that detect raw reimplementations of functionality
already provided by daw.common.
Background
During code review of daw-module-manager,
verify.luareimplementedsha256 OS-detection via
io.popen("sha256sum ...")instead of usingdaw.common.crypto.hash_file(). fragjan should catch this.Approach
Pattern rules that match known reimplementation signatures and
suggest the correct daw.common alternative.
Rules to add (candidate pack: daw-code or daw-module)
no-raw-sha256-popen: patternio.popen.*sha256->use daw.common.crypto.hash_file
no-raw-base64-impl: patternlocal.*base64in non-common files ->use daw.common.base64
no-raw-uuid-impl: patternmath.random.*uuidor similar ->use daw.common.uuid
Acceptance Criteria
Notes
This is a manual curated list -- grows as new patterns are discovered
during code review. Automatic function detection tracked separately.
All three rules implemented:
Tested against core/test-reimpl.lua.