feat(pack): new daw-project pack for project structure compliance #16

Closed
opened 2026-05-19 16:17:05 +02:00 by michael · 1 comment
Owner

Goal

A new rule pack for DAW project structure compliance.
Checks that all DAW projects follow daw-project-standard.md.

Planned Rules

exists (target_type: project)

Mandatory files for all DAW projects:

  • LICENSE
  • Makefile
  • README.md
  • .gitignore
  • VERSION
  • .merkwerk
  • .fragjan
  • .version_history

pattern (target_type: project, via new contains primitive)

.gitignore must NOT contain:

  • .merkwerk
  • .version_history

.gitignore must contain:

  • .env
  • .temp/
  • dist/
  • tools/
  • lib/

pattern (file Rules)

  • no-silent-fallback: or {} after function call -- silent fallback forbidden
  • no-old-module-load: require("modules. -- old loading pattern

New Primitives Needed

  • daw.fragjan.check.contains: check if a specific file contains
    or does not contain a given pattern (project-level, not file-scan)
    params: path, pattern, expected: true|false

Notes

Pack ID: daw-project
Runs alongside daw-code -- both listed in .fragjan [check] packs.
Multiple pack support in runner is a separate issue (DAW/fragjan#15 area).

## Goal A new rule pack for DAW project structure compliance. Checks that all DAW projects follow daw-project-standard.md. ## Planned Rules ### exists (target_type: project) Mandatory files for all DAW projects: - LICENSE - Makefile - README.md - .gitignore - VERSION - .merkwerk - .fragjan - .version_history ### pattern (target_type: project, via new contains primitive) .gitignore must NOT contain: - .merkwerk - .version_history .gitignore must contain: - .env - .temp/ - dist/ - tools/ - lib/ ### pattern (file Rules) - no-silent-fallback: `or {}` after function call -- silent fallback forbidden - no-old-module-load: `require("modules.` -- old loading pattern ## New Primitives Needed - daw.fragjan.check.contains: check if a specific file contains or does not contain a given pattern (project-level, not file-scan) params: path, pattern, expected: true|false ## Notes Pack ID: daw-project Runs alongside daw-code -- both listed in .fragjan [check] packs. Multiple pack support in runner is a separate issue (DAW/fragjan#15 area). ## Related - daw-project-standard.md v1.5 - DAW/fragjan#14: target_type: project - DAW/fragjan#15: exclude_rules in .fragjan
Author
Owner

Done

All planned rules implemented. Pack split across daw-project and daw-code
as implemented.

  • daw.fragjan.check.contains primitive added
  • daw-project pack created with all exists and gitignore rules
  • no-silent-fallback and no-old-module-load in daw-code pack
  • Extended further in DAW/fragjan#28 (additional rules from standards)
## Done All planned rules implemented. Pack split across daw-project and daw-code as implemented. - daw.fragjan.check.contains primitive added - daw-project pack created with all exists and gitignore rules - no-silent-fallback and no-old-module-load in daw-code pack - Extended further in DAW/fragjan#28 (additional rules from standards)
michael 2026-05-26 10:47:26 +02:00
michael added this to the Basic Version milestone 2026-05-30 16:05:10 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/fragjan#16
No description provided.