izar / pytm

A Pythonic framework for threat modeling
Other
891 stars 168 forks source link

Adding a configuration file #134

Closed izar closed 3 years ago

izar commented 3 years ago

Currently the file only supports excluded threats. Locations: LIB/config.pytm, ~/.config.pytm, ./.config.pytm and ./{tm_file_name}.pytm. Format:

[Default] exclude = THREAT1,THREAT2,...

ghost commented 3 years ago

DeepCode's analysis on #cb0910 found:

Description Example fixes
New objects on identity check will always result with False, and make this expression reduntant Occurrences: :wrench: Example fixes
No value for argument 'self' in unbound method call Occurrences: :wrench: Example fixes
Comparison to literal Occurrences: :wrench: Example fixes

👉 View analysis in DeepCode’s Dashboard | Configure the bot

izar commented 3 years ago

Forgot that there is an attribute providing the same functionality.