meta

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package meta holds the canonical, human-maintained project counts that are published in the README banner, the social-preview image, and the docs.

These constants are the single source of truth for the published numbers:

  • Detectors and Verifiers are guarded at test time against the live registries (detector.All() / verifier.All()), so adding or removing one without updating the constant fails CI. See internal/detector/registry_count_test.go and cmd/stats_test.go.
  • Sources and OutputFormats change rarely and are golden values. They are not derived at runtime on purpose: the scan command also exposes a "repos" subcommand that is not a distinct source, and selectFormatter accepts fallback aliases, so neither maps cleanly to a count.

When any of these change, run `go generate ./...` to refresh the generated stat blocks in docs/assets/banner.html and site/assets/og.svg, then re-render their PNGs (the re-render command is in each asset's header).

Index

Constants

View Source
const (
	// Detectors is the number of compile-time registered secret detectors;
	// it must equal len(detector.All()).
	Detectors = 64

	// Verifiers is the number of registered verifiers; it must equal
	// len(verifier.All()).
	Verifiers = 54

	// Sources is the number of scan sources: filesystem, git, container image,
	// S3, GCS, and Slack.
	Sources = 6

	// OutputFormats is the number of output formats: json, sarif, csv, table,
	// and github.
	OutputFormats = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Command statsgen rewrites the project's marketing-asset stat blocks from the canonical counts in internal/meta.
Command statsgen rewrites the project's marketing-asset stat blocks from the canonical counts in internal/meta.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL