tonybaloney/pycharm-security

STR100: Calling format with insecure string. Found in '.format(text)'.

hexiro opened this issue · 0 comments

Describe the bug
I have a class that has a method titled format. This extension is marking calls to my custom method as insecure. I believe this is a bug because this extension is intended to only run on .format of strings.

To Reproduce
Code or Steps to reproduce the behavior:

class Test:

    def format(self, text):
        pass
        
Test().format("example")

Additional context

  • Plugin Version: 1.24.1
  • PyCharm Version: PyCharm 2021.1.2 (Professional Edition)
  • Python Version: 3.9.4