Skip to content

Rule to detect hardcoding of /tmp directory #756

Description

@ericwb

Is your feature request related to a problem? Please describe.
Implement the equivalent of B108 in Bandit.

Describe the solution you'd like
Detect creation or usage of /tmp instead of using Python's tempfile creation function.

Describe alternatives you've considered
n/a

Additional context
https://bandit.readthedocs.io/en/latest/plugins/b108_hardcoded_tmp_directory.html

Love this idea? Give it a 👍. We prioritize fulfilling features with the most 👍.

Activity

  1. added
    enhancement
    on May 5, 2025
  2. added
    new rule
    and removed
    enhancement
    on May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    new rule

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions