Skip to content

A GitHub Action to quantify lines of code and perform complexity analysis / COCOMO cost estimation.

License

Notifications You must be signed in to change notification settings

hdmsantander/scc-docker-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCC Docker Action

This action counts the lines of code and performs complexity analysis using scc. (https://github.com/boyter/scc)

Inputs

args

Required The CLI args corresponding to the SCC tool

Outputs

scc.json

The result of the scc analysis in JSON format as a file in the root folder of the runner. This file can be uploaded as an artifact in the same workflow or can be used as is in the same job context.

Example usage

.github/workflows/main.yml

on: [push]

jobs:
  scc_job:
    runs-on: ubuntu-latest
    name: SCC analysis
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        
      - name: Execute scc.
        id: scc
        uses: hdmsantander/scc-docker-action@3.0
        with:
          args: ${{ env.workspace }} src --ci -i java -f json -o scc.json

About

A GitHub Action to quantify lines of code and perform complexity analysis / COCOMO cost estimation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published