-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
narrow scalafix selectors so they only operate on our code
- Loading branch information
Showing
3 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
scalafix/input/src/main/scala/example/ShouldBeIgnored.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package example | ||
/* | ||
rule = com.dwolla.security.crypto.V04to05 | ||
*/ | ||
trait Foo { | ||
def encrypt(request: Int): Unit | ||
} | ||
|
||
class ShouldBeIgnored(foo: Foo) { | ||
def go(): Unit = foo.encrypt(42) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package example | ||
|
||
trait Foo { | ||
def encrypt(request: Int): Unit | ||
} | ||
|
||
class ShouldBeIgnored(foo: Foo) { | ||
def go(): Unit = foo.encrypt(42) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters