Skip to content

Commit

Permalink
read string_substitutions_usage_is_an_error from self.linter.config
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxBear authored and s0undt3ch committed Feb 1, 2024
1 parent 6f10eca commit bd7b6dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion saltpylint/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ def visit_binop(self, node):
return

if required_keys or required_num_args:
msgid = 'W1321'
if self.linter.config.string_substitutions_usage_is_an_error:
msgid = 'E1321'
else:
msgid = 'W1321'
self.add_message(
msgid, node=node.left, args=node.left.value
)
Expand Down

0 comments on commit bd7b6dc

Please sign in to comment.