From 519fe43d4f0f8da39197ac7809fcf0429ec2ce42 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Tue, 17 Nov 2020 23:45:32 +0100 Subject: [PATCH] Adjust PyLint log again to reduce Sentry messages --- lib/py_lint_adapter.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/py_lint_adapter.rb b/lib/py_lint_adapter.rb index 0620157a..ba3ad314 100644 --- a/lib/py_lint_adapter.rb +++ b/lib/py_lint_adapter.rb @@ -89,10 +89,7 @@ class PyLintAdapter < TestingFrameworkAdapter key.delete_suffix!(".#{default}") # Remove any custom prefix, might have no effect keys = key.split('.') final_key = keys.pop - log_missing = if %w[severity_name name regex replacement].include? final_key - # Log missing predefined keys; they should exist - I18n.t("#{key}.log_missing", locale: :de, default: true) - elsif %w[actual suggestion context line].include?(final_key) + log_missing = if %w[actual suggestion context line].include?(final_key) # SyntaxErrors: These are dynamic and won't get translated false else