Skip to content

Commit

Permalink
fix: Readd is experimental enabled method
Browse files Browse the repository at this point in the history
This method is necessary to validate if experimental feature is enabled so it can activate show annotations feature.

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
  • Loading branch information
gabibguti committed Apr 22, 2024
1 parent f81871e commit 19f8ae1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions options/options.go
Expand Up @@ -229,6 +229,13 @@ func (o *Options) Probes() []string {
return o.ProbesToRun
}

// isExperimentalEnabled returns true if experimental features were enabled via
// environment variable.
func (o *Options) isExperimentalEnabled() bool {
value, _ := os.LookupEnv(EnvVarScorecardExperimental)
return value == "1"
}

// isSarifEnabled returns true if SARIF format was specified in options or via
// environment variable.
func (o *Options) isSarifEnabled() bool {
Expand Down

0 comments on commit 19f8ae1

Please sign in to comment.