Slide 1

Slide 1 text

΍͍͞͠1)1ίʔσΟϯάن໿ͷಋೖ ʙͦͷޙʙ 1)1ΧϯϑΝϨϯε ίωώτגࣜձࣾ!GPSULMF Ո଒ͷຖ೔Λ΋ͬͱসإʹɻ

Slide 2

Slide 2 text

͸͡Ί·ͯ͠ʂ w αʔόʔαΠυΤϯδχΞ w ίωώτגࣜձࣾ w ʮϚϚϦʯʮϚϚϦ2ʯͷ։ൃ ߴ໺෱ߊ !GPSULMF

Slide 3

Slide 3 text

໿൒೥લɾɾɾ Ո଒ͷຖ೔Λ΋ͬͱসإʹɻ

Slide 4

Slide 4 text

։ൃऀϒϩάͰެ։

Slide 5

Slide 5 text

ͯ͞ɺࠓ೔͸ϒϩάͷ಺༰Λ Ո଒ͷຖ೔Λ΋ͬͱসإʹɻ

Slide 6

Slide 6 text

؆୯ʹৼΓฦΓͭͭ Ո଒ͷຖ೔Λ΋ͬͱসإʹɻ

Slide 7

Slide 7 text

ͦͷޙͷ࿩Λ͠·͢ʂ Ո଒ͷຖ೔Λ΋ͬͱসإʹɻ

Slide 8

Slide 8 text

͜͏͍͏ίʔυɺͲ͏ࢥ͍·͔͢ʁ

Slide 9

Slide 9 text

͜͏͍͏ίʔυɺͲ͏ࢥ͍·͔͢ʁ

Slide 10

Slide 10 text

w ׅހͷด͡ํʹنଇੑ͕ͳ͍ w JGͷ͋ͱͷׅހͷલʹTQBDF͕ͳ͍ w Πϯσϯτ͕จࣈͣΕ͍ͯΔ ෆ౷ҰͳίʔσΟϯάελΠϧͷؾ࣋ͪѱ͞ ͜͏͍͏ίʔυɺͲ͏ࢥ͍·͔͢ʁ

Slide 11

Slide 11 text

͜͏͍͏ίʔυɺͲ͏ࢥ͍·͔͢ʁ

Slide 12

Slide 12 text

Slide 13

Slide 13 text

͜͏͍͏ίʔυɺͲ͏ࢥ͍·͔͢ʁ

Slide 14

Slide 14 text

͜͏ͳΔલʹ ίʔσΟϯάελΠϧΛ ౷Ұ͠Α͏ʂ Ո଒ͷຖ೔Λ΋ͬͱসإʹɻ

Slide 15

Slide 15 text

w TRVJ[MBCT1)1@$PEF4OJ⒎FS w ίʔσΟϯάن໿ΛνΣοΫ͢Δπʔϧ w W͔Β͸QIQDCGίϚϯυͰमਖ਼΋Մೳ w ద༻͢Δن໿͸ඪ४Ͱ1&"3 143ɾ ;FOEͳͲαϙʔτ w YNMܗࣜͰ؆୯ʹΧελϜن໿Λ࡞Δ͜ͱ΋Մೳ w MJOUͷ݁ՌΛ༷ʑͳܗࣜͰग़ྗͰ͖Δ w DIFDLTUZMF YNM TVNNBSZͳͲ ͦ͜Ͱ1)1@$PEF4OJ⒎FS ͦ͜Ͱ1)1@$PEF4OJ⒎FS

Slide 16

Slide 16 text

ͬͦ͘͞طଘϓϩδΣΫτʹ ಋೖͯ͠ΈΔͱɾɾɾ Ո଒ͷຖ೔Λ΋ͬͱসإʹɻ

Slide 17

Slide 17 text

ݸ௒͑ͷΤϥʔɾɾɾ 1)1@$PEF4OJ⒎FSΛద༻ $ phpcs --standard=PSR2 ./app ---------------------------------------------------------------- A TOTAL OF 1364 ERRORS AND 290 WARNINGS WERE FOUND IN 80 FILES ----------------------------------------------------------------

Slide 18

Slide 18 text

ݸ௒͑ͷΤϥʔɾɾɾ 1)1@$PEF4OJ⒎FSΛద༻

Slide 19

Slide 19 text

w ͔ͳΓ੒ख़ͨ͠ϓϩμΫτ w ίʔσΟϯάن໿͸͋Δ͕ΦϨΦϨن໿ w 143ʹ͸४ڌ͍ͯ͠ͳ͍ w ίʔυϨϏϡʔ࣌ʹػցͰ͸ͳ͘ਓ͕ؒ
 ໨ࢹͰҧ൓͍ͯ͠ͳ͍͔νΣοΫ w Ώ͑ʹ౰વϞϨ͸͋Δʜ ঢ়گ 1)1@$PEF4OJ⒎FSΛద༻

Slide 20

Slide 20 text

w ΤίγεςϜͷԸܙΛड͚ΔͨΊʹ΋143Λ࠾༻͍ͨ͠ w ͔͠͠ɺ͍͖ͳΓ143ʹ׬શʹ४ڌ͢Δͷ͸ෛ୲͕େ͖͍ w υΩϡϝϯτ੔උ͚ͨͩ͠Ͱ͸ਁಁ͠ͳ͍ͷͰࣗಈతʹ
 νΣοΫ͞ΕΔ࢓૊Έʹ͍ͨ͠ w ։ൃதʹ΋νΣοΫͰ͖ΔΑ͏ʹ͍ͨ͠ w 4JEF$*΍)PVOEΛ࢖͏ͷ΋͍͍͕ίετ͸཈͑ΒΕΔͷʹ
 ӽͨ͜͠ͱ͸ͳ͍ ໨ࢦ͢ΰʔϧ 1)1@$PEF4OJ⒎FSΛద༻

Slide 21

Slide 21 text

ͦ͜Ͱʮ΍͘͞͠ʯಋೖ͢Δ ʮ΍͘͞͠ʯಋೖ͢Δ

Slide 22

Slide 22 text

ΤσΟλ΍*%&ͰQIQDTΛ ࣮ߦͰ͖ΔΑ͏ʹ͚ͨ͠Ͳ
 ͨ͘͞ΜΤϥʔ͕ग़ͯ
 ͭΒ͍ʙ ΍͘͞͠͠·͠ΐʙ ʮ΍͘͞͠ʯಋೖ͢Δ

Slide 23

Slide 23 text

143Λܧঝͨ͠ΧελϜن໿QIQDTYNMΛ࡞Δ ΍͍͞͠ن໿Λ࡞Δ // phpcs.xml Custom standard Based on PSR2 ʮ΍͘͞͠ʯಋೖ͢Δ

Slide 24

Slide 24 text

1)1@$PEF4OJ⒎FS QIQDT ͷग़ྗΦϓγϣϯΛม͑ͯ
 ҧ൓ͨ͠ن໿໊Λ͢΂ͯදࣔͤ͞Δ ΍͍͞͠ن໿Λ࡞Δ $ phpcs -s --report=source --standard=./phpcs.xml ./app ʮ΍͘͞͠ʯಋೖ͢Δ

Slide 25

Slide 25 text

΍͍͞͠ن໿Λ࡞Δ ---------------------------------------------------------------------- SOURCE COUNT ---------------------------------------------------------------------- [x] Generic.WhiteSpace.DisallowTabIndent.TabsUsed 629 [x] Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLin 342 ʙུʙ [x] PSR2.Files.EndFileNewline.NoneFound 1 [ ] Squiz.Functions.FunctionDeclaration 1 ---------------------------------------------------------------------- A TOTAL OF 1654 SNIFF VIOLATIONS WERE FOUND IN 40 SOURCES ---------------------------------------------------------------------- ʮ΍͘͞͠ʯಋೖ͢Δ Τϥʔͱͯ͠ݕग़͞Εͨن໿ͱΤϥʔ݅਺͕
 ιʔτ͞Εͯදࣔ͞ΕΔ

Slide 26

Slide 26 text

͜͜Ͱ͓΋ΉΖʹΤϥʔʹͳͬͨن໿Λશͯআ֎͢Δ
 ۩ମతʹ͸QIQDTYNMʹFYDMVEFͱͯ͠௥ه ΍͍͞͠ن໿Λ࡞Δ Custom standard Based on PSR2 ʮ΍͘͞͠ʯಋೖ͢Δ

Slide 27

Slide 27 text

࠶౓QIQDTΛ࣮ߦ͢ΔͱΤϥʔ͕ग़ͳ͘ͳΔɻ
 ʮ΍͍͞͠ن໿ʯͷ׬੒ʂ ΍͍͞͠ن໿Λ࡞Δ $ phpcs -s --report=source --standard=./phpcs.xml ./app $ // Τϥʔ͕ͳ͍ͷͰ࣮ߦͯ͠΋Կ΋දࣔ͞Εͳ͍ ʮ΍͘͞͠ʯಋೖ͢Δ

Slide 28

Slide 28 text

ࡉ͔͘ϑΣʔζΛ෼͚ͯͭͭআ֎ϧʔϧΛফ͍ͯ͘͠
 ͍ܰෛ୲Ͱ͍͔ͭࣗવͱ໨ඪͷن໿ʹͳΔʂ ঃʑʹআ֎ن໿Λগͳ͍ͯ͘͘͠ Custom standard Based on PSR2 ʮ΍͘͞͠ʯಋೖ͢Δ

Slide 29

Slide 29 text

खಈͰνΣοΫ͢Δͷ͕ ໘౗ʹײ͡ΔΑʙ ΍͘͞͠͠·͠ΐʙ ʮ΍͘͞͠ʯಋೖ͢Δ

Slide 30

Slide 30 text

ʮ΍͘͞͠ʯಋೖ͢Δ w IBZBCVTBSFWJFXEPH w MJOUΤϥʔΛࣗಈͰ13ʹίϝϯτͨ͠ΓɺHJUEJ⒎ͷ݁Ռ͔Β
 ฤूߦͷΤϥʔ͚ͩදࣔ͢ΔΑ͏ʹϑΟϧλϦϯάͰ͖Δπʔϧ w 1)1Ͱ͸ͳ͘(P੡ ͦ͜ͰSFWJFXEPH

Slide 31

Slide 31 text

ྫͱͯ͠5SBWJT$*Ͱࣗಈ࣮ߦ͢Δɻ
 ίϝϯτΛࣗಈ౤ߘ͢ΔͨΊʹ(JUIVC5PLFO͕ඞཁͳͷͰ
 औಘ͠ɺUSBWJTͷػߏΛ࢖ͬͯ҉߸Խͯ͠؀ڥม਺ͱͯ͠ઃఆɻ मਖ਼Օॴ͚ͩͷࢦఠͱ$*ʹΑΔࣗಈ࣮ߦ // travisίϚϯυΛ࢖͑ΔΑ͏ʹ͢Δ $ gem install travis // ؀ڥม਺ͱͯ͠ઃఆ $ travis encrypt REVIEWDOG_GITHUB_API_TOKEN= --add env.global ʮ΍͘͞͠ʯಋೖ͢Δ

Slide 32

Slide 32 text

5SBWJT্ͰQIQDTΛ࣮ߦ͠ɺͦͷ݁ՌΛSFWJFXEPHʹ౉͢ मਖ਼Օॴ͚ͩͷࢦఠͱ$*ʹΑΔࣗಈ࣮ߦ env: global: secure: xxxxxxxxxxxxx install: - curl -fSL https://github.com/haya14busa/reviewdog/releases/download/ 0.9.2/reviewdog_linux_amd64 -o reviewdog && chmod +x ./reviewdog script: - >- phpcs --report=emacs --standard=./phpcs.xml ./app | reviewdog 
 -f=checkstyle -diff="git diff master” -ci=travis ʮ΍͘͞͠ʯಋೖ͢Δ

Slide 33

Slide 33 text

ΤϥʔΛमਖ਼Օॴ͚ͩʹϑΟϧλϦϯά͠ɺ13ͷ֘౰ߦʹ
 ίϝϯτΛ౤ߘͤ͞Δ मਖ਼Օॴ͚ͩͷࢦఠͱ$*ʹΑΔࣗಈ࣮ߦ ʮ΍͘͞͠ʯಋೖ͢Δ

Slide 34

Slide 34 text

͜͏ͨ͠޻෉΍QIQDCGʹΑΔ
 ࣗಈमਖ਼Λߦͬͯ Ո଒ͷຖ೔Λ΋ͬͱসإʹɻ

Slide 35

Slide 35 text

໿൒೥ܦͬͯͦͷޙͲ͏ͳ͔ͬͨ Ո଒ͷຖ೔Λ΋ͬͱসإʹɻ

Slide 36

Slide 36 text

w ݅͋ͬͨΤϥʔ͸݅ʹʂ w Τϥʔ͸ফ͕͑ͨϫʔχϯά 8BSOJOH ͕·ͩͭ͋Δ w l(FOFSJD'JMFT-JOF-FOHUIzߦࣈ·Ͱ w Զୡͷઓ͍͸͜Ε͔Βͩʂ ͦͷޙͲ͏ͳ͔ͬͨ ͦͷޙ

Slide 37

Slide 37 text

͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ Ո଒ͷຖ೔Λ΋ͬͱসإʹɻ