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
feat: matomo analytics #3888
feat: matomo analytics #3888
Conversation
d22463c
to
9023eaa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will finish the review later this day
app/src/main/java/openfoodfacts/github/scrachx/openfood/analytics/AnalyticsEvent.kt
Outdated
Show resolved
Hide resolved
package openfoodfacts.github.scrachx.openfood.analytics | ||
|
||
enum class AnalyticsView(val path: String) { | ||
Scanner("scanner"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use the common convention of having enums values as UPPERCASE:
https://stackoverflow.com/questions/3069743/coding-conventions-naming-enums
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
np I'll change it, but I think in kotlin we should revisit some coding styles :)
good article https://arturdryomov.dev/posts/kotlin-enum-recipes/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I usually follow Android Studio hints, but yeah we should adopt a style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
@VaiTon can we ignore codefactor in this PR? |
@naivekook rebase and then good to merge! |
ef5812c
to
1760b45
Compare
@VaiTon done |
@naivekook sorry but still conflicts :( |
1760b45
to
587c989
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Description
I don't have permissions to update upstream branch, so created a new one.
Related issues
Related PRs