Skip to content

Commit

Permalink
Merge pull request #3 from keik/doc2
Browse files Browse the repository at this point in the history
📝 Update README.
  • Loading branch information
keik committed Sep 26, 2021
2 parents 67a5ce5 + 6102511 commit 66392b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
/Gemfile.local
/Gemfile.lock
/coverage
/pkg
/vendor
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ require: rubocop-dependency

## Cops

Dependency/OverBoundary
### Dependency/OverBoundary

Check not to refer constants over dependency boundaries which given from `Rules` config.

When the following `Rules` is given,

```
Rules: // Array of each rules
- BannedConsts: Foo // Array<String> | String. Ba
FromNamespacePatterns: // Array<String> | String. This value is used as Regexp pattern
```yaml
Rules: # Array of each rules
- BannedConsts: Foo # Array<String> | String.
FromNamespacePatterns: # Array<String> | String. This value is used as Regexp pattern.
- \ABar(\W|\z)
```

The following code is considered problems.

```
```ruby
class Bar
Foo
^^^ Const `Foo` cannot use from namespace `Bar`.
Expand Down

0 comments on commit 66392b1

Please sign in to comment.