Skip to content
This repository was archived by the owner on Apr 5, 2022. It is now read-only.
This repository was archived by the owner on Apr 5, 2022. It is now read-only.

New Metrics: Support of source code related metrics #139

@inishchith

Description

@inishchith

After the ideation of adding support to GrimoireLab to produce source code related metrics using Graal was introduced in chaoss/grimoirelab#182 and supporting discussion thread chaoss/grimoirelab#182 (comment) and a response chaoss/grimoirelab#182 (comment). I had some thoughts to get the discussion started here in order to understand the current state and future scope of additions of metrics.


Some of the ideas aligned were:

  1. License & Copyright analysis related

    • All licenses: List of licenses present in the repository.
    • License Count: Number of licenses found in a software repository.
    • Package License Declaration: A list of license declarations on the software
      package.
    • Copyright Declaration: The degree to which the project properly declares
      copyright details.
    • License Coverage: Number of files with a file notice (copyright notice + license
      notice) and ones without a file notice.
  2. Code complexity analysis related ( cyclomatic complexity, LOC )

    • LOC: Total Lines of Code
    • CCN: Cyclomatic Code Complexity of a software repository.
    • Complex Files: A list of files with higher complexity in terms of Cyclomatic Code
      Complexity (CCN) & Lines of Code (LOC).
    • Functions: Number of functions
    • Comments: Total comment lines present in the repository.

Would like to know if this is the right place for the discussion.
I'd be more than happy to join a call for the discussion :)
Would also like to have some pointers from @jgbarah @valeriocos @aswanipranjal

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions