Skip to content

GitHub Actions that analyzes code complexity using SCC

Notifications You must be signed in to change notification settings

aziontech/scc_check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

SCC Complexity Check

This repository contains a GitHub Action that automatically analyzes code complexity using the SCC tool when a Pull Request is opened, providing metrics about complexity and lines of code differences between branches.

How to Use in Your Project

Create a workflow file in your repository (e.g., .github/workflows/complexity_check.yml) with the following content:

name: SCC Complexity Check

on:
  pull_request:
    branches: [main, master]

jobs:
  scc-check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      
      - uses: aziontech/scc_check@main

This will automatically run the SCC complexity check on your pull requests and add a comment with the complexity metrics.

About

GitHub Actions that analyzes code complexity using SCC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published