BytecodeAgency/import-boundary-checker

View on GitHub
.importrules

Summary

Maintainability
Test Coverage
LANG "Go";
IMPORTBASE "github.com/BytecodeAgency/import-boundary-checker";

IMPORTRULE "[IMPORTBASE]"
CANNOTIMPORT "[IMPORTBASE]"
ALLOW
    "[IMPORTBASE]/logging"
    "[IMPORTBASE]/runner";


IMPORTRULE "[IMPORTBASE]/lexer"
CANNOTIMPORT
    "[IMPORTBASE]/logging"
ALLOW
    "[IMPORTBASE]/token"
    "[IMPORTBASE]/keyword";

IMPORTRULE "[IMPORTBASE]/parser"
CANNOTIMPORT
    "[IMPORTBASE]/logging"
    "[IMPORTBASE]/runner"
ALLOW
    "[IMPORTBASE]/token"
    "[IMPORTBASE]/keyword"
    "[IMPORTBASE]/lexer";

IMPORTRULE "[IMPORTBASE]/langs"
CANNOTIMPORT
        "[IMPORTBASE]/langs"
        "[IMPORTBASE]/parser"
        "[IMPORTBASE]/lexer"
        "[IMPORTBASE]/examples"
        "[IMPORTBASE]/filefinder"
        "[IMPORTBASE]/rulechecker"
        "[IMPORTBASE]/logging"
        "[IMPORTBASE]/runner";

IMPORTRULE "[IMPORTBASE]/keyword"
CANNOTIMPORT
        "[IMPORTBASE]/logging"
        "[IMPORTBASE]/runner";

IMPORTRULE "[IMPORTBASE]/filefinder"
CANNOTIMPORT
        "[IMPORTBASE]/logging"
        "[IMPORTBASE]/runner";

IMPORTRULE "[IMPORTBASE]/rulechecker"
CANNOTIMPORT
        "[IMPORTBASE]/logging"
        "[IMPORTBASE]/runner"
ALLOW
        "[IMPORTBASE]/parser";

IMPORTRULE "[IMPORTBASE]/token"
CANNOTIMPORT
        "[IMPORTBASE]/langs"
        "[IMPORTBASE]/parser"
        "[IMPORTBASE]/lexer"
        "[IMPORTBASE]/examples"
        "[IMPORTBASE]/filefinder"
        "[IMPORTBASE]/rulechecker"
        "[IMPORTBASE]/logging"
        "[IMPORTBASE]/runner";

IMPORTRULE "[IMPORTBASE]/logging"
CANNOTIMPORT
        "[IMPORTBASE]/logging"
        "[IMPORTBASE]/runner"
ALLOW
        "[IMPORTBASE]/rulechecker"
        "[IMPORTBASE]/parser";

IMPORTRULE "[IMPORTBASE]/runner"
ALLOW
        "[IMPORTBASE]/parser"
        "[IMPORTBASE]/checker"
        "[IMPORTBASE]/filefinder"
        "[IMPORTBASE]/langs"
        "[IMPORTBASE]/lexer"
        "[IMPORTBASE]/rulechecker";


IMPORTRULE "[IMPORTBASE]/examples/go-invalid-1"
ALLOW "[IMPORTBASE]/examples/go-invalid-1";

IMPORTRULE "[IMPORTBASE]/examples/go-invalid-2"
ALLOW "[IMPORTBASE]/examples/go-invalid-2";

IMPORTRULE "[IMPORTBASE]/examples/go-invalid-3"
ALLOW "[IMPORTBASE]/examples/go-invalid-3";

IMPORTRULE "[IMPORTBASE]/examples/go-invalid-4"
ALLOW "[IMPORTBASE]/examples/go-invalid-4";

IMPORTRULE "[IMPORTBASE]/examples/go-invalid-5"
ALLOW "[IMPORTBASE]/examples/go-invalid-5";

IMPORTRULE "[IMPORTBASE]/examples/go-valid-1"
ALLOW "[IMPORTBASE]/examples/go-valid-1";

IMPORTRULE "[IMPORTBASE]/examples/go-valid-2"
ALLOW "[IMPORTBASE]/examples/go-valid-2";

IMPORTRULE "[IMPORTBASE]/examples/go-valid-3"
ALLOW "[IMPORTBASE]/examples/go-valid-3";