Skip to content

lint: report warnings, don't fail on them - #1

Merged
mountEvarus merged 1 commit into
mainfrom
mountEvarus/lint-warnings-not-errors
Aug 22, 2026
Merged

lint: report warnings, don't fail on them#1
mountEvarus merged 1 commit into
mainfrom
mountEvarus/lint-warnings-not-errors

Conversation

@mountEvarus

Copy link
Copy Markdown
Owner

Found while migrating film-roll: warningsAsErrors = true turned six cosmetic lint findings into a red build, none of them a bug.

  • InlinedApi on HapticFeedbackConstants.CONFIRM (an int constant that no-ops below API 30)
  • two UnusedAttribute on forward-compatible widget sizing hints
  • ObsoleteSdkInt, UnusedResources, MonochromeLauncherIcon on launcher resources

A gate that fires on themed-icon advice gets switched off entirely, which costs more than it saves. abortOnError stays, so genuine lint errors still fail.

warningsAsErrors turned six cosmetic findings in film-roll into a red build: an inlined
int constant that no-ops on older APIs, two forward-compatible widget attributes, and
three resource nits. None was a bug.

A gate that fires on themed-icon advice is one that gets switched off entirely. Real lint
errors still fail via abortOnError.
@mountEvarus
mountEvarus merged commit 4ec9d76 into main Aug 22, 2026
1 check passed
@mountEvarus
mountEvarus deleted the mountEvarus/lint-warnings-not-errors branch August 22, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant