Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
detektを使用して循環的複雑度を計測する
Search
aAkiRa
July 27, 2023
Programming
2.7k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
detektを使用して循環的複雑度を計測する
aAkiRa
July 27, 2023
Other Decks in Programming
See All in Programming
Jetpack Compose Mechanisms
skydoves
3
820
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
260
AmebaブログはKMPから卒業します
kmars0605
0
200
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
780
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.5k
AWSに止められる覚悟してますか?
morizo_1984
2
540
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
6.7k
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
350
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
270
Featured
See All Featured
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
420
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
330
Building Adaptive Systems
keathley
44
3.3k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
280
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
600
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Agile that works and the tools we love
rasmusluckow
331
22k
How to Ace a Technical Interview
jacobian
280
24k
Transcript
potatotips # 8 3 iOS/Android Tips detekt
Android
detekt detekt
1 if for IUUQTKQNBUIXPSLTDPNEJTDPWFSZDZDMPNBUJDDPNQMFYJUZIUNM
IUUQTKQNBUIXPSLTDPNEJTDPWFSZDZDMPNBUJDDPNQMFYJUZIUNM
detekt
detekt Kotlin ktlint IUUQTEFUFLUEFWEPDTJOUSP
detekt Gradle detekt Con fi guration File
detekt Gradle detekt Con fi guration File
Detekt Gradle Plugin build.gradle plugins { id "io.gitlab.arturbosch.detekt" version “1.23.0"
} Groovy DSL ⾒
subprojects { apply plugin: “io.gitlab.arturbosch.detekt”. detekt { config.setFrom(file("$rootDir/config/detekt/detekt.yml")) buildUponDefaultConfig =
true ignoreFailures = true basePath = “$buildDir/reports/detekt" } } detekt detekt Groovy DSL ⾒ detekt con fi guration fi le con fi guration fi le build (build )
detekt Gradle detekt Con fi guration File
detekt Configuration File detekt YAML build: maxIssues: 100 excludeCorrectable: false
weights: # complexity: 2 # LongParameterList: 1 # style: 1 # comments: 1 config: validation: true warningsAsErrors: false checkExhaustiveness: false excludes: ‘' processors: active: true exclude: - ‘DetektProgressListener' # - ‘KtFileCountProcessor' # - ‘PackageCountProcessor' # - ‘ClassCountProcessor' # - ‘FunctionCountProcessor' # - ‘PropertyCountProcessor’. # - ‘ProjectComplexityProcessor' # - ‘ProjectLLOCProcessor' # - ‘ProjectCLOCProcessor' 800 ɾ ɾ ɾ
Rule Set detekt Configuration File Rule Set 12 Rule Set
Rule Con fi guration File
detekt Configuration File ./gradlew detektGenerateCon fi g buildUponDefaultConfig = true
build.gradle config.setFrom(file(“$rootDir/config/detekt/detekt.yml")) detekt {ɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹ config.setFrom(file(“$rootDir/config/detekt/detekt.yml”)) buildUponDefaultConfig = trueɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹ parallel = trueɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹ ignoreFailures = trueɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹ basePath = “$buildDir/reports/detekt"ɹɹɹɹɹɹɹɹɹɹɹɹ }ɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹ build.gradle
detekt ./gradlew detekt
Reporting
detekt detekt
None