Skip to content

saurabhprakash/code-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Code Monitor

Purpose of code monitor project is to track overall activity of code across languages. There are two parts of codebase, main server which records all the activity and 2nd are various kinds of agent which are to be installed on users system for sending those reports

Prerequisite: Python3.5

For setting code in local:
  • Create a python virtual env
  • Clone code inside virtual env
  • Inside env run "pip install -r requirements.txt"
  • Install redis and run it
  • From local_settings.py.template file create "local_settings.py" file
  • Make necessary database chages

Things which can be done

  • Track each commits:
    • Download pre-commit file to your root codebase, and run "python pre-commit.py": This will install the required dependencies to your system
    • Post setup pre-commit.py downloaded above can be deleted(or remove from git tracking code)
  • Track overall status of codebase

Addtional setup specific to languages(Default setup handles for python and html):

Java setup:

  • brew install checkstyle
  •   $ cd $HOME
      $ curl -OL https://github.com/pmd/pmd/releases/download/pmd_releases%2F6.8.0/pmd-bin-6.8.0.zip
      $ unzip pmd-bin-6.8.0.zip
      $ alias pmd="$HOME/pmd-bin-6.8.0/bin/run.sh pmd"
      $ pmd -d /usr/src -R rulesets/java/quickstart.xml -f text
    
  • ln -s /pmd-bin-6.8.0/bin/run.sh /usr/local/bin/run.sh

About

code standards checker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published