Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Fix several project lint report warnings #498

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Fix several project lint report warnings #498

wants to merge 5 commits into from

Conversation

vmadalin
Copy link
Contributor

Description

Enable lint for reporting warnings as errors and detect them with CI, and solve the current project warnings

Overview

  • Before changes
    Screenshot 2019-08-19 at 16 07 26

  • After changes
    Screenshot 2019-08-19 at 17 37 33

Next steps

Redesign launch icon for avoid this warning (Error: Launcher icons should not fill every pixel of their square region; see the design guide for details [IconLauncherShape]) for the moment I just skipped it

It's a good approach also try to add another tools for static analysis in order to improve the code quality and make easy the collaboration with unified code style

@@ -48,6 +48,11 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}
lintOptions {
disable 'GoogleAppIndexingWarning'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't prefer to ignore GoogleAppIndexingWarning, the purpose of sunflower project is a demo for different Android features of jetpack or androidX, the GoogleAppIndexingWarning can be one part of them.

Let the warning there is OK.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My intension was to force warnings as errors by warningsAsErrors attribute, with that all changes has verify by CI on PR forcing to failure if was introduces new lint warnings (forcing contributors to check them). That was the only reason for why I added the disable 'GoogleAppIndexWarning'.

If you consider that isn't necessary I remove that also. Please confirm me, for make these changes on PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @tiembo

@vmadalin
Copy link
Contributor Author

vmadalin commented Sep 9, 2019

Updated PR with Material Sprint feature (master branch):

Screenshot 2019-09-09 at 16 17 24

@codingjeremy codingjeremy changed the base branch from master to main September 29, 2020 19:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants