-
Notifications
You must be signed in to change notification settings - Fork 205
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!: Make melos analyze
always use dart analyze
#695
fix!: Make melos analyze
always use dart analyze
#695
Conversation
Hmm, to me it sounds more consistent to make |
@spydon, I've got a couple of questions then:
P.S. Some additional info on the topic: |
This reverts commit 864ca1c.
Ah yes, that should definitely be added as a flag to Melos!
No advantages at all, but we shouldn't dictate from Melos side that the Adding the |
@Pavel-Sulimau do you want to work on adding the |
This breaking change does not scare me as much as the current way of working of
@spydon, Yep, sure, I can do that! However, I would like to double-check on your suggestions as at the moment it seems to me suboptimal, i.e. adding unnecessary complexity/confusion without explicit value. Here is what is bothering me a bit about that:
So, could you please confirm that using both |
analyze
behavior consistent
We just don't add
Yeah, there are definitely flutter projects using the Dart analyzer too. I have a feeling that the big majority is using |
analyze
behavior consistentanalyze
behavior consistent
We had a chat internally, and people are for just using |
analyze
behavior consistentmelos analyze
always use dart analyze
All right, thanks for reaching out to people Lukas! |
I think it looks good as it is, I'll go ahead and merge it now. :) |
Description
The recent
melos analyze
changes came as a breaking change surprise for our project. On our project, we do not treat info-level issues as errors because we have somedeprecated
info lints in our codebase.The change introduced in #655 results in the call to
flutter analyze
ordart analyze
depending on the Flutter dependency presence.The issue is that those commands have different default behavior and configuration options.
While
dart analyze
does not fail on info-level issues by default,the
flutter analyze
does fail on info-level issues.This results in inconsistent behavior. Also, it is not aligned with the current documentation/API of
melos analyze
.Since
dart analyze
is suitable for bothdart
andflutter
packages I do not see a problem using just this command. That will fix the inconsistency and make things simpler.Type of Change
feat
-- New feature (non-breaking change which adds functionality)fix
-- Bug fix (non-breaking change which fixes an issue)!
-- Breaking change (fix or feature that would cause existing functionality to change)refactor
-- Code refactorci
-- Build configuration changedocs
-- Documentationchore
-- Chore