dartanalyzerを使った、Dart/Flutterの静的コード解析についての発表です。
CircleCI上でdartanalyzerを実行し、Github Pull Requestにコメントを入れる手順まで紹介しています。
Flutter勉強会 in 福岡 #3 & Fukuoka.dart #1 - connpass
https://flat-lab.connpass.com/event/113785/
flutter/flutterの公式analysis_options.yaml
https://github.com/flutter/flutter/blob/stable/analysis_options.yaml
```.circleci/config.yml
version: 2
jobs:
lint:
docker:
- image: kuronekomichael/flutter:stable
steps:
- checkout
- run: 'flutter packages get'
- run: 'dartcop . | reviewdog -f=checkstyle -name=dartcop -reporter=github-pr-review'
workflows:
version: 2
build_and_test:
jobs:
- lint
```
1. dartanalyzerのラッパー「dartcop」
https://github.com/kuronekomichael/dartcop
2. Dart/Flutter用のdockerイメージ「kuronekomichael/flutter」
https://hub.docker.com/r/kuronekomichael/flutter/dockerfile