What is Snippet Tuning?
Snippet tuning is the process of configuring detection thresholds and matching behavior to suit your specific needs. SCANOSS uses advanced fingerprinting algorithms to identify code similarities and tuning parameters let you control how sensitive this detection should be.When to Use CLI vs scanoss.json
Use CLI parameters when:
- Testing different configurations
- One-off scans with specific requirements
- Overriding baseline settings for particular scans
- Running automated scans with varying sensitivity
scanoss.json when:
- Establishing baseline behavior for your project
- Ensuring consistent scans across team members
- Defining project-wide detection policies
- Version controlling your scanning configuration
Parameter Reference
min_snippet_hits
Sets the minimum number of snippet matches required before reporting a component.
CLI Usage:
min_snippet_lines
Sets the minimum number of lines a code snippet must span to be considered a match.
CLI Usage:
ranking_enabled
Controls whether origin project score quality is taken into account during matching.
CLI Usage:
ranking_threshold
Sets the minimum ranking score (0-10) required for matches to be reported. Use -1 for server default.
CLI Usage: