-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Fix Codacy Warnings - Ensure Composable Function Names Start with a Capital Letter #4256
Conversation
07037a1
to
66153b6
Compare
66153b6
to
03e477b
Compare
detekt.yml
Outdated
@@ -278,7 +278,7 @@ naming: | |||
minimumFunctionNameLength: 3 | |||
FunctionNaming: | |||
active: true | |||
functionPattern: '^([a-z$][a-zA-Z$0-9]*)|(`.*`)$' | |||
functionPattern: '^([a-z$A-Z][a-zA-Z$0-9]*)|(.*)$' |
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 see for the last part at the files app, it is still using the ` quotes around (.*)
Whats the difference?
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.
By using quotes around (.*), we can use function names enclosed in backticks. This is a common notation in unit test cases. I will include the backticks.
Signed-off-by: sowjanyakch <[email protected]>
03e477b
to
78a55c0
Compare
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/4256-talk.apk |
Resolve #4014
solve codacy lint warning for composables.
The static code analysis gives a warning when composable functions name start with a capital letter. The functionPattern should be modified to write a composable function name with a capital letter.
🚧 TODO
🏁 Checklist
/backport to stable-xx.x