Skip to content

pashonic/Code-Reviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

Python Code Reviewer

Description

I wrote a review script for python code for my own use but maybe you can use it. It detects issues specific to my own coding standard. It can both find and fix issues. I use it for work and personal projects.

Restrictions

  • Python 2.6 to 2.7

Usage

python CodeReview.py help

python CodeReview.py [file]* [Directory]* [fix =(1| true |0| false)]?
                         [linecheck =(1| true |0| false)]?

    No Arguments Given = fix =0 and linecheck =0 and script will
                         scan all python files in working directory.

    Argument Details:
    file -      File to scan
                Note: Multiple files can be given.

    directory - Directory to recursively search for files to scan
                Note: Multiple directories can be given

    fix -       Option to fix found issues
                Default = Disabled

    linecheck - Enabled line check mode
                Default = Disabled.
                Note: linecheck =1 will disable fix.

    Example call:
    python CodeReview.py file2fix.py fix =1

About

Python Code Review Script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages