> For the complete documentation index, see [llms.txt](https://hntech.gitbook.io/blueconda-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hntech.gitbook.io/blueconda-documentation/your-first-project-beginners/reviewing-code.md).

# Reviewing Code

Let's take an example code and see what Blueconda's code review can do!

{% code title="Code Sample" lineNumbers="true" %}

```python
def add12(number):
   new_num = number + 12
   return new_num
    
def halfit(number):
    new_num = number / 2
    return new_num
    
#This is a bad comment

badlist=["apple","banana"]

name = "John"
age = 12
```

{% endcode %}

What will we do with such random code? You'll see! Paste it in your editor.

## View Variables

Variables are values that you store in your code. The sidebar of Blueconda has a Variables tab. Click it, and click the bottom button to view variables. You'll get something like this:<br>

<figure><img src="/files/XoYs2sjEfKvJwyCNUbvU" alt="" width="337"><figcaption><p>Variable list</p></figcaption></figure>

Complex Variable means the system couldn't figure out what the var was. This system is still being improved and it currently only works with simple variables.

## View Outline

The outline means the list of functions and classes in your code. To view the outline, simply press this button:

<figure><img src="/files/ziW5AlLe9BE4w8y4fWfB" alt="" width="125"><figcaption><p>The Outline (also called program tree) button</p></figcaption></figure>

The outline will be like this. Clicking one will jump to it in the code.&#x20;

<figure><img src="/files/xxo6mwPKfOThA0jRv11T" alt="" width="70"><figcaption><p>Outline window. The number printed beside it is line number. </p></figcaption></figure>

## Code Suggestions

This will suggest ways to make your code more readable. Click the Analysis tab in the sidebar and click "Analyze code for suggestions (with Flake8)". You will probably get something like this:<br>

<figure><img src="/files/OWd0KyJJvCI98aeSsyPz" alt="" width="173"><figcaption><p>This screenshot is outdated. Your version will also have line numbers given.</p></figcaption></figure>

{% hint style="info" %}
You will need to install Flake8 before using the Analysis tool. You can easily do that by going to "Library Manager" and enter the command: "pip install flake8". See [Working With Packages](/blueconda-documentation/advancing-on-experienced/working-with-packages.md) for more info.
{% endhint %}

Bear in mind, none of this will affect your code functionality. It will affect readability. Making good, understandable code is a key to becoming a good programmer. It fosters collaboration and also helps with debugging.

{% hint style="info" %}
Giving suggestions like these which make code more readable is called **Code linting.**
{% endhint %}

Clicking the button at the bottom will open a website where you can learn more about Flake8's rules.&#x20;

{% embed url="<http://flake8rules.com/>" %}
It's this link right here.
{% endembed %}

### Auto Fix Code

This small utility allows you to fix all your code's linting errors automatically. In the Analysis tab in the sidebar, just click `Make Code Neater...` , and confirm. The code will fix itself according to Python standards (PEP8).

And there you have it! Blueconda's code review features include listing variables, analyzing for suggestions, and viewing all functions.
