Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflow: add cppcheck action #383

Merged
merged 5 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .cndpstyle.rb

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/cppcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: cppcheck-action-test
on: [push] # yamllint disable-line rule:truthy

jobs:
build:
name: cppcheck-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: cppcheck
uses: deep5050/cppcheck-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN}}


- name: publish report
uses: mikeal/publish-to-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: 'main'
14 changes: 14 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: pre-commit

on: # yamllint disable-line rule:truthy
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
6 changes: 0 additions & 6 deletions .golangci.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"code-block-style": {
"style": "fenced"
},
"code-fence-style": {
"style": "backtick"
},
"heading-style": {
"style": "atx"
},
"hr-style": {
"style": "---"
},
"line-length": {
"strict": false,
"code_blocks": false
},
"proper-names": {
"code_blocks": false,
"names": [
"Markdown",
"markdown-it",
"markdownlint",
"markdownlint-cli2"
]
},
"strong-style": {
"style": "asterisk"
},
"table-pipe-style": {
"style": "leading_and_trailing"
},
"ul-style": {
"style": "dash"
},
"no-duplicate-header" : {
"allow_different_nesting": true
},
"MD033" : false,
"MD041": false,
"MD045": false
}
2 changes: 0 additions & 2 deletions .mdlrc

This file was deleted.

17 changes: 4 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,15 @@ repos:
- id: clang-format
types_or: [c++, c]
args: [-i, --style=file]
- repo: https://github.com/golangci/golangci-lint
rev: v1.59.1
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.9.2
hooks:
- id: golangci-lint
- repo: https://github.com/markdownlint/markdownlint.git
rev: v0.13.0
hooks:
- id: markdownlint_docker
name: Markdownlint Docker
description: Run markdown lint on your Markdown files using the project docker image
language: docker_image
files: \.(md|mdown|markdown)$
entry: markdownlint/markdownlint -c .mdlrc
- id: markdownlint-cli2-rules-docker
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
args: [--toml, cndp-codespell.precommit-toml]
additional_dependencies:
- tomli
exclude: doc/api/doxy-api-index.md|lang/rs/wireguard/patch/*
exclude: doc/api/doxy-api-index.md|lang/rs/wireguard/patch/000*.*
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# CNDP - Cloud Native Data Plane

![GitHub Workflow Status (event)](https://img.shields.io/github/actions/workflow/status/CloudNativeDataPlane/cndp/smoke.yml)
Expand Down
3 changes: 2 additions & 1 deletion examples/cnet-quic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ this test we are going to use 4433 instead.
Use two machines to make it easy to setup and configure, plus connect the
machines back to back with a cable.

<!-- markdownlint-disable MD013 -->
## Remote machine setup, this machine will not run CNDP, but use the quicly example applications

<!-- markdownlint-enable MD013 -->
Setup the interface connected to the other machine, use your own netdev
interface name

Expand Down
4 changes: 2 additions & 2 deletions usrtools/txgen/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ frames.**

\*\* (TXGen) Sounds like 'Packet-Gen'\*\*

______________________________________________________________________
---

**Copyright © \\2019-2022\\ Intel Corporation. All rights reserved.**

Expand Down Expand Up @@ -36,7 +36,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

SPDX-License-Identifier: BSD-3-Clause

______________________________________________________________________
---

## Installation

Expand Down
Loading