Skip to content

Commit 3550917

Browse files
authored
Merge remote-tracking branch 'origin/main' into add-merch
# Conflicts: # mkdocs.yml
2 parents dce463c + 524b977 commit 3550917

7 files changed

Lines changed: 110 additions & 247 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout Repository
13-
uses: actions/checkout@v6
13+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
1414
with:
1515
persist-credentials: false
1616

1717
- name: Set up Python
18-
uses: actions/setup-python@v6
18+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
1919
with:
2020
python-version: '3.x'
2121

2222
- name: Install Dependencies
2323
run: pipx run nox -s docs
2424

2525
- name: Upload docs build as artifact
26-
uses: actions/upload-pages-artifact@v4
26+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
2727
with:
2828
name: ${{ github.event.repository.name }}_docs
2929
path: ${{ github.workspace }}/site
@@ -44,6 +44,6 @@ jobs:
4444
steps:
4545
- name: Deploy to GitHub Pages
4646
id: deployment
47-
uses: actions/deploy-pages@v4
47+
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
4848
with:
4949
artifact_name: ${{ github.event.repository.name }}_docs

‎.pre-commit-config.yaml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
ci:
2+
autofix_prs: true
3+
autofix_commit_msg: 'chore: auto fixes from pre-commit.com hooks'
4+
autoupdate_commit_msg: 'chore: pre-commit autoupdate'
5+
16
repos:
27
- repo: https://github.com/pre-commit/pre-commit-hooks
38
rev: v6.0.0
@@ -8,7 +13,7 @@ repos:
813
- id: check-added-large-files
914
- id: check-merge-conflict
1015
- repo: https://github.com/astral-sh/ruff-pre-commit
11-
rev: v0.13.3
16+
rev: v0.15.22
1217
hooks:
1318
- id: ruff-check
1419
- id: ruff-format

‎README.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,22 @@
11
# cpp-linter.github.io
2+
3+
[![Website](https://img.shields.io/static/v1?logo=googlechrome&logoColor=white&label=Website&message=cpp-linter.github.io&color=yellow)](https://cpp-linter.github.io/)
4+
[![GitHub Org](https://img.shields.io/badge/github-cpp--linter-181717?logo=github)](https://github.com/cpp-linter)
5+
[![License](https://img.shields.io/github/license/cpp-linter/cpp-linter.github.io)](LICENSE)
6+
[![MkDocs](https://img.shields.io/badge/docs-MkDocs%20Material-526CFE?logo=materialformkdocs&logoColor=white)](https://cpp-linter.github.io/)
7+
8+
Documentation website for the `cpp-linter` project and organization.
9+
10+
This repository hosts the public site at <https://cpp-linter.github.io/>, including the homepage, getting started guides, and community links for the C/C++ linting ecosystem around `cpp-linter`.
11+
12+
## Website
13+
14+
- Main site: <https://cpp-linter.github.io/>
15+
- GitHub organization: <https://github.com/cpp-linter>
16+
17+
## What You'll Find
18+
19+
- Project overview and landing page content
20+
- Getting started documentation
21+
- Clang tools distribution guides (static binaries, Docker images, Python wheels)
22+
- Discussion and community entry points

‎docs/getting-started.md‎

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,28 @@
22

33
Welcome to cpp-linter! This guide will help you integrate C/C++ linting into your workflow quickly and efficiently.
44

5+
## What is cpp-linter?
6+
7+
cpp-linter connects the standard LLVM linting tools, `clang-format` and `clang-tidy`, to the places where C/C++ projects need checks: pull requests, pre-commit hooks, local scripts, and CI jobs.
8+
9+
- `clang-format` checks formatting against a named style or your `.clang-format` file.
10+
- `clang-tidy` runs static-analysis and modernization checks, usually configured by `.clang-tidy`.
11+
- cpp-linter wraps those tools into integrations with consistent defaults, reporting, and failure controls.
12+
513
## Choose Your Integration
614

715
<!-- markdownlint-disable MD033 -->
816

917
Select the method that best fits your development workflow:
1018

19+
| Use case | Recommended entry point |
20+
| --- | --- |
21+
| GitHub pull request checks | [cpp-linter-action](https://cpp-linter.github.io/cpp-linter-action/) |
22+
| Local checks before commits | [cpp-linter-hooks](https://github.com/cpp-linter/cpp-linter-hooks) |
23+
| Custom scripts or CI jobs | [cpp-linter CLI (Python)](https://pypi.org/project/cpp-linter/) |
24+
| High-performance local runs | [cpp-linter-rs (Rust)](https://github.com/cpp-linter/cpp-linter-rs) |
25+
26+
1127
<div class="grid cards" markdown>
1228

1329
- :material-github: **GitHub Actions**
@@ -30,15 +46,15 @@ Select the method that best fits your development workflow:
3046

3147
[Get started with pre-commit →](https://github.com/cpp-linter/cpp-linter-hooks){ .md-button .md-button--primary }
3248

33-
- :fontawesome-brands-python: **Command Line**
49+
- :fontawesome-brands-python: **Command Line (Python)**
3450

3551
---
3652

3753
Core Python package for cpp-linter-action behind the scenes
3854

3955
**Perfect for:** Local development, custom scripts, one-off analysis
4056

41-
[Get started with cpp-linter package →](https://cpp-linter.github.io/cpp-linter/){ .md-button .md-button--primary }
57+
[Get started with cpp-linter package →](https://pypi.org/project/cpp-linter/){ .md-button .md-button--primary }
4258

4359
- :simple-rust: **Command Line (Rust)**
4460

@@ -48,38 +64,56 @@ Select the method that best fits your development workflow:
4864

4965
**Perfect for:** Local development, custom scripts, one-off analysis
5066

51-
[Get started with cpp-linter-rs →](https://cpp-linter.github.io/cpp-linter-rs/){ .md-button .md-button--primary }
67+
[Get started with cpp-linter-rs →](https://github.com/cpp-linter/cpp-linter-rs){ .md-button .md-button--primary }
5268

5369
</div>
5470

55-
## Clang Tools Distribution
71+
## Clang Tools — Simplified
72+
73+
We provide ready-to-use **binaries**, **Docker images**, and **Python wheels** of key clang tools:
5674

5775
<div class="grid cards" markdown>
5876

5977
- :fontawesome-brands-github: **clang-tools-static-binaries**
6078

6179
---
6280

63-
Distribution clang tools static binaries for various platforms
81+
Statically-linked `clang-format`, `clang-tidy`, `clang-query`, `clang-apply-replacements`, and `clang-include-cleaner` binaries for Linux, macOS, and Windows
6482

6583
[Download from →](https://github.com/cpp-linter/clang-tools-static-binaries){ .md-button .md-button--primary }
6684

6785
- :fontawesome-brands-docker: **clang-tools-docker**
6886

6987
---
7088

71-
Distribution clang tools Docker images for various platforms
89+
Docker images with pre-installed `clang-format` and `clang-tidy`
7290

7391
[Download from →](https://github.com/cpp-linter/clang-tools-docker){ .md-button .md-button--primary }
7492

7593
- :fontawesome-brands-python: **clang-tools-wheels**
7694

7795
---
7896

79-
Distribution clang tools Python wheels for various platforms
97+
Redistribute `clang-format` and `clang-tidy` Python wheels
8098

8199
[Download from →](https://github.com/cpp-linter/clang-tools-wheel){ .md-button .md-button--primary }
82100

101+
- :fontawesome-brands-python: **clang-apply-replacements**
102+
103+
---
104+
105+
Install `clang-apply-replacements` via pip — standalone Python wheel
106+
107+
[Install from PyPI →](https://pypi.org/project/clang-apply-replacements/){ .md-button .md-button--primary }
108+
109+
- :fontawesome-brands-python: **clang-include-cleaner**
110+
111+
---
112+
113+
Install `clang-include-cleaner` via pip — detects unused `#include` directives
114+
115+
[Install from PyPI →](https://pypi.org/project/clang-include-cleaner/){ .md-button .md-button--primary }
116+
83117
</div>
84118

85119
## Easy Installation
@@ -90,7 +124,7 @@ Select the method that best fits your development workflow:
90124

91125
---
92126

93-
Easy installation of clang tools static binaries via pip
127+
Install `clang-format`, `clang-tidy`, `clang-query`, `clang-apply-replacements`, and `clang-include-cleaner` via static binaries or Python wheels using a single CLI
94128

95129
[Get started with clang-tools CLI →](https://cpp-linter.github.io/clang-tools-pip/){ .md-button .md-button--primary }
96130

@@ -102,4 +136,12 @@ Select the method that best fits your development workflow:
102136

103137
[Get started with asdf →](https://github.com/cpp-linter/asdf-clang-tools){ .md-button .md-button--primary }
104138

139+
- :fontawesome-brands-apple: **Homebrew Tap**
140+
141+
---
142+
143+
Install `clang-format`, `clang-tidy`, `clang-query`, `clang-apply-replacements`, and `clang-include-cleaner` via Homebrew — no compilation required
144+
145+
[Get started with Homebrew →](https://github.com/cpp-linter/homebrew-tap){ .md-button .md-button--primary }
146+
105147
</div>

‎docs/index.md‎

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ title: C/C++ Linting
7474
<span>CachyOS</span>
7575
</div>
7676
<div class="logo-item">
77-
<img src="https://github.com/imgproxy.png" alt="Imgproxy" title="Imgproxy">
78-
<span>Imgproxy</span>
77+
<img src="https://github.com/qualcomm.png" alt="Qualcomm" title="Qualcomm">
78+
<span>Qualcomm</span>
7979
</div>
8080
<div class="logo-item">
8181
<img src="https://github.com/zondax.png" alt="Zondax" title="Zondax">
@@ -125,10 +125,14 @@ title: C/C++ Linting
125125
<img src="https://github.com/openMSL.png" alt="OpenMSL" title="OpenMSL">
126126
<span>OpenMSL</span>
127127
</div>
128-
<div class="logo-item">
128+
<div class="logo-item">
129129
<img src="https://github.com/xemu-project.png" alt="Xemu Project" title="Xemu Project">
130130
<span>Xemu Project</span>
131131
</div>
132+
<div class="logo-item">
133+
<img src="https://github.com/bloomberg.png" alt="Bloomberg" title="Bloomberg">
134+
<span>Bloomberg</span>
135+
</div>
132136
</div>
133137

134138
<!-- <div class="stats-grid">
@@ -177,20 +181,12 @@ title: C/C++ Linting
177181
```yaml
178182
repos:
179183
- repo: https://github.com/cpp-linter/cpp-linter-hooks
180-
rev: v1.1.8 # Use the tag or commit you want
184+
rev: v1.5.0 # Use the tag or commit you want
181185
hooks:
182-
- id: clang-format
186+
- id: clang-format
183187
args: [--style=Google] # Other coding style: LLVM, GNU, Chromium, Microsoft, Mozilla, WebKit.
184-
- id: clang-tidy
185-
args:
186-
- --checks='boost-*
187-
- bugprone-*
188-
- performance-*
189-
- readability-*
190-
- portability-*
191-
- modernize-*
192-
- clang-analyzer-*
193-
- cppcoreguidelines-*'
188+
- id: clang-tidy
189+
args: [--checks=-*,bugprone-*,performance-*,readability-*]
194190
```
195191

196192
=== "Command Line"

0 commit comments

Comments
 (0)