Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Rocro Inspecode Hands On
Search
Yoshiyuki Mineo
October 24, 2017
Technology
0
570
Rocro Inspecode Hands On
Rocro Hands On 2017/10/24
Yoshiyuki Mineo
October 24, 2017
Tweet
Share
More Decks by Yoshiyuki Mineo
See All by Yoshiyuki Mineo
GCP を活用してスケーラブルな CI サービスを作った話
yoshiyukimineo
0
210
開発者向けSaaS Rocro
yoshiyukimineo
0
740
Rocro Inspecode Hands On with Bitbucket
yoshiyukimineo
0
110
RocroにおけるGCP活用事例
yoshiyukimineo
0
990
Other Decks in Technology
See All in Technology
_第3回__AIxIoTビジネス共創ラボ紹介資料_20250617.pdf
iotcomjpadmin
0
150
ローカルLLMでファインチューニング
knishioka
0
140
2年でここまで成長!AWSで育てたAI Slack botの軌跡
iwamot
PRO
4
630
AWS アーキテクチャ作図入門/aws-architecture-diagram-101
ma2shita
29
10k
Agentic DevOps時代の生存戦略
kkamegawa
1
1.3k
Observability в PHP без боли. Олег Мифле, тимлид Altenar
lamodatech
0
330
JSX - 歴史を振り返り、⾯⽩がって、エモくなろう
pal4de
4
1.1k
20250625 Snowflake Summit 2025活用事例 レポート / Nowcast Snowflake Summit 2025 Case Study Report
kkuv
1
290
Observability infrastructure behind the trillion-messages scale Kafka platform
lycorptech_jp
PRO
0
130
UIテスト自動化サポート- Testbed for XCUIAutomation practice
notoroid
0
130
Navigation3でViewModelにデータを渡す方法
mikanichinose
0
220
OAuth/OpenID Connectで実現するMCPのセキュアなアクセス管理
kuralab
5
970
Featured
See All Featured
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
930
Faster Mobile Websites
deanohume
307
31k
A better future with KSS
kneath
239
17k
A Modern Web Designer's Workflow
chriscoyier
693
190k
We Have a Design System, Now What?
morganepeng
53
7.6k
Statistics for Hackers
jakevdp
799
220k
The Cult of Friendly URLs
andyhume
79
6.5k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
YesSQL, Process and Tooling at Scale
rocio
173
14k
What's in a price? How to price your products and services
michaelherold
246
12k
Facilitating Awesome Meetings
lara
54
6.4k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Transcript
ROCRO INSPECODE ハンズオン Rocro株式会社 峯尾 嘉征 2017/10/24
• 開発者向けサービス群 • https://rocro.com • GitHub / Bitbucketと連携 • 9/14
public beta開始 • 名前の由来 • アジャイル開発:イテレーションを回しながらソフトウェアをつくる • 回転させながらものをつくる道具 → ろくろ 2
Inspecode • 自動コードレビュー&コード修正サービス • 約50種類の静的解析ツールをサポート • 一部の言語でユニットテストもサポート開始 • サポート言語: C,
C++, Clojure, CoffeeScript, CSS, Go, HTML, Java, JavaScript, PHP, Python, Ruby, Scala, Shell, TypeScriptなど • Public Beta 3
What's New • 下記ツールを新規にサポート • Tailor(Swift) • Prospector(Python) • Prettier(CSS/JavaScript/TypeScript)
• Unused(多言語対応) • Public Repositoryへの対応 • レポートバッジ • 今回のハンズオンで取り上げます • Fixedステータス • 今回のハンズオンで取り上げます 4
ハンズオン資料 https://github.com/your-org/websocket 5 https://github.com/your-org/websocket/releases/download/hands- on/inspecode-hands-on_jp.pdf Click “releases” Download pdf
Agenda • セットアップと基本的な使い方 • rocro.ymlの追加 • 自動修正 • 入力分割 •
バッジ 6
セットアップと基本的な使い⽅ 7
https://github.com/your-org/websocket を Fork Click “Fork” 8
inspecode.rocro.com からサインイン Sign in with GitHub 9
Authorize ROCRO Click “Authorize rocro” 10
Repositories ページに移動 Click “Repositories” 11
レポジトリを登録 2. Back to “Reports” 1. Register “websocket” repository 12
※repositoryが現れない場合は、右上の”Sync”ボタンを押してください
Report が生成されることを確認 13
Report Summaryを表示① Click “Report” 14
Report Summaryを表示② 15
File一覧を表示① Click “D” bar 16
File一覧を表示② ※「Filesタブ→プルダウンメニューでGrade Dを選択」 でも同じ画⾯に⾏けます。 17
特定ファイルのIssue一覧を表示① Click 18
特定ファイルのIssue一覧を表示② 19
特定ファイルのIssue出現箇所を確認① Click “Source” 20
特定ファイルのIssue出現箇所を確認② 21
Jobの履歴を表示① 22 Click “History”
Jobの履歴を表示② 23
Jobの詳細を表示① Click 24
Jobの詳細を表示② Click “golint” 25
Jobの詳細を表示③ golintのコンソールログを確認 26
rocro.ymlの追加 27
rocro.yml inspecode: gofmt: thresholds: num-issues: 0 options: [-s] go-test: thresholds:
num-issues: 0 misspell: default golint: default gofmt, golintで 1つでもissueが検出されたら Jobをfailさせる Note: Notificationsの設定で “Only failure and recovery” を選択すると Jobのfailに気づきやすくなる 28 https://inspecode.rocro.com/help/configuration/tool.html#field-thresholds
rocro-ymlブランチをマージ Click “New pull request” 29
base forkとして自分のレポジトリを選択 複数の選択肢が出る。必ずFork先の ⾃分のレポジトリを選択する。 30
masterとrocro-ymlをCompare master であることを確認 rocro-yml を選択する 31
プルリクエスト作成① Click 32
プルリクエスト作成② Click 33
マージ① Click 34
マージ② Click 35
Threshold設定によりJobがFailしたことを確認① 36 Click “History”
Threshold設定によりJobがFailしたことを確認② 37 Click
Threshold設定によりJobがFailしたことを確認③ 38
自動修正 39
rocro.yml inspecode: gofmt: thresholds: num-issues: 0 options: [-s] auto-fix: true
go-test: thresholds: num-issues: 0 misspell: default golint: default gofmtの自動修正機能を有効にする 40 https://inspecode.rocro.com/help/configuration/tool.html#field-auto-fix
auto-fixブランチをマージ Click “New pull request” 41
base forkとして自分のレポジトリを選択 複数の選択肢が出る。必ずFork先の ⾃分のレポジトリを選択する。 42
masterとauto-fixをCompare master であることを確認 auto-fix を選択する 43
rocro-ymlと同様にマージ 44
Report Summaryを表示 2. Click “Report” 45 1. Click “Reports”
レポート画面からプルリクエストを作成 Click “Compare” 46 ※“Compare”が表⽰されない場合は、“History”から 最新のJobを選択して”View Report”ボタンを押してください
プルリクエストを作成してmasterにマージ Create pull request and merge 47
自動修正によりFailed→Succeededになったことを確認① Click “History” 48
自動修正によりFailed→Succeededになったことを確認② 49 Click
自動修正によりFailed→Succeededになったことを確認③ 50
Report画面へ戻る Click “View Report” 51
修正された Issues を確認① Click “Number of Fixed Issues” 52
修正された Issues を確認② 53
入力分割 54
rocro.yml inspecode: gofmt: thresholds: num-issues: 0 options: [-s] auto-fix: true
go-test: thresholds: num-issues: 0 misspell: default golint: - input: c* - ignore: c* golintの入力を分割して 並列化・高速化する ”c”で始まるファイル群と それ以外のファイル群に2分割 55
参考:Multiple Configurations 56 inspecode: <tool>: input: <pattern> ignore: <pattern> https://inspecode.rocro.com/help/configuration/tool.html#multiple-configurations
inspecode: <tool>: - input: <pattern> ignore: <pattern> - input: <pattern> ignore: <pattern> Single Configuration inputで入力パターンを指定(複数可) ignoreで除外パターンを指定(複数可) Multiple Configurations リスト形式で複数のconfigurationを 記述可能
divide-inputブランチをマージ Click “New pull request” 57
base forkとして自分のレポジトリを選択 複数の選択肢が出る。必ずFork先の ⾃分のレポジトリを選択する。 58
masterとdivide-inputをCompare master であることを確認 divide-input を選択する 59
rocro-ymlと同様にマージ 60
golintが分割・並列実行されたことを確認① 61 Click “History”
golintが分割・並列実行されたことを確認② 62 Click
golintが分割・並列実行されたことを確認③ 63
バッジ 64
バッジ • READMEに貼るアイコン • ステータスバッジ • 最新のジョブのステータス(Succeeded, Failedなど)を表示 • クリックすると最新のジョブの詳細画面へジャンプ
• レポートバッジ • 最新のレポートの5段階評価(A, B, C, D, F)を表示 • クリックすると最新のレポート画面へジャンプ 65
Settings 画面を開く Click “Settings” 66
Badges 画面を開く Click “Badges” 67
Markdownスニペットをコピー Copy this snippet 68
README.mdを編集① Click “README.md” 69
README.mdを編集② Click 70
README.mdを編集③ 1. コピーしたスニペットを 8⾏⽬に貼り付ける 2. Click “Commit changes” 71
レポートバッジを確認 バッジが表⽰される 72