Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Rocro Inspecode Hands On with Bitbucket

Rocro Inspecode Hands On with Bitbucket

Bitbucket + Rocro Hands-On Seminar 2017/11/01

Yoshiyuki Mineo

November 01, 2017
Tweet

More Decks by Yoshiyuki Mineo

Other Decks in Technology

Transcript

  1. • 開発者向けサービス群 • https://rocro.com • GitHub / Bitbucketと連携 • 9/14

    public beta開始 • 名前の由来 • アジャイル開発:イテレーションを回しながらソフトウェアをつくる • 回転させながらものをつくる道具 → ろくろ 2
  2. What's New • 下記ツールを新規にサポート • Tailor(Swift) • Prospector(Python) • Prettier(CSS/JavaScript/TypeScript)

    • Unused(多言語対応) • Public Repositoryへの対応 • Bitbucketでも自動修正機能をサポート • レポートバッジ(詳細は後述) • Fixedステータス(詳細は後述) 4
  3. レポジトリを登録 2. Back to “Reports” 1. Register “inspecode-hands-on” repository 14

    ※repositoryが現れない場合は、右上の”Sync”ボタンを押してください
  4. rocro.yml inspecode: gofmt: thresholds: num-issues: 0 options: [-s] go-test: thresholds:

    num-issues: 0 misspell: default golint: default rocro.ymlにより様々な設定が可能 左のrocro.ymlは、gofmt, golintで 1つでもissueが検出されたら Jobをfailさせる設定 Note: Notificationsの設定で “Only failure and recovery” を選択すると Jobのfailに気づきやすくなる 30 https://inspecode.rocro.com/help/configuration/tool.html#field-thresholds
  5. rocro.yml inspecode: gofmt: thresholds: num-issues: 0 options: [-s] auto-fix: true

    go-test: thresholds: num-issues: 0 misspell: default golint: default gofmtのauto-fixを有効にして 先程のgofmt errorを自動的に修正する 39 https://inspecode.rocro.com/help/configuration/tool.html#field-auto-fix
  6. 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分割 56
  7. 参考:Multiple Configurations 57 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を 記述可能
  8. バッジ • READMEに貼るアイコン • ステータスバッジ • 最新のジョブのステータス(Succeeded, Failedなど)を表示 • クリックすると最新のジョブの詳細画面へジャンプ

    • レポートバッジ • 最新のレポートの5段階評価(A, B, C, D, F)を表示 • クリックすると最新のレポート画面へジャンプ 66