-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from ytake/develop
Develop
- Loading branch information
Showing
5 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
Title: scrutinizerCIを使って継続的インテグレーションと静的解析 | ||
Topics: solution, scrutinizerCI | ||
Position: 2 | ||
--- | ||
|
||
{problem} | ||
Laravelプロジェクトを静的解析と継続的インテグレーション、コードカバレッジも取得したい | ||
{/problem} | ||
|
||
{solution} | ||
ソースコードの静的解析に定評のあるscrutinizerCIを利用してみましょう | ||
[scrutinizer CI](https://scrutinizer-ci.com/) | ||
GitHub、またはBitbucketを利用していれば、どなたでも利用できます | ||
いずれかのアカウントをお持ちであれば、 | ||
そのアカウントを使ってscrutinizerCIをログインをして、 | ||
利用したいリポジトリを選択するだけです | ||
次にそれぞれの機能を利用するには、 | ||
リポジトリに`.scrutinizer.yml`を設置する必要がありますが、 | ||
webブラウザ上から設定する事も出来ます | ||
|
||
静的解析自体はすぐに利用できますので、まずは自身のプロジェクトで利用してみましょう! | ||
|
||
リポジトリ登録後に、解析が始まります | ||
|
||
このサイトを解析すると次の様な結果となりました | ||
|
||
![Result1](/images/scrutinizerCI1.png) | ||
![Result2](/images/scrutinizerCI2.png) | ||
コードの解析結果一覧や、 | ||
問題のあるコードや、バグ発生の可能性があるコードを解析して通知してくれます | ||
|
||
必要に応じて利用したい機能をymlファイルで指定します | ||
```text | ||
tools: | ||
external_code_coverage: true | ||
checks: | ||
php: | ||
code_rating: true | ||
duplication: true | ||
``` | ||
|
||
様々な機能が用意されており、publicなリポジトリは無料で利用する事が出来ますので、 | ||
自身のサービス改善、または品質向上に役立ててみてはいかがでしょうか? | ||
{/solution} | ||
|
||
{discussion} | ||
|
||
githubなどで利用できるバッジもあります | ||
パッケージなどの品質表示として利用してみましょう! | ||
{/discussion} | ||
|
||
{credit} | ||
Author:Yuuki Takezawa | ||
{/credit} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.