-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SONARKT-301 stop raising issues on abstract/overrided/open/interface …
…methods (#395)
- Loading branch information
1 parent
3e82ecd
commit 95556b3
Showing
7 changed files
with
117 additions
and
8 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...src/main/files/non-compiling/checks/CollectionShouldBeImmutableCheckSampleNonCompiling.kt
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,12 @@ | ||
package checks | ||
|
||
class CollectionShouldBeImmutableCheckSampleNonCompiling { | ||
|
||
actual fun actualFun(list: MutableList<Int>): Unit // compliant | ||
expect fun expectFun(list: MutableList<Int>): Unit // compliant | ||
|
||
fun qualifiedStrange() { | ||
val list = mutableListOf<Int>() | ||
list.(add(1)) | ||
} | ||
} |
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
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
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