-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
調査:CodeClimateのCodeのSourceが出ない件 #236
Comments
怪しいと思っているのは。。
勘 |
CodeClimateにレポートを送ってる Action を見てみる |
- name: '【mainブランチ】 make test.full && テストカバレッジレポートをCodeClimateに送る'
if: github.ref == 'refs/heads/main'
uses: paambaati/[email protected]
with:
coverageCommand: make test.full
coverageLocations: 'build/reports/jacoco/test/jacocoTestReport.xml:jacoco'
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
JACOCO_SOURCE_PATH: ${{ github.workspace }}/src/main/kotlin
TZ: Asia/Tokyo |
あ、これを見れば良さそう? |
https://codebeautify.org/xmlviewer で「Beautify」すると1万行超え、、つまりちゃんとレポートはありそう |
たとえばComment.ktはこんな感じのxmlのclassがいくつかある。。 <class name="com/example/realworldkotlinspringbootjdbc/openapi/generated/model/Comment" sourcefilename="Comment.kt">
<method name="<init>" desc="(ILjava/time/OffsetDateTime;Ljava/time/OffsetDateTime;Ljava/lang/String;Lcom/example/realworldkotlinspringbootjdbc/openapi/generated/model/Profile;)V" line="25">
<counter type="INSTRUCTION" missed="30" covered="0"/>
<counter type="LINE" missed="6" covered="0"/>
<counter type="COMPLEXITY" missed="1" covered="0"/>
<counter type="METHOD" missed="1" covered="0"/>
</method>
<method name="getId" desc="()I" line="28">
<counter type="INSTRUCTION" missed="3" covered="0"/>
<counter type="LINE" missed="1" covered="0"/>
<counter type="COMPLEXITY" missed="1" covered="0"/>
<counter type="METHOD" missed="1" covered="0"/>
</method>
<method name="getCreatedAt" desc="()Ljava/time/OffsetDateTime;" line="31">
<counter type="INSTRUCTION" missed="3" covered="0"/>
<counter type="LINE" missed="1" covered="0"/>
<counter type="COMPLEXITY" missed="1" covered="0"/>
<counter type="METHOD" missed="1" covered="0"/>
</method>
<method name="getUpdatedAt" desc="()Ljava/time/OffsetDateTime;" line="34">
<counter type="INSTRUCTION" missed="3" covered="0"/>
<counter type="LINE" missed="1" covered="0"/>
<counter type="COMPLEXITY" missed="1" covered="0"/>
<counter type="METHOD" missed="1" covered="0"/>
</method>
<method name="getBody" desc="()Ljava/lang/String;" line="37">
<counter type="INSTRUCTION" missed="3" covered="0"/>
<counter type="LINE" missed="1" covered="0"/>
<counter type="COMPLEXITY" missed="1" covered="0"/>
<counter type="METHOD" missed="1" covered="0"/>
</method>
<method name="getAuthor" desc="()Lcom/example/realworldkotlinspringbootjdbc/openapi/generated/model/Profile;" line="41">
<counter type="INSTRUCTION" missed="3" covered="0"/>
<counter type="LINE" missed="1" covered="0"/>
<counter type="COMPLEXITY" missed="1" covered="0"/>
<counter type="METHOD" missed="1" covered="0"/>
</method>
<counter type="INSTRUCTION" missed="45" covered="0"/>
<counter type="LINE" missed="11" covered="0"/>
<counter type="COMPLEXITY" missed="6" covered="0"/>
<counter type="METHOD" missed="6" covered="0"/>
<counter type="CLASS" missed="1" covered="0"/>
</class> |
422エラー起きてSkipしてるやつ発見 https://codeclimate.com/github/sunakan/realworld-kotlin-springboot-jdbc/builds/490 |
なんか向こう側のトラブルな気がしてきた SaaS側のDockerimageがおかしい気がする 2022年9月19日〜 Can’t override default code climate template にてGitlab環境でcodeclimate使おうとしたら
みたいなエラーが出てるっぽいし |
ただ、まだissueには上がっていなさそう。。 |
Openなやつは3つあるけど、どれも違いそう。。 https://github.com/search?q=org%3Acodeclimate+codeclimate-parser+socket+not+present&type=issues |
codeclimateコマンドがあるらしい |
sudo docker run \
--interactive --tty --rm \
--env CODECLIMATE_CODE="$PWD" \
--volume "$PWD":/code \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /tmp/cc:/tmp/cc \
--volume /code/node_modules \
codeclimate/codeclimate analyze -f html > output.html sudo docker run \
--interactive --tty --rm \
--env CODECLIMATE_CODE="$PWD" \
--volume "$PWD":/code \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /tmp/cc:/tmp/cc \
--volume /code/node_modules \
codeclimate/codeclimate analyze -f html > output.html |
Run Code Climate Locally |
2つは500なので422の可能性は上っぽい |
2022年10月5日にサポートへ連絡
Attachment(s) |
なんか同じ文面が2回来てる(2回めはサポートのミスな気がするけど) Your request (48513) has been updated. To add additional comments, reply to this email.
|
Codeタブ > 適当なktファイル > Source > なにもでない
こういうのが出て欲しい
Codeタブ > RealworldKotlinSpringbootJdbcApplication.kt > Source
Codeタブ > ArticleId.kt > Source
The text was updated successfully, but these errors were encountered: