From fd69102e4e1a34d10e8b6590f6c4255609ea8dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Fabianski?= Date: Tue, 17 Oct 2023 17:49:00 +0200 Subject: [PATCH] chore: remove feature flags --- .envrc.example | 3 --- internal/commands/process/settings/rules.go | 10 +++------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.envrc.example b/.envrc.example index faa359982..b2ec6d07e 100644 --- a/.envrc.example +++ b/.envrc.example @@ -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 diff --git a/internal/commands/process/settings/rules.go b/internal/commands/process/settings/rules.go index 16ca3721f..6c6fa3d24 100644 --- a/internal/commands/process/settings/rules.go +++ b/internal/commands/process/settings/rules.go @@ -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,