Skip to content

Commit

Permalink
Update noncompliant code of ForbiddenMethodCall (#7297)
Browse files Browse the repository at this point in the history
* Update noncompliant code of ForbiddenMethodCall

* Update detekt-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/ForbiddenMethodCall.kt

Co-authored-by: Brais Gabín <braisgabin@gmail.com>

* Update website/versioned_docs/version-1.21.0/rules/style.md

Co-authored-by: Brais Gabín <braisgabin@gmail.com>

* Update website/versioned_docs/version-1.22.0/rules/style.md

Co-authored-by: Brais Gabín <braisgabin@gmail.com>

* Update website/versioned_docs/version-1.23.0/rules/style.md

Co-authored-by: Brais Gabín <braisgabin@gmail.com>

* Update website/versioned_docs/version-1.23.1/rules/style.md

Co-authored-by: Brais Gabín <braisgabin@gmail.com>

* Update website/versioned_docs/version-1.23.4/rules/style.md

Co-authored-by: Brais Gabín <braisgabin@gmail.com>

* Update website/versioned_docs/version-1.23.5/rules/style.md

Co-authored-by: Brais Gabín <braisgabin@gmail.com>

* Update website/versioned_docs/version-1.23.6/rules/style.md

Co-authored-by: Brais Gabín <braisgabin@gmail.com>

* Update website/versioned_docs/version-1.23.3/rules/style.md

Co-authored-by: Brais Gabín <braisgabin@gmail.com>

---------

Co-authored-by: Brais Gabín <braisgabin@gmail.com>
  • Loading branch information
baseballyama and BraisGabin committed May 19, 2024
1 parent 288c928 commit f92f8ab
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ import org.jetbrains.kotlin.resolve.descriptorUtil.overriddenTreeUniqueAsSequenc
* of unstable, experimental or deprecated methods, especially for methods imported from external libraries.
*
* <noncompliant>
* import java.lang.System
* fun main() {
* System.gc()
* System::gc
* println()
* val myPrintln : () -> Unit = ::println
* kotlin.io.print("Hello, World!")
* }
* </noncompliant>
*
Expand Down
5 changes: 3 additions & 2 deletions website/versioned_docs/version-1.21.0/rules/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,10 @@ Detekt will then report all method invocations that are forbidden.
#### Noncompliant Code:

```kotlin
import java.lang.System
fun main() {
System.gc()
println()
val myPrintln : () -> Unit = ::println
kotlin.io.print("Hello, World!")
}
```

Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-1.22.0/rules/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,10 @@ Detekt will then report all method or constructor invocations that are forbidden
#### Noncompliant Code:

```kotlin
import java.lang.System
fun main() {
System.gc()
System::gc
println()
val myPrintln : () -> Unit = ::println
kotlin.io.print("Hello, World!")
}
```

Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-1.23.0/rules/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -990,10 +990,10 @@ of unstable, experimental or deprecated methods, especially for methods imported
#### Noncompliant Code:

```kotlin
import java.lang.System
fun main() {
System.gc()
System::gc
println()
val myPrintln : () -> Unit = ::println
kotlin.io.print("Hello, World!")
}
```

Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-1.23.1/rules/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -990,10 +990,10 @@ of unstable, experimental or deprecated methods, especially for methods imported
#### Noncompliant Code:

```kotlin
import java.lang.System
fun main() {
System.gc()
System::gc
println()
val myPrintln : () -> Unit = ::println
kotlin.io.print("Hello, World!")
}
```

Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-1.23.3/rules/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -990,10 +990,10 @@ of unstable, experimental or deprecated methods, especially for methods imported
#### Noncompliant Code:

```kotlin
import java.lang.System
fun main() {
System.gc()
System::gc
println()
val myPrintln : () -> Unit = ::println
kotlin.io.print("Hello, World!")
}
```

Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-1.23.4/rules/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -990,10 +990,10 @@ of unstable, experimental or deprecated methods, especially for methods imported
#### Noncompliant Code:

```kotlin
import java.lang.System
fun main() {
System.gc()
System::gc
println()
val myPrintln : () -> Unit = ::println
kotlin.io.print("Hello, World!")
}
```

Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-1.23.5/rules/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -990,10 +990,10 @@ of unstable, experimental or deprecated methods, especially for methods imported
#### Noncompliant Code:

```kotlin
import java.lang.System
fun main() {
System.gc()
System::gc
println()
val myPrintln : () -> Unit = ::println
kotlin.io.print("Hello, World!")
}
```

Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-1.23.6/rules/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -990,10 +990,10 @@ of unstable, experimental or deprecated methods, especially for methods imported
#### Noncompliant Code:

```kotlin
import java.lang.System
fun main() {
System.gc()
System::gc
println()
val myPrintln : () -> Unit = ::println
kotlin.io.print("Hello, World!")
}
```

Expand Down

0 comments on commit f92f8ab

Please sign in to comment.