fossa-cli
fossa-cli copied to clipboard
[No Ticket] Track counts of experimental gradle config usage
Overview
This PR,
- tracks experimental Gradle configuration usage
- tracks experimental binary discovery usage
- tracks experimental scanner usage
Acceptance criteria
- Tracks usage of experimental Gradle config usage
- Tracks usage of experimental binary discovery
- Tracks usage of the experimental scanner
Testing plan
- Create
sandbox
mkdir sandbox
echo 'numpy' > sandbox/reqs.txt
- Create
sandbox/.fossa.yml
# file: sandbox/.fossa.yml
version: 3
experimental:
gradle:
configurations-only:
- example-1-config-to-include
- Analyze
./fossa analyze sandbox --debug --project cliPr1063 --revision 0
cat fossa.telemetry.json | jq '.cliUsageCounter'
# should see:
# {
# "ExperimentalGradleConfigurationUsage": 1
# }
Risks
N/A
References
N/A
Checklist
- [x] I added tests for this PR's change (or explained in the PR description why tests don't make sense).
- [x] If this PR introduced a user-visible change, I added documentation into
docs/. - [x] If this change is externally visible, I updated
Changelog.md. If this PR did not mark a release, I added my changes into an# Unreleasedsection at the top. - [x] If I made changes to
.fossa.ymlorfossa-deps.{json.yml}, I updateddocs/references/files/*.schema.json. You may also need to update these if you have added/removed new dependency type (e.g.pip) or analysis target type (e.g.poetry).