Closed LPLabrys99 closed 3 months ago
This issue is stale because it has been open for 90 days with no activity.
I think it is more inconvenient to check the pubspec.yaml in version 0.5, in version 0.4 it was not taken into account to analyze the project.
This issue is stale because it has been open for 90 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
I just ran into this issue. It appears not to be fixed.
@LPLabrys99 Thanks for providing a simple workaround!
Hi there,
I'm trying the sonar-flutter plugin on a project. There is a top-level
pubspec.yaml
file which is just used for tracking the target dart version.When the sonar scanner runs it causes a java exception:
I had a look through the source code and I believe it's tripped up because one of the
pubspec.yaml
files does not have a dependencies entry, which this line seems to assume will be present.https://github.com/insideapp-oss/sonar-flutter/blob/master/dart-lang/src/main/java/fr/insideapp/sonarqube/dart/lang/PubSpecParser.java#L60C23-L60C30
This is what the pubspec.yaml file looks like:
Thanks
Edit: I found a temporary workaround, add this to the pubspec.yaml file: