Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hexiro opened this issue Jun 18, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@hexiro
Copy link

hexiro commented Jun 18, 2021

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 hexiro added the bug Something isn't working label Jun 18, 2021
@hexiro hexiro changed the title STR100: Calling format with insecure string. Found in 'FormattingUtility().format(log)'. STR100: Calling format with insecure string. Found in '.format(text)'. Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant