feat(rules): add missing gitignore rules to daw-project, daw-module, daw-lib packs #28

Closed
opened 2026-05-25 10:06:26 +02:00 by michael · 5 comments
Owner

Problem

Several entries required by daw-project-standard.md are not yet enforced
by any fragjan rule. Affects daw-project, daw-module, and daw-lib packs.

Missing rules by pack

daw-project (lua-host):

  • gitignore-has-build: build/ gitignored
  • gitignore-has-modules: modules/ gitignored
  • gitignore-has-docs-modules: docs/modules/ gitignored
  • gitignore-has-makeissue: makeissue.sh gitignored
  • gitignore-has-issue-files: issue-*.md gitignored (literal string)
  • gitignore-has-session-context: session-context.md gitignored

daw-module (lua-module-pkg):

  • gitignore-has-makeissue
  • gitignore-has-issue-files
  • gitignore-has-session-context

daw-lib:

  • gitignore-has-makeissue
  • gitignore-has-issue-files
  • gitignore-has-session-context

All rules use daw.fragjan.check.contains primitive on .gitignore.
Note: issue-.md is searched as the literal string "issue-.md".

Acceptance criteria

  • All rules above implemented as YAML in respective pack directories
  • pack.yaml requires updated where needed
  • fragjan check passes on fragjan itself with these rules active

Notes

The missing .env entry in a recent primitive repo (caught manually)
is exactly the class of error these rules should catch automatically.
Common entries (makeissue, issue-files, session-context) appear in all
three packs -- rule files will be identical, no shared-rule mechanism exists yet.

  • DAW/fragjan#15 (exclude_rules -- for projects with legitimate exceptions)
## Problem Several entries required by daw-project-standard.md are not yet enforced by any fragjan rule. Affects daw-project, daw-module, and daw-lib packs. ## Missing rules by pack **daw-project** (lua-host): - gitignore-has-build: build/ gitignored - gitignore-has-modules: modules/ gitignored - gitignore-has-docs-modules: docs/modules/ gitignored - gitignore-has-makeissue: makeissue.sh gitignored - gitignore-has-issue-files: issue-*.md gitignored (literal string) - gitignore-has-session-context: session-context.md gitignored **daw-module** (lua-module-pkg): - gitignore-has-makeissue - gitignore-has-issue-files - gitignore-has-session-context **daw-lib**: - gitignore-has-makeissue - gitignore-has-issue-files - gitignore-has-session-context All rules use daw.fragjan.check.contains primitive on .gitignore. Note: issue-*.md is searched as the literal string "issue-*.md". ## Acceptance criteria - [ ] All rules above implemented as YAML in respective pack directories - [ ] pack.yaml requires updated where needed - [ ] fragjan check passes on fragjan itself with these rules active ## Notes The missing .env entry in a recent primitive repo (caught manually) is exactly the class of error these rules should catch automatically. Common entries (makeissue, issue-files, session-context) appear in all three packs -- rule files will be identical, no shared-rule mechanism exists yet. ## Related - DAW/fragjan#15 (exclude_rules -- for projects with legitimate exceptions)
Author
Owner

Additional rules from meta-lua-project-standards.md

daw-project:

  • gitignore-has-local-mk: config/local.mk gitignored (contains)
  • gitignore-has-var: var/ gitignored (contains)
  • var-dir-exists: var/ directory exists (exists, type: dir)

daw-project, daw-module, daw-lib:

  • helpers-lua-exists: test/helpers.lua exists (exists, type: file)
  • makefile-has-lua-mk: Makefile contains lua.mk (contains)

daw-code:

  • test-has-package-path: test/*.lua contains package.path (pattern)

Related: meta-lua-project-standards.md section Tests + Makefile

## Additional rules from meta-lua-project-standards.md **daw-project:** - gitignore-has-local-mk: config/local.mk gitignored (contains) - gitignore-has-var: var/ gitignored (contains) - var-dir-exists: var/ directory exists (exists, type: dir) **daw-project, daw-module, daw-lib:** - helpers-lua-exists: test/helpers.lua exists (exists, type: file) - makefile-has-lua-mk: Makefile contains lua.mk (contains) **daw-code:** - test-has-package-path: test/*.lua contains package.path (pattern) Related: meta-lua-project-standards.md section Tests + Makefile
Author
Owner

Additional rules from daw-module-standard.md

daw-module:

  • module-conf-has-lua-require: config/module.conf contains 'require = daw.' (contains)
    -- without this entry the module is not found by the host
  • makefile-has-release: Makefile contains 'release:' (contains)
  • gitignore-has-dist: dist/ gitignored (contains) -- missing in daw-module, exists in daw-project only

Related: daw-module-standard.md section module.conf + Packaging

## Additional rules from daw-module-standard.md **daw-module:** - module-conf-has-lua-require: config/module.conf contains 'require = daw.' (contains) -- without this entry the module is not found by the host - makefile-has-release: Makefile contains 'release:' (contains) - gitignore-has-dist: dist/ gitignored (contains) -- missing in daw-module, exists in daw-project only Related: daw-module-standard.md section module.conf + Packaging
Author
Owner

Additional rules from daw-config-standard.md

daw-project:

  • gitignore-has-config-conf: .gitignore contains 'config/*.conf' (contains)
  • merkwerk-example-exists: .merkwerk.example exists (exists, type: file)

Related: daw-config-standard.md section .gitignore

## Additional rules from daw-config-standard.md **daw-project:** - gitignore-has-config-conf: .gitignore contains 'config/*.conf' (contains) - merkwerk-example-exists: .merkwerk.example exists (exists, type: file) Related: daw-config-standard.md section .gitignore
Author
Owner

Additional rules from daw-test-standard.md

daw-code:

  • test-has-summarize: test/*.lua contains 'helpers.summarize' (pattern)

Related: daw-test-standard.md section helpers.lua

## Additional rules from daw-test-standard.md **daw-code:** - test-has-summarize: test/*.lua contains 'helpers.summarize' (pattern) Related: daw-test-standard.md section helpers.lua
Author
Owner

Done

  • New pack daw-common added (applies_to: lua-host, lua-module, lua-lib)
  • Moved gitignore-has-lib, gitignore-has-tools to daw-common
  • New common rules: gitignore-has-makeissue, gitignore-has-issue-files,
    gitignore-has-session-context, helpers-lua-exists, makefile-has-lua-mk
  • daw-project: added gitignore-has-build, gitignore-has-modules,
    gitignore-has-local-mk, gitignore-has-var, gitignore-has-config-conf,
    var-dir-exists
  • daw-module: added module-conf-has-lua-require, makefile-has-release,
    gitignore-has-dist
  • Removed duplicates from daw-lib and daw-module

Blocked / follow-up

  • test-has-package-path, test-has-summarize: blocked on DAW/fragjan#81
  • merkwerk-config-exists (either logic): blocked on DAW/fragjan#80
  • gitignore-has-docs-modules removed (docs/modules/ no longer used)
## Done - New pack daw-common added (applies_to: lua-host, lua-module, lua-lib) - Moved gitignore-has-lib, gitignore-has-tools to daw-common - New common rules: gitignore-has-makeissue, gitignore-has-issue-files, gitignore-has-session-context, helpers-lua-exists, makefile-has-lua-mk - daw-project: added gitignore-has-build, gitignore-has-modules, gitignore-has-local-mk, gitignore-has-var, gitignore-has-config-conf, var-dir-exists - daw-module: added module-conf-has-lua-require, makefile-has-release, gitignore-has-dist - Removed duplicates from daw-lib and daw-module ## Blocked / follow-up - test-has-package-path, test-has-summarize: blocked on DAW/fragjan#81 - merkwerk-config-exists (either logic): blocked on DAW/fragjan#80 - gitignore-has-docs-modules removed (docs/modules/ no longer used)
michael 2026-05-26 10:43:37 +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#28
No description provided.