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
Linterを使って快適なチーム開発をしよう!
Search
akatsuki174
February 20, 2016
Technology
620
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Linterを使って快適なチーム開発をしよう!
Linterを使って快適なチーム開発をしよう!
akatsuki174
February 20, 2016
More Decks by akatsuki174
See All by akatsuki174
逆向きUIの世界 〜iOSアプリのRTL言語対応〜
akatsuki174
1
730
逆向きUIの世界〜AndroidアプリのRTL言語対応〜
akatsuki174
1
1.2k
私が変えてきたこと、変えなかったこと
akatsuki174
2
1.1k
最近読んでいる本-読書シェア会vol.1
akatsuki174
2
300
SwiftUI、UIKitでキャプチャを撮ろう!
akatsuki174
1
160
Appleにおけるプライバシーの全容を把握する
akatsuki174
0
6.4k
近年のAppleにおける位置情報とプライバシー
akatsuki174
3
530
オフライン勉強会ぼっち対策
akatsuki174
1
750
Xcode 15の新機能
akatsuki174
0
2.9k
Other Decks in Technology
See All in Technology
しろおびから始める!ログ活用の第一歩
shumei_ito
0
930
go-sqletch
moznion
0
140
分析AIエージェントを育てる、動く環境を育てる
codatum
1
1.1k
ai_cording_with_k8s_knowledge.pdf
mochizuki875
1
350
Deep Data Security 機能解説
oracle4engineer
PRO
2
800
Getting Started with Google Antigravity
glaforge
0
270
[JAWS-UG彩の国埼玉#12]そろそろ準備する?re:Invent2026をやさしく解説 / reinvent2026-sainokuni
sh_fk2
1
230
実践!Cloud Run ハンズオン!! / Cloud Run handson
y0hgi
2
260
パッチ更新でterraform initが落ちた日
grimoh
1
130
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
210
AI時代に必要な脅威モデリング― 変化の速度に負けない理解とリスク判断
masakane55
5
1.3k
AIカンパニーへの転換を支えた、エンジニアの仕事の再定義
kworkdev
PRO
2
840
Featured
See All Featured
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
520
The Cost Of JavaScript in 2023
addyosmani
55
10k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
520
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
360
Utilizing Notion as your number one productivity tool
mfonobong
4
620
Evolving SEO for Evolving Search Engines
ryanjones
0
320
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
The Limits of Empathy - UXLibs8
cassininazir
2
720
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
940
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Marketing to machines
jonoalderson
1
5.9k
Transcript
LinterΛͬͯ շదͳνʔϜ։ൃΛ͠Α͏ʂ @akatsuki174
ࣗݾհ • ιϑτΣΞձࣾΤϯδχΞ(2) άϩʔεϋοΧʔ → WebΤϯδχΞ → iOSΤϯδχΞ • Twitter,
Qiita, SlideShare, Github →akatsuki174
νʔϜͰͷ։ൃ ḿͬͯ·͔͢ʔʁʁ
νʔϜ։ൃͬͯେมͰ͢ΑͶ
ΈΜͳίʔυΛॻ͘ͱ͖ͷ Ϋηҧ͍·͢ɻ
A͞Μ B͞Μ
͋͋͋͋͋͋͋ʂʂʂ (ůʆ˚´)ů ᵢ:ŋ'∵:.ᵲᵲ:ŋ'.:∵
ͦΜͳ͋ͳͨʹ࿕ใʂ
ίʔυͷॻ͕ࣜҰఆͷϧʔϧ͔Β ֎Ε͍ͯͨ࣌ʹܯࠂɾΤϥʔΛ ग़ྗͯ͘͠ΔϥΠϒϥϦ͕͋Γ·͢ʂ
ͦΕ͕ɺ SwiftLintʂ
SwiftLintͱ “A tool to enforce Swift style and conventions, loosely
based on GitHub's Swift Style Guide.” https://github.com/realm/SwiftLintΑΓൈਮ →ίʔυ͕نଇʹଇͬͨͷʹ ɹͳ͍ͬͯΔ͔ΛνΣοΫͯ͘͠ΕΔπʔϧɻ
SwiftLintͱ
SwiftLintͱ
SwiftLintͱ
ಋೖྫ • HomebrewͰΠϯετʔϧ͢Δ • LintΛ࣮ߦ͢ΔϓϩδΣΫτʹRunScript Λॻ͘ • .swiftlint.ymlʹઃఆΛॻ͘ Ҏ্ʂʂʂ
.swiftlint.ymlهड़ྫ
ϧʔϧྫհ
todo TODO, FIXMEͳ͘͢ʂ
valid_docs υΩϡϝϯτਖ਼͘͠ॻ͖·͠ΐ͏
force_cast • ڧ੍castμϝɺઈର
force_try • ڧ੍tryμϝɺઈର
ΤϥʔϨϕϧͷΧελϚΠζ force_cast, force_tryΛ ΤϥʔͰͳ͘ܯࠂʹ͢Δ
file_length 401ʙ1000ߦ ʹ ܯࠂ 1001ߦҎ্ ʹ ϏϧυΤϥʔ
line_length 101ʙ200จࣈ ʹ ܯࠂ 201จࣈҎ্ ʹ ϏϧυΤϥʔ
ͷΧελϚΠζ ௐɺΤϥʔϨϕϧௐՄೳ
control_statement • ݅ΛғΉʮ( )ʯ֎͠·͠ΐ͏
ڧ͍ຯํɿautocorrect Ұ෦ͷϧʔϧ $ swiftlint autocorrect Λ࣮ߦ͢ΔͱࣗಈͰमਖ਼ͯ͘͠ΕΔʂ ͨͩ͠όοΫΞοϓऔ͓͖ͬͯ·͠ΐ͏ʂ
σϞ
Ҏ্ɻ ͜ΕͰ͋ͳͨͤʹͳΕ·͢ɻ
ͥͻSwiftLintΛ ಋೖͯ͠Έ͍ͯͩ͘͞ʂ
SwiftLintͷࢿྉ • ެࣜ https://github.com/realm/SwiftLint • ؤுͬͯॻ͍ͨࢲͷQiitaͷهࣄ http://qiita.com/search? utf8=✓&sort=rel&q=user %3Aakatsuki174+swiftlint etc…
͝੩ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠ʂ