Closed luongvo closed 11 months ago
@phongvhd93 @markgravity @kaungkhantsoe This PR is now ready for review, too 🎉
8 Warnings | |
---|---|
:warning: | Big PR |
:warning: | Uh oh! Your project is under 80% coverage! |
:warning: | shared/src/androidMain/kotlin/co/nimblehq/kmm/template/Platform.android.kt#L3 - The file name 'Platform.android' does not match the name of the single top-level declaration 'AndroidPlatform'. |
:warning: | shared/src/androidUnitTest/kotlin/co/nimblehq/kmm/template/androidTest.kt#L6 - The file name 'androidTest' does not match the name of the single top-level declaration 'AndroidGreetingTest'. |
:warning: | shared/src/commonTest/kotlin/co/nimblehq/kmm/template/commonTest.kt#L6 - The file name 'commonTest' does not match the name of the single top-level declaration 'CommonGreetingTest'. |
:warning: | shared/src/commonTest/kotlin/co/nimblehq/kmm/template/extensions/ResponseMappingTest.kt#L18 - Exception is a too generic Exception. Prefer throwing specific exceptions that indicate a specific error case. |
:warning: | shared/src/iosMain/kotlin/co/nimblehq/kmm/template/Platform.ios.kt#L5 - The file name 'Platform.ios' does not match the name of the single top-level declaration 'IOSPlatform'. |
:warning: | shared/src/iosTest/kotlin/co/nimblehq/kmm/template/iosTest.kt#L6 - The file name 'iosTest' does not match the name of the single top-level declaration 'IosGreetingTest'. |
10.68%
File | Coverage |
---|
CONTRIBUTING.md CONTRIBUTING.md Constant.swift DebugProduction.xcconfig DebugStaging.xcconfig Gemfile.lock README.md README.md ReleaseProduction.xcconfig ReleaseStaging.xcconfig project.pbxproj test.yml test.yml
Codebase cunningly covered by count Shroud 🧛
Generated by :no_entry_sign: Danger
1 Warning | |
---|---|
:warning: | This pull request is quite big (618 lines changed), please consider splitting it into multiple pull requests. |
File | Rules |
---|---|
fastlane/Constants/Constant.swift:122:1 | warning: (trailingSpace) Remove trailing space at end of a line. |
fastlane/Constants/Constant.swift:129:1 | warning: (trailingSpace) Remove trailing space at end of a line. |
fastlane/Constants/Constant.swift:145:1 | warning: (trailingSpace) Remove trailing space at end of a line. |
fastlane/Constants/Constant.swift:153:1 | warning: (trailingSpace) Remove trailing space at end of a line. |
fastlane/Constants/Constant.swift:160:1 | warning: (trailingSpace) Remove trailing space at end of a line. |
fastlane/Constants/Constant.swift:164:1 | warning: (spaceAroundOperators) Add or remove space around operators or delimiters. |
fastlane/Constants/Constant.swift:167:1 | warning: (trailingSpace) Remove trailing space at end of a line. |
18.25%
✅ No files affecting coverage found
Powered by xcov
Generated by :no_entry_sign: Danger
What happened 👀
test.yml
workflow to generate the sample project before executing test actions on Android or iOS platforms.contribution guide
for git-submodule.Insight 📝
The Danger for iOS has an issue when running from the non-root directory:
sample/ios
, which makes the SwiftFormat can not file expected files because of duplicating thesample/ios
path https://github.com/nimblehq/kmm-templates/actions/runs/5982564343/job/16231801560 💥danger-ruby-swiftformat
returns the list of swift files with the full path from the root dir, e.g.sample/ios/fastlane/Constants/Constant.swift
, includingsample/ios
,SwiftFormat
joins them with the current working dir/Users/runner/work/kmm-templates/kmm-templates/sample/ios/
.There is no official support to bypass this issue. I made a workaround to modify the
danger-ruby-swiftformat
source to remove thesample/ios
prefix from all files by using this operator.map { |file| file.partition('sample/ios/').last }
🙏Proof Of Work 📹
The workflow works properly as it is.