-
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.
Merge pull request #241 from Dwolla/scalafixes
Narrow Scalafix selectors so they only operate on our code
- Loading branch information
Showing
6 changed files
with
143 additions
and
16 deletions.
There are no files selected for viewing
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
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
27 changes: 27 additions & 0 deletions
27
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,27 @@ | ||
package example | ||
/* | ||
rule = com.dwolla.security.crypto.V04to05 | ||
*/ | ||
trait Foo { | ||
def encrypt(key: String, request: Int): Unit | ||
def armor(): Unit | ||
def tagChunkSize(i: Int): Unit | ||
} | ||
|
||
class ShouldBeIgnored(foo: Foo) { | ||
import foo.* | ||
import Nested.* | ||
|
||
foo.armor() | ||
foo.encrypt("key", 42) | ||
foo.encrypt(key = "key", request = 42) | ||
tagChunkSize(42) | ||
|
||
CryptoAlg[Option] | ||
} | ||
|
||
object Nested { | ||
object CryptoAlg { | ||
def apply[F[_]]: Unit = ??? | ||
} | ||
} |
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
25 changes: 25 additions & 0 deletions
25
scalafix/output/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,25 @@ | ||
package example | ||
|
||
trait Foo { | ||
def encrypt(key: String, request: Int): Unit | ||
def armor(): Unit | ||
def tagChunkSize(i: Int): Unit | ||
} | ||
|
||
class ShouldBeIgnored(foo: Foo) { | ||
import foo.* | ||
import Nested.* | ||
|
||
foo.armor() | ||
foo.encrypt("key", 42) | ||
foo.encrypt(key = "key", request = 42) | ||
tagChunkSize(42) | ||
|
||
CryptoAlg[Option] | ||
} | ||
|
||
object Nested { | ||
object CryptoAlg { | ||
def apply[F[_]]: Unit = ??? | ||
} | ||
} |
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