From d2db1b655c71827a2e3475211ec95973251ce6f6 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Fri, 26 Apr 2024 14:22:47 -0700 Subject: [PATCH] Add SCC badges and GH action --- .github/.wordlist.txt | 5 +++++ .github/workflows/lint.yml | 13 +++++++++++++ README.md | 2 ++ 3 files changed, 20 insertions(+) diff --git a/.github/.wordlist.txt b/.github/.wordlist.txt index 1a72aff..9f57e2a 100644 --- a/.github/.wordlist.txt +++ b/.github/.wordlist.txt @@ -1,5 +1,7 @@ +boyter brightgreen CentOS +COCOMO codebase contrib Distros @@ -22,9 +24,12 @@ QAT QuickAssit repo rubocop +scc +sloc src SRIOV svg vagrantup VFS VirtualBox +xyz diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c5dd2d0..2766c92 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,6 +15,19 @@ on: pull_request: jobs: + get-sloc: + name: Count Lines of Code + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.3 + - name: Setup Go + uses: actions/setup-go@v5.0.0 + with: + go-version: '>=1.20.0' + - name: Install dependencies + run: go install github.com/boyter/scc/v3@latest + - name: Run scc tool + run: scc --format wide check-broken-links: name: Check documentation external links runs-on: ubuntu-latest diff --git a/README.md b/README.md index cd8eb90..26b91b5 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ [![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop) ![visitors](https://visitor-badge.laobi.icu/badge?page_id=electrocucaracha.bootstrap-vagrant) +[![Scc Code Badge](https://sloc.xyz/github/electrocucaracha/bootstrap-vagrant?category=code)](https://github.com/boyter/scc/) +[![Scc COCOMO Badge](https://sloc.xyz/github/electrocucaracha/bootstrap-vagrant?category=cocomo)](https://github.com/boyter/scc/) This project was created to ensure that [setup.sh](setup.sh) bash script is able to install [Vagrant tool][1] in different Linux Distributions. It covers the