Skip to content

Commit

Permalink
adds default project policy file
Browse files Browse the repository at this point in the history
  • Loading branch information
chavacava committed Jan 15, 2022
1 parent d7a4ed0 commit 9d3cee1
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions dfence.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"components":{
"cli":"#dfence/cmd.*",
"main":"#dfence$",
"internal":"dfence/internal",
"vendored":"github.com",
"golang":"golang.org"
},
"constraints":[
{
"name":"internal -x-> cli",
"scope":"internal",
"kind":"forbid",
"deps":"cli",
"onbreak":"error"
},
{
"name":"cli depends only with internal, vendored or golang",
"scope":"cli",
"kind":"allow",
"deps":"internal vendored golang",
"onbreak":"error"
},
{
"name":"main only depends on cli",
"scope":"main",
"kind":"allow",
"deps":"cli",
"onbreak":"error"
}
]
}

0 comments on commit 9d3cee1

Please sign in to comment.