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
phpcsとphpmdを利用した継続的インテグレーション
Search
cosuke2000
November 30, 2016
Business
200
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
phpcsとphpmdを利用した継続的インテグレーション
cosuke2000
November 30, 2016
Other Decks in Business
See All in Business
アドバリスター株式会社 プロフェッショナルサービス事業
advalistar
0
18k
メディフォン株式会社 会社説明資料
mediphone
0
690
Caddireat Innovation -採用候補者向け 会社紹介資料-
caddireat
0
310
Steamで売れないゲームに共通する失敗パターン
hirohasuyoutube
0
300
会社案内資料
auditech2022
0
340
202610_Nishika会社紹介資料
nishika_kae
0
150
Sasuke Financial Lab 会社概要
sasukefinanciallab
0
690
YassLab (株) サービス紹介 / Introduction of YassLab
yasslab
PRO
3
45k
uniam_事業概要.pdf
uniam
PRO
0
1k
ビーヘルシー採用
behealthy
0
270
KGモーターズ会社紹介資料_2026.10
kgmotors
0
32k
変化の時代に自分のハンドルを握る ── イチから始めるセルフマネジメント/Self-Management in the Winds of Change
ikuodanaka
2
300
Featured
See All Featured
Google's AI Overviews - The New Search
badams
0
1.6k
Large-scale JavaScript Application Architecture
addyosmani
516
110k
The SEO identity crisis: Don't let AI make you average
varn
0
590
Optimising Largest Contentful Paint
csswizardry
37
4k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
Site-Speed That Sticks
csswizardry
13
1.6k
The Curse of the Amulet
leimatthew05
3
16k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
From π to Pie charts
rasagy
1
400
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Transcript
phpcsとphpmdを利用した 継続的インテグレーション @マッチングッドさいとう
自己紹介 マッチングッド株式会社について 人材会社向けのクラウドの基幹システムを運営している会社 toBでPHPを利用しておりモダンな技術で顧客価値の向上を目指し中 私について マッチングッドで代表を務めさせていただいております 技術的にはソースレビューの8割を行っています
今日の概要 当社で行っているphpcsとphpmdを利用した 継続的インテグレーションについてご紹介 継続的インテグレーションとは? 継続的インテグレーション、CI(英: continuous integration)と は、主にプログラマーのアプリケーション作成時の品質改善や納期の短縮 のための習慣 @wikipedia
抱えていた課題 コーディング規約(PSRにほぼ準拠)があるのに、 なぜかコーディング規約が遵守されないソースがpushされる・・・ 皆さんならPSRを守ってもらうためにどうしますか?
最初にやったこと .editorconfigの準備 エディタの設定で何とかしようとしたが・・・ [*] charset = utf‐8 indent_size = 4
indent_style = space trim_trailing_whitespace = true insert_final_newline = true phpcsとphpmdをコマンドで叩く phpcs:コーディング規約を遵守させるためのツール phpmd:潜在バグをチェックするためのツール ルールは作ったが・・・
別の問題 .editorconfigではコーディング規約の全てをカバーできない コーディング規約の中にある未使用の変数を使わないなどの 潜在バグをキャッチできない・・・ phpcsとphpmdをコマンドで叩くのを忘れる
だって忘れるよね どうしたら忘れないようにできるでしょうか?
解決策 当社ではソース管理をgithubで行ってますが、 CircleCIと連携させました。 そして、CircleCIでphpcsとphpmdをソースのpush時に動かし、 ユニットテストだけでなく、phpcsとphpmdもパスしないと、 マスターにマージできないようにしました。 circle.ymlの一部 vendor/bin/phpcs ‐‐standard=phpcs.xml vendor/bin/phpunit
vendor/bin/phpmd app text phpmd.xml
イメージ githubのイメージ circleCIのイメージ
結果 コーディング規約に関するレビュー量が8割減!!
We are hiring! ご清聴ありがとうございました!