Skip to content

Commit

Permalink
add back blacklisted_functions using "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 a4821b5 commit 966852c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions saltpylint/blacklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,15 @@ class BlacklistedFunctionsChecker(BaseChecker):

def open(self):
self.blacklisted_functions = {}
blacklist = [
x.strip() for x in self.linter.config.blacklisted_functions.split(',')]
for item in blacklist:
try:
key, val = [x.strip() for x in item.split('=')]
except ValueError:
pass
else:
self.blacklisted_functions[key] = val

def _get_full_name(self, node):
try:
Expand Down

0 comments on commit 966852c

Please sign in to comment.