Skip to content

naivesystems/googlecpp-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo of Google C++ Style Analysis

This is a demo repository to show how to use NaiveSystems Analyze to enforce Google C++ Style Guide in your own repository.

NOTE: In our documentation, we will use // to denote the root of repositories.

Getting Started

name: Google C++ Style Analysis

on:
  push:
  pull_request:
  workflow_dispatch:

jobs:
  analyze:
    name: Analyze
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Perform Google C++ Style Analysis
        uses: naivesystems/googlecpp-action@2023.3.2.0

Use //.github/workflows/googlecpp-analysis.yml as a template to run Google C++ Style Analysis in GitHub Actions. Make sure to use the fetch-depth: 0 option provided by actions/checkout.

Analysis Results

Analysis results are currently shown as GitHub Actions annotations. A custom problem matcher is used for this purpose, so there is a limit of 10 reported results per run. Only results relevant to the current code changes are reported.

a1 a2

TODO: Publish SARIF and integrate with GitHub Code Scanning.

Rule Settings

By default, all guidelines (a.k.a. rules) in Google C++ Style Guide are enforced by the analyzer. To customize the set of rules to use or specific rule settings, create a configuration file at //.naivesystems/check_rules in your repository. The complete set of rules is listed here.

A table documenting the correspondence between the rule IDs and the actual rule texts can be found here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published