Analysis fails if any pubspec.yaml
file does not have a dependencies
key
#205
Labels
bug
Something isn't working
pubspec.yaml
file does not have a dependencies
key
#205
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:
The text was updated successfully, but these errors were encountered: