Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
ミススペルを発見するmisspellのご紹介 / Introduce misspell
papix
PRO
January 19, 2021
Technology
0
660
ミススペルを発見するmisspellのご紹介 / Introduce misspell
papix
PRO
January 19, 2021
Tweet
Share
More Decks by papix
See All by papix
2022年に始めるPerlでWebサービス開発(趣味)
papix
PRO
0
84
ワーケーションに関する考察
papix
PRO
3
1.5k
(今更)Amplifyさっくり体験
papix
PRO
0
730
はてなにおけるGitHub Actions活用事例 / GitHub Actions in Hatena
papix
PRO
0
1k
「知らなかった」を聞きに行く 〜海外カンファレンス参加のススメ〜 / builderscon 2019
papix
PRO
0
240
Perl in Japan
papix
PRO
0
2k
Perlでもトレーシングがしたい! 〜はてなブログの"見える化"への挑戦〜 / Tracing in Perl
papix
PRO
1
1k
1on1をするときに考えていること / 1on1
papix
PRO
0
990
PerlとJSON / Perl and JSON
papix
PRO
1
370
Other Decks in Technology
See All in Technology
越境チャレンジの現在地 〜Epic大臣制度の今〜
yousak
0
920
JUnit5.7, 5.8の新機能紹介 #jjug_ccc #jjug_ccc_b / junit 5.7, 5.8 new features
kyonmm
PRO
2
420
複数のスクラムチームをサポートするエンジニアリングマネジメントの話
okeicalm
0
1.1k
Data in Google I/O - IO Extended GDG Seoul
kennethanceyer
0
150
DOM Invader - prototype pollution対応の衝撃 - / DOM Invader - prototype pollution
okuken
0
150
#JP_Stripes Sapporo Stripeの活用例を色々ご紹介します!
miu_crescent
0
110
覗いてみよう!現場のスクラムチーム
tkredman
0
1.1k
雑な攻撃からELBを守る一工夫 +おまけ / Know-how to protect servers from miscellaneous attacks
hiroga
0
510
サーバレスECにおける Step Functions の使い方 〜ステートマシン全部見せます!〜
miu_crescent
0
190
セキュリティ 開運研修2022 / security 2022
cybozuinsideout
PRO
3
3.8k
miisan's career talk
mii3king
0
220
Lessons Learned from Scaling Infrastructure as Code
joatmon08
0
790
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
15
940
KATA
mclloyd
7
8.7k
Why You Should Never Use an ORM
jnunemaker
PRO
47
7.6k
Intergalactic Javascript Robots from Outer Space
tanoku
261
25k
Embracing the Ebb and Flow
colly
73
3.4k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
224
49k
How To Stay Up To Date on Web Technology
chriscoyier
780
250k
10 Git Anti Patterns You Should be Aware of
lemiorhan
638
52k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
212
20k
Producing Creativity
orderedlist
PRO
334
37k
In The Pink: A Labor of Love
frogandcode
131
21k
Support Driven Design
roundedbygravity
86
8.5k
Transcript
ϛεεϖϧΛൃݟ͢Δ misspellͷ͝հ 2021/1/19 ٢ࣉ.pm #25 - papix
ࣗݾհ • papix (id:papix / @__papix__) • גࣜձࣾͯͳ WebΞϓϦέʔγϣϯΤϯδχΞ (2017ʙ)
• ϒϩάMediaνʔϜ → ϚϯΨνʔϜ • Ұൠࣾஂ๏ਓJapan Perl Associationཧࣄ • ϒϩά: https://papix.hatena(blog.(com|jp)|diary.jp)
ࠓmisspellͷΛ͠·͢
client9/misspell • https://github.com/client9/misspell • Goͷπʔϧ • ӳޠͷϛεεϖϧΛൃݟͯ͘͠ΕΔ܅
͜Μͳ͜ͱ͋Γ·ͤΜ͔?
͜Μͳ͜ͱ͋Γ·ͤΜ͔? • ม໊Λtypo͍ͯͨ͠...! • ެ։͢ΔAPIυΩϡϝϯτʹtypo͕͋ͬͨ...! • σʔλϕʔεͷschemaʹtypo͕͋ͬͨ...!
ͦΜͳ͋ͳͨʹmisspell!
misspellͰൃݟ͢Δ $ go get -u github.com/client9/misspell/cmd/misspel l $ cat sample.tx
t - TOOD: typo͕ͳ͍͔֬ೝ͢Δ $ misspell . sample.txt:1:2: "TOOD" is a misspelling of "TODO " $ vim sample.txt # मਖ਼͢Δ.. . $ cat sample.tx t - TODO: typo͕ͳ͍͔֬ೝ͢Δ $ misspell . # ϛεεϖϧ͕ͳ͍ͷͰԿग़ྗͳ͍
ߋʹ...
reviewdog/action-misspell
ศར!!!
༨ஊ: ࣮ࡍʹݟ͔ͭͬͨϛεεϖϧୡ • ࢹͩͱؾ͖ͮʹ͍͘, ͜ΜͳϛεεϖϧΛൃݟ͠·ͨ͠ • cannnot → cannot •
recomended → recommended • occured → occurred • minumum → minimum • comparision → comparison
༨ஊ: occured? occurred? • weblioӳࣙయΛݟΔͱ... • occured = occurͷաڈܗ, աڈࢺܗͱ͋Δ
• https://ejje.weblio.jp/content/occured
༗ࣝऀͷݟղ
·ͱΊ • typoͳͲʹΑΔϛεεϖϧΛൃݟ͢ΔmisspellΛհ͠·ͨ͠ • reviewdogͱ࿈ܞ͢Δͱ, Pull Requestʹࣗಈతʹࢦఠͯ͘͠Ε·͢ • ϛεεϖϧ୭Ͱͬͯ͠·͏ͷ... •
͔͠͠, ͦͷ··͍ͬͯΔͱࠞཚͷݩʹͳΓ͕ͪ • ͏·͘πʔϧΛͬͯൃݟ, मਖ਼͍͖ͯ͠·͠ΐ͏!