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
XP祭りでしか伝わらないフリップネタ #xpjug
murabayashi
0
150
新卒PdEのリアル
ryu1013
1
510
App Intentsのビルドプロセスを支える技術
kntkymt
0
410
SREの越境 / SRE Collaboration
y0hgi
2
260
スマート反転とウェブアクセシビリティ
camiha
0
210
Jetpack Compose メカニズム
skydoves
0
450
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
270
Omarchy Tokyo やると聞いて UMPC 買ってセットアップしてきた
mtsmfm
0
150
Webの地図
yosuke_furukawa
PRO
6
4.7k
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
7.6k
The Rails Doctrine Decade
koic
2
170
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
4
2.9k
Featured
See All Featured
Music & Morning Musume
bryan
48
7.4k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
240
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
440
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
390
Embracing the Ebb and Flow
colly
88
5.2k
For a Future-Friendly Web
brad_frost
183
10k
So, you think you're a good person
axbom
PRO
2
2.2k
Navigating Team Friction
lara
192
16k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
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