pycharm-security icon indicating copy to clipboard operation
pycharm-security copied to clipboard

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

Open hexiro opened this issue 3 years ago • 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

hexiro avatar Jun 18 '21 00:06 hexiro