Logo
Explore Help
Register Sign In
ishangsf/rspec
2
0
Fork 0
You've already forked rspec
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
rspec/rules/S2122/kotlin/rule.adoc

15 lines
255 B
Plaintext
Raw Normal View History

Create rule S2122[Kotlin]: "ScheduledThreadPoolExecutor" should not have 0 core threads (#326) * Create rule S2122[Kotlin]: "ScheduledThreadPoolExecutor" should not have 0 core threads * Update rules/S2122/description.adoc Co-authored-by: margarita-nedzelska-sonarsource <70522623+margarita-nedzelska-sonarsource@users.noreply.github.com> Co-authored-by: margarita-nedzelska-sonarsource <70522623+margarita-nedzelska-sonarsource@users.noreply.github.com>
2021-09-14 12:31:55 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
fun do() {
val stpe1 = ScheduledThreadPoolExecutor(0) // Noncompliant
val stpe2 = ScheduledThreadPoolExecutor(POOL_SIZE)
stpe2.corePoolSize = 0 // Noncompliant
...
----
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 239ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API