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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
710
逆向き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
740
Xcode 15の新機能
akatsuki174
0
2.9k
Other Decks in Technology
See All in Technology
AIに任せた品質は、誰が見立てるのか - AI時代のテストマネジメント
nakanao
3
2.5k
.NET WebAssemblyで実現するクライアントサイドAI推論:NuGetからViteまで、2つのエコシステムを繋ぐビルド戦略
yamachu
0
270
C#未経験の僕がAIに読めるコードを書かせるまで
maguroalternative
0
120
SREは、MCPとAutopilotをこう使え!
kazumax55
3
910
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
12k
白金鉱業Meetup Vol.25 アウトカムが二値のデータに対するCausal Impact
brainpadpr
0
260
データ_AIの事業の勝敗をわけるもの
nek0128
1
470
AIによるクリエイティブ生成を行う上での試行錯誤
plaidtech
PRO
0
160
バイブコーディング時代のWebアプリ開発入門~Cloud Runで学ぶセキュアなビルドとデプロイ
waiwai2111
1
140
品質と信頼性を地続きにする
grimoh
2
830
越境するなら専門用語を使うな高校校歌 / If you wanna cross border, you shouldn't use jargon
vtryo
0
150
人間はどの意思決定を手放せるのか
kawasima
15
7.6k
Featured
See All Featured
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
540
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
Side Projects
sachag
456
43k
Building the Perfect Custom Keyboard
takai
2
880
WCS-LA-2024
lcolladotor
0
830
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
500
Claude Code のすすめ
schroneko
67
230k
HDC tutorial
michielstock
2
870
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
500
Done Done
chrislema
186
16k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
700
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…
͝੩ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠ʂ