Skip to content

Commit

Permalink
Add shadowing examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mszostok committed Apr 15, 2022
1 parent 42a602f commit 7964da3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@
* @mszostok

/some/awesome/dir @mszostok @gh-cOdeownErs/A-TeAm # This is a comment. @mszostok
/some/awesome/dir @gh-codeowners/Amigos

/some/other/maybe/awesome/file.txt @gh-codeowners/Amigos
/some/other/maybe/awesome/answer.txt @gh-codeowners/maniacs @gh-codeowners/a-team @gh-codeowners/all-stars

# Should match 'a/b', 'a/x/b', 'a/x/y/b' and so on
a/**/b @gh-codeowners/all-stars
# Should match all files inside directory 'a/somewhere'
a/somewhere/** @gh-codeowners/maniacs

*.md @ghost

# In this example, @ghost owns any file in the `/apps`
Expand Down
5 changes: 5 additions & 0 deletions a/somewhere/over/the/b/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package main

func main() {
print("hey!")
}

0 comments on commit 7964da3

Please sign in to comment.