Skip to content

ruleguard allows rules to be in any package #421

@tmzane

Description

@tmzane

I've noticed this restriction in the ruleguard docs:

Ruleguard rules file must start with package gorules; it can't be other package

However, my local copy works just fine with rules being in any package, with and without build tags:

// rules.go
package not_gorules // works just fine

Is it a bug or outdated docs?

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