ϛεεϖϧΛൃݟ͢Δmisspellͷ͝հ2021/1/19 ٢ࣉ.pm #25 - papix
View Slide
ࣗݾհ• 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/misspell$ cat sample.txt- TOOD: typo͕ͳ͍͔֬ೝ͢Δ$ misspell.sample.txt:1:2: "TOOD" is a misspelling of "TODO"$ vim sample.txt # मਖ਼͢Δ...$ cat sample.txt- 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ʹࣗಈతʹࢦఠͯ͘͠Ε·͢• ϛεεϖϧ୭Ͱͬͯ͠·͏ͷ...• ͔͠͠, ͦͷ··͍ͬͯΔͱࠞཚͷݩʹͳΓ͕ͪ• ͏·͘πʔϧΛͬͯൃݟ, मਖ਼͍͖ͯ͠·͠ΐ͏!