Giter Site home page Giter Site logo

owasp-project-metrics's Introduction

OWASP Project Metrics

The goal of OWASP Project Metrics is to create an automated tool able to connect to the majority of distributed version control systems (DVCS) and generate data to measure project activity and quality using metrics and standard practices.

Links

owasp-project-metrics's People

Contributors

ebranca avatar hephex avatar samanthagroves avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

owasp-project-metrics's Issues

Missing verification of git command output

Git command output can be corrupted by git itself as there is no string handling in the output.
Characters may be missing and data order may change depending on system settings.
This condition is missing even if expected by design and has to be included.

Code to be restructured for more flexibility

Current script is not maintainable and does not ensure logical task separation.
Divide and reorganize current code output functions using following structure:
main.py

  • output/
    |--- html5.py
  • formats/
    |--- json.py
    |--- yaml.py
    |--- xml.py
  • core/
    |--- config.py
    |--- git.py
    |--- log.py
    |--- staticanalysis.py
    |--- semanticanalysis.py
  • stats/
    |--- math.py
    |--- metrics.py
    |--- activitystat.py
    |--- commitstat.py
    |--- codestat.py
    |--- datastat.py
    |--- filestat.py
    |--- securitystat.py
  • utils/
    |--- utils.py
    |--- datetime.py
    |--- timezone.py
    |--- utils.py
  • etl/
    |--- linecode.py
    |--- authors.py
    |--- commits.py
    |--- extract.py
    |--- load.py
    |--- transform.py
    |--- verify.py

Missing library for time and date interpretation

Git commit since march 2014 have a special field to record date, time and timezone.
This filed can be controlled by the client if parameter is set, or by the user as a setting in the github account.
Current git libraries are not considering timezone differences and collected data is aggregated displaying date, day, time of commit but timezone is not considered leading to incorrect data aggregation (current punchcard graph uses this broken logic).
Library is needed as every data correlation is invalid, date and time must be reported using gmt as global reference while keeping author and committer timezone data.

Missing check for file name with white spaces

Git supports creation of file names with white spaces but logical integrity is not assured if present. Code is not checking for file names with white space and has to be corrected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.