Bear SnifferAn extension for "sniffing" out code smells (like a bear) in your Python code. Code smells are issues that may plague your code without you realising. They're are issues that don't neccesarily cause compile or runtime issues, but hint at future issues. They make code difficult to extend and maintain, and can make debugging more difficult. This extension is designed to help you identify and fix some common code smells in your code. Only works on Python files, will not work on any file without a Note that this tool is NOT EXHAUSTIVE. Bear Sniffer does not detect every possible code smell ever, just some of the common ones beginners may encounter. Once Bear Sniffer doesn't detect any more code smells we encourage you to still be thorough and check your work. FeaturesIdentifies specific code smells in the current Python file, identifiying which line(s) it's on and providing an explanation of what the smell is.
How to Open
How to UseBear Sniffer will sniff code smells in the current "focused" file when:
The UI for Bear Sniffer looks like this:
While you have Bear Sniffer open on a Python file it will show all detected smells, sorted by line number. Each line with a smell on it will be underlined with a colour indicating its urgency. Selecting a smell will expand it, presenting an explanation of what it means. This will also move your cursor to the line and highlight it.
The filter buttons at the tope of the UI indicated the number of smells in each urgency category that has been detected. The categories are presented in blue, yellow and red for minor, major and critical smells respectively. Selecting the filter will let you filter for each urgency of smell.
If you have no smells in the file it will notify you. Note that if you have Bear Sniffer open on a non-Python file, it will inform you with a helpful image.
List of Code smells detected
RequirementsRequires version 1.134.0 or greater of VSCode to use Known IssuesYour code lol. 3.0.0Final project release and submission |





