Analyzer/Reporter possibly do not hook correctly into Pub in my Flutter project #9960
Labels
analyzer
About the analyzer tool
needs info
An issue where further information is required
question
An issue that is actually a question
Hi,
I am using ort on an older (2+ years) Flutter project with the intention of generating a SBOM as a basis for analyzing dependency risks and vulnerabilities. Additionally, I am interested in using the tool for analyzing which licenses are used in the project.
However, I am uneasy as to whether the results I get are faulty or incomplete, due to the following factors:
I'll go through these in order, but first some basic info about my setup:
Setup
ort is installed in the simplest way by downloading the latest binaries, and adding them to my environment variable.
Java is likewise added to the environment variable, and I'm using the distribution that comes with Android Studio Ladybug Feature Drop | 2024.2.2 Patch 1. This version of Java is 21.0.5
ort requirements
outputs the following:Configuration
The Flutter project in question is only released on web, so in an effort to not analyze the build.gradle and other android-specific files, I have made the following configurations:
<project_folder>/.ort.yml:
~/.ort/config/config.yml:
Analyser errors
I analyze the project using the command
ort analyze -i ./ -o ./ort/analyzer
This gives the following output (13 other near identical errors removes due to character limit):
Despite the errors, this does still result in a seemingly functional analyzer-result.yml file.
Report missing information
Running
ort report -i ./ort/analyzer/analyzer-result.yml -o ./ort/reporter/cycloneDX -f CycloneDx
produces a bom.cyclonedx.json file without any errors.However, as mentioned at the beginning, this generated bill of materials does not appear to include every single dependency that I can find in the project's pubspec.lock file.
Nor does it have any license information attached to any of the listed dependencies, despite the licenses for most packages being listed on pubdev.
Questions
Thank you very much for taking the time to read this far, and I hope someone can be of help!
The text was updated successfully, but these errors were encountered: