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
630
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
750
逆向きUIの世界〜AndroidアプリのRTL言語対応〜
akatsuki174
1
1.3k
私が変えてきたこと、変えなかったこと
akatsuki174
2
1.1k
最近読んでいる本-読書シェア会vol.1
akatsuki174
2
310
SwiftUI、UIKitでキャプチャを撮ろう!
akatsuki174
1
170
Appleにおけるプライバシーの全容を把握する
akatsuki174
0
6.4k
近年のAppleにおける位置情報とプライバシー
akatsuki174
3
540
オフライン勉強会ぼっち対策
akatsuki174
1
760
Xcode 15の新機能
akatsuki174
0
3k
Other Decks in Technology
See All in Technology
バックオフィスに染み出すTypeScript ── clasp で安全に仕組みを作る
nealle
1
180
You Have Agency(サンキュー、Ruby)
snoozer05
PRO
5
680
re:Invent2026 事前勉強会 歴史と愉しみ方10分LT編
toshi_atsumi
0
120
Jev の中身は50行で再現できる。でも本物との差はどこにあるのか
hisuzuya
0
300
Active Directory と Entra ID のむむむな関係
murachiakira
PRO
2
1.2k
あなたのDartコードは丸見えかもしれない ~reFlutterで暴くFlutterアプリの中身と多層防御~
zozotech
PRO
0
770
分析作業をどこまで任せるか自分で決められる AIネイティブBI『Golden Analytics』が 良さげな話 /golden-analytics-is-ai-native-bi
shinyaa31
0
120
Microsoft Entra Kerberos で実現するクラウド デバイス管理
tamaiyutaro
1
350
AIエージェントの監視、思考を見るか行動を見るか / Monitoring AI Agents: Thoughts or Actions
yusukeshimizu
1
130
AIエージェント時代、Kaggleにどう取り組むか
takanao
2
500
生き様としてのSRE
hokkai7go
1
170
IBC 2026 動画技術関連レポート / IBC 2026 Report
cyberagentdevelopers
PRO
2
330
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
234
19k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
450
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
470
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.5k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
380
A Tale of Four Properties
chriscoyier
163
24k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
680
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
660
Chasing Engaging Ingredients in Design
codingconduct
0
390
Side Projects
sachag
456
43k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
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…
͝੩ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠ʂ