Skip to content

Bug: .rulesync/.aiignore is incorrectly ignored in generated .gitignore #1459

@flanny7

Description

@flanny7

Thank you for maintaining rulesync.

I found a bug where .rulesync/.aiignore is incorrectly ignored in the .gitignore file generated by the rulesync gitignore command.

As shown below, !.rulesync/.aiignore is defined first, followed later by **/.aiignore. Because of this ordering, the negation !.rulesync/.aiignore has no effect.

# Generated by Rulesync
.rulesync/skills/.curated/
.rulesync/rules/*.local.md
rulesync.local.jsonc
!.rulesync/.aiignore
# ... omitted ...
**/.aiignore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions