Status Update
Comments
ha...@google.com <ha...@google.com>
au...@google.com <au...@google.com> #2
gharrma@ do you think this is a reasonable FR?
pa...@google.com <pa...@google.com> #3
Tentatively raising to a P1 FR, as I think it would be easy to add on the lint side.
au...@google.com <au...@google.com> #4
Any updates here?
gh...@google.com <gh...@google.com> #5
Paul, is this something you could look at give that you have been working on baselines recently?
pa...@google.com <pa...@google.com> #6
Yes, sounds good.
au...@google.com <au...@google.com> #7
Any updates on this?
au...@google.com <au...@google.com> #8
paulthomson@ is there something I can help with to get this in?
pa...@google.com <pa...@google.com> #9
Sorry for the delay. ag/22509882 was merged, so there is now a Lint command line flag --baseline-omit-line-numbers
.
protos/src/main/proto/analytics_enums.proto
?
sp...@google.com <sp...@google.com> #10
is ag/17112268 still a good example for adding a BooleanOption?
Instead of a BooleanOption
, should AGP just always use --baseline-omit-line-numbers
?
pa...@google.com <pa...@google.com> #11
Hmm, good question. My instinct is that it should probably be an option because most users will probably appreciate being able to understand where baselined issues have come from (which specific line in a file) given a freshly generated baseline file. In particular, multiple "identical" issues that occur within one file can look a bit strange when are no line numbers to disambiguate. I could be wrong here, though; perhaps nobody really looks at baseline files, or perhaps most users don't use them at all. I also assume that a lot of users (especially for smaller codebases) are not worried about merging branches that contain (regenerated) baseline files. aurimas@ might have an opinion on whether the situation is likely to occur in other codebases.
au...@google.com <au...@google.com> #12
We dont need baseline numbers because we maintain downstream branches that make it super painful of the line numbers are included as it causes continuous merge conflicts. I suspect most users dont have such set up, and might prefer line numbers as suggested in #11
sp...@google.com <sp...@google.com> #13
You can set android.lint.baselineOmitLineNumbers=true
starting in AGP 8.2.0-alpha07.
Description
This is a feature request for Android Gradle Plugin to do this for us. AndroidX currently has a task that intercepts the xml and does this rewrite and we'd like to drop that hack.