You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 Analysison:
push:
pull_request:
workflow_dispatch:
jobs:
analyze:
name: Analyzeruns-on: ubuntu-lateststeps:
- name: Checkout repositoryuses: actions/checkout@v4with:
fetch-depth: 0
- name: Perform Google C++ Style Analysisuses: 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.
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.