Skip to content

Commit

Permalink
chore: remove feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
cfabianski committed Oct 17, 2023
1 parent a2386ec commit fd69102
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
3 changes: 0 additions & 3 deletions .envrc.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ export BEARER_DISABLE_DEFAULT_RULES=true
export BEARER_EXTERNAL_RULE_DIR=$PWD/../bearer-rules/rules
export BEARER_FORCE=true
export BEARER_IGNORE_GIT=true
export BEARER_PHP_ENABLED=true
export BEARER_GOLANG_ENABLED=true
export BEARER_PYTHON_ENABLED=true
10 changes: 3 additions & 7 deletions internal/commands/process/settings/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,10 @@ var (
)

func GetSupportedRuleLanguages() map[string]bool {
phpSupported := os.Getenv("BEARER_PHP_ENABLED") == "true"
goSupported := os.Getenv("BEARER_GOLANG_ENABLED") == "true"
pythonSupported := os.Getenv("BEARER_PYTHON_ENABLED") == "true"

return map[string]bool{
"python": pythonSupported,
"php": phpSupported,
"go": goSupported,
"python": true,
"php": true,
"go": true,
"java": true,
"sql": true, // partly supported but not exposed
"ruby": true,
Expand Down

0 comments on commit fd69102

Please sign in to comment.