diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index f7c5d6a8..00000000 --- a/.gitattributes +++ /dev/null @@ -1,10 +0,0 @@ -# Set the default behavior, in case people don't have core.autocrlf set. -* text=auto - -# Explicitly declare text files you want to always be normalized and converted -# to native line endings on checkout. -*.py text eol=lf -*.rst text eol=lf -*.sh text eol=lf -*.cpp text eol=lf -*.hpp text eol=lf diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index f61cce5d..00000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @cpp-linter/developers diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml deleted file mode 100644 index ef2aa53e..00000000 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Report a problem -description: Create a report to let us help you -body: - - type: textarea - attributes: - label: What events trigger your workflow? - id: ci-triggers - description: >- - Please copy and paste the workflow triggers. - If you are using a resuable workflow (`workflow_dispatch` event), - then please also include the workflow triggers that the calling workflow uses. - placeholder: |- - on: - pull_request: - branches: [main, master, develop] - paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '**CMakeLists.txt', 'meson.build', '**.cmake'] - push: - branches: [main, master, develop] - paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '**CMakeLists.txt', 'meson.build', '**.cmake'] - render: yml - validations: - required: true - - - type: textarea - id: runner-os - attributes: - label: What OS does your workflow use? - description: >- - Please tell us what OS the workflow [`runs-on`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on). - If you are using an additional [`container`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idcontainer), - then please also include that information here. - placeholder: |- - runs-on: ubuntu-latest - container: node:18 - render: yml - validations: - required: true - - - type: textarea - id: cpp-linter-config - attributes: - label: How is cpp-linter-action configured? - description: >- - Please copy and paste the version and inputs used to run cpp-linter-action. - placeholder: |- - - uses: cpp-linter/cpp-linter-action@v2 - id: linter - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - style: 'file' - tidy-checks: '' - render: yml - validations: - required: true - - - type: textarea - id: what-happened - attributes: - label: What was the unexpected behavior? - description: >- - Use this area to describe what behavior you expected and what behavior you observed. - Please be clear and concise as possible. Use screenshots if that would help. Most users - use this to paste the workflow logs. - placeholder: You can use markdown syntax here - validations: - required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index 8c3ec940..00000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,8 +0,0 @@ -# this setting will force users to use the provided issue templates -blank_issues_enabled: false -# if the templates provided don't fit the subject of the user feedback, -# here we can give links to other forms of user feedback -contact_links: - - name: cpp-linter discussions - url: https://github.com/orgs/cpp-linter/discussions - about: A place for feedback not specific to cpp-linter-action diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml deleted file mode 100644 index 24a13bfd..00000000 --- a/.github/ISSUE_TEMPLATE/feature-request.yml +++ /dev/null @@ -1,59 +0,0 @@ ---- -name: Feature request -description: Suggest an idea for this project -body: - - type: dropdown - id: existing-feature - attributes: - label: Is your idea related to an existing feature? - description: >- - If this idea is related to an already available feature(s), then please list them here. - multiple: true - options: - - version - - database - - thread-comments - - tidy-checks - - style - - lines-changed-only - - ignore - - tidy-ignore - - format-ignore - - files-changed-only - - file-annotations - - step-summary - - no-lgtm - - tidy-review - - format-review - - passive-reviews - - verbosity - - 'output: checks-failed' - - 'output: clang-tidy-checks-failed' - - 'output: clang-format-checks-failed' - - - type: textarea - id: behavior - attributes: - label: Describe the behavior you would like - description: >- - Use this area to describe what behavior you desire. - Please be clear and concise as possible. Use screenshots if that would help. - placeholder: You can use markdown syntax here - validations: - required: true - - - type: textarea - id: alternative - attributes: - label: Describe alternatives you have considered - description: >- - Were you able to achieve the desired behavior in some other/inconvenient way? - placeholder: You can use markdown syntax here - - - type: textarea - id: added-context - attributes: - label: Additional context - description: >- - If there is anything that might be special or specific to your usage, please let us know. - placeholder: You can use markdown syntax here diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 35728687..00000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,23 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: github-actions - directory: "/" - schedule: - interval: "weekly" - groups: - actions: - patterns: - - "*" - - package-ecosystem: uv - directory: / - schedule: - interval: "daily" - groups: - pip: - patterns: - - '*' diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 0d0b1c99..00000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1 +0,0 @@ -_extends: .github diff --git a/.github/workflows/cpp-linter.yml b/.github/workflows/cpp-linter.yml deleted file mode 100644 index c74f2734..00000000 --- a/.github/workflows/cpp-linter.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: cpp-linter - -on: - push: - paths: - - "docs/examples/demo/*" - pull_request: - paths: - - "docs/examples/demo/*" - - -jobs: - cpp-linter: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - - uses: cpp-linter/cpp-linter-action@main - id: linter - continue-on-error: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - style: file - files-changed-only: false - thread-comments: false - - - name: Fail fast?! - if: steps.linter.outputs.checks-failed != 0 - run: | - echo "some linter checks failed. ${{ steps.linter.outputs.checks-failed }}" - # for actual deployment - # run: exit 1 diff --git a/.github/workflows/examples/only-PR-comments.yml b/.github/workflows/examples/only-PR-comments.yml deleted file mode 100644 index d4771330..00000000 --- a/.github/workflows/examples/only-PR-comments.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: cpp-linter -on: - pull_request: - branches: [main, master, develop] - paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '**CMakeLists.txt', 'meson.build', '**.cmake'] - push: - branches: [main, master, develop] - paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '**CMakeLists.txt', 'meson.build', '**.cmake'] - -jobs: - cpp-linter: - runs-on: ubuntu-latest - permissions: # (1)! - pull-requests: write - steps: - - uses: actions/checkout@v5 - - # ... optionally setup build env to create a compilation database - - - uses: cpp-linter/cpp-linter-action@v2 - id: linter - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - style: 'file' # Use .clang-format config file. (2) - tidy-checks: '' # Use .clang-tidy config file. (3) - # only 'update' a single comment in a pull request's thread. (4) - thread-comments: ${{ github.event_name == 'pull_request' && 'update' }} - - - name: Fail fast?! - if: steps.linter.outputs.checks-failed > 0 - run: exit 1 diff --git a/.github/workflows/examples/only-clang-format.yml b/.github/workflows/examples/only-clang-format.yml deleted file mode 100644 index c7450d82..00000000 --- a/.github/workflows/examples/only-clang-format.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: cpp-linter -on: - pull_request: - branches: [main, master, develop] - paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '**CMakeLists.txt', 'meson.build', '**.cmake'] - push: - branches: [main, master, develop] - paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '**CMakeLists.txt', 'meson.build', '**.cmake'] - -jobs: - cpp-linter: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - - # ... optionally setup build env to create a compilation database - - - uses: cpp-linter/cpp-linter-action@v2 - id: linter - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - style: 'file' # Use .clang-format config file. (1) - tidy-checks: '-*' # disable clang-tidy checks. (2) - - - name: Fail fast?! - if: steps.linter.outputs.clang-format-checks-failed > 0 - run: exit 1 diff --git a/.github/workflows/examples/only-clang-tidy.yml b/.github/workflows/examples/only-clang-tidy.yml deleted file mode 100644 index e673e44b..00000000 --- a/.github/workflows/examples/only-clang-tidy.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: cpp-linter -on: - pull_request: - branches: [main, master, develop] - paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '**CMakeLists.txt', 'meson.build', '**.cmake'] - push: - branches: [main, master, develop] - paths: ['**.c', '**.cpp', '**.h', '**.hpp', '**.cxx', '**.hxx', '**.cc', '**.hh', '**CMakeLists.txt', 'meson.build', '**.cmake'] - -jobs: - cpp-linter: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - - # ... optionally setup build env to create a compilation database - - - uses: cpp-linter/cpp-linter-action@v2 - id: linter - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - style: '' # disable clang-format checks. (1) - tidy-checks: '' # Use .clang-tidy config file. (2) - - - name: Fail fast?! - if: steps.linter.outputs.clang-tidy-checks-failed > 0 - run: exit 1 diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 77558377..00000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: PR Autolabeler - -on: - # pull_request event is required for autolabeler - pull_request: - types: [opened, reopened, synchronize] - -jobs: - draft-release: - uses: cpp-linter/.github/.github/workflows/release-drafter.yml@main diff --git a/.github/workflows/mkdocs-deploy.yml b/.github/workflows/mkdocs-deploy.yml deleted file mode 100644 index b47d7ac4..00000000 --- a/.github/workflows/mkdocs-deploy.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: MkDocs Deploy - -on: - push: - branches: [main] - pull_request: - branches: [main] - workflow_dispatch: - -jobs: - build-docs: - uses: cpp-linter/.github/.github/workflows/mkdocs.yml@main diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml deleted file mode 100644 index 88e14a44..00000000 --- a/.github/workflows/pre-commit.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Run pre-commit - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - pre-commit: - uses: cpp-linter/.github/.github/workflows/pre-commit.yml@main diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml deleted file mode 100644 index 2250d389..00000000 --- a/.github/workflows/release-drafter.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Release Drafter - -on: - push: - branches: - - "main" - workflow_dispatch: - -jobs: - draft-release: - uses: cpp-linter/.github/.github/workflows/release-drafter.yml@main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index f490ff93..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Release - -on: - release: - branches: [main] - types: [released] - workflow_dispatch: - inputs: - tag: - description: 'which tag to update to' - default: 'v2' - required: true - ref: - description: 'which branch to update the tag on' - default: 'main' - required: true - -permissions: - contents: write - -jobs: - re-tag: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - with: - fetch-depth: 0 - ref: ${{ inputs.ref }} - - name: Config git name and email - run: | - git config user.name 'github-actions' - git config user.email '41898282+github-actions[bot]@users.noreply.github.com' - - name: Update rolling tag - run: | - # Get the major version from the latest tag - MAJOR_VERSION=`git tag --list --sort=-v:refname | head -n1 | cut -d. -f1` - git tag --force --annotate ${{ inputs.tag || '$MAJOR_VERSION' }} --message 'Retag ${{ inputs.tag || '$MAJOR_VERSION' }}' - git push origin ${{ inputs.tag || '$MAJOR_VERSION' }} --force diff --git a/.github/workflows/self-test.yml b/.github/workflows/self-test.yml deleted file mode 100644 index bbcf5944..00000000 --- a/.github/workflows/self-test.yml +++ /dev/null @@ -1,78 +0,0 @@ -name: Self test action - -on: - push: - branches: [main] - paths: - - 'action.yml' - - 'requirements.txt' - - 'docs/examples/demo/**' - - '.github/workflows/self-test.yml' - pull_request: - branches: main - paths: - - 'action.yml' - - 'requirements.txt' - - 'docs/examples/demo/**' - - '.github/workflows/self-test.yml' - pull_request_target: - branches: main - paths: - - 'action.yml' - - 'requirements.txt' - - 'docs/examples/demo/**' - - '.github/workflows/self-test.yml' - -jobs: - test: - permissions: - contents: write - pull-requests: write - strategy: - matrix: - os: [ ubuntu-latest, macos-latest, windows-latest ] - clang-version: ['9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21'] - fail-fast: false - runs-on: ${{ matrix.os }} - steps: - - name: Checkout - uses: actions/checkout@v5 - - - name: Cache the build artifacts - id: cache-build - uses: actions/cache@v4 - with: - path: build - key: ${{ runner.os }}-${{ hashFiles('docs/examples/demo/**') }} - - - name: Generate compilation database - if: steps.cache-build.outputs.cache-hit != 'true' - run: mkdir build && cmake -Bbuild docs/examples/demo - - - name: Self test action - uses: ./ - id: linter - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - style: file - files-changed-only: false - # to ignore all build folder contents - ignore: build|venv - database: build - verbosity: debug - version: ${{ matrix.clang-version }} - thread-comments: ${{ github.event_name == 'pull_request' && matrix.clang-version == '16' && 'update' }} - file-annotations: ${{ runner.os == 'Linux' && matrix.clang-version == '16' }} - step-summary: ${{ matrix.clang-version == '16' }} - extra-args: -std=c++14 -Wall - - - name: Fail fast?! - # if: steps.linter.outputs.checks-failed > 0 - run: | - echo "some linter checks failed" - echo "total checks-failed: ${{ steps.linter.outputs.checks-failed }}" - echo "clang-tidy checks-failed: ${{ steps.linter.outputs.clang-tidy-checks-failed }}" - echo "clang-format checks-failed: ${{ steps.linter.outputs.clang-format-checks-failed }}" - # for actual deployment - # run: exit 1 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index d726f394..00000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: 'Close stale issues' -on: - schedule: - - cron: '30 1 * * *' -permissions: {} - -jobs: - stale: - permissions: - contents: read - issues: write - pull-requests: write - uses: cpp-linter/.github/.github/workflows/stale.yml@main diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e4f88937..00000000 --- a/.gitignore +++ /dev/null @@ -1,184 +0,0 @@ -# local demo specific -.changed_files.json -clang_format*.txt -clang_tidy*.txt -act.exe -clang_tidy_output.yml -clang_format_output.xml -event_payload.json -comments.json - -#### ignores for Python -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -pip-wheel-metadata/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.nox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -*.py,cover -.hypothesis/ -.pytest_cache/ -tests/*/test*.json -tests/**/*.c - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# IPython -profile_default/ -ipython_config.py - -# pyenv -.python-version - -# pipenv -# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. -# However, in case of collaboration, if having platform-specific dependencies or dependencies -# having no cross-platform support, pipenv may install dependencies that don't work, or not -# install all needed dependencies. -#Pipfile.lock - -# PEP 582; used by e.g. github.com/David-OConnor/pyflow -__pypackages__/ - -# Celery stuff -celerybeat-schedule -celerybeat.pid - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ - -# exclude local VSCode's settings folder -.vscode/ - -#### ignores for C++ -# Prerequisites -*.d - -# Compiled Object files -*.slo -*.lo -*.o -*.obj - -# Precompiled Headers -*.gch -*.pch - -# Compiled Dynamic libraries -*.so -*.dylib -*.dll - -# Fortran module files -*.mod -*.smod - -# Compiled Static libraries -*.lai -*.la -*.a -*.lib - -# Executables -*.exe -*.out -*.app - -# Cmake build-in-source generated stuff -CMakeUserPresets.json -CMakeCache.txt -CPackConfig.cmake -CPackSourceConfig.cmake -CMakeFiles -cmake_install.cmake diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 2dbed7d0..00000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,10 +0,0 @@ -repos: - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v6.0.0 - hooks: - - id: trailing-whitespace - - id: end-of-file-fixer - - id: check-added-large-files - - id: check-yaml - # special mkdocs config to include inline icons fails (see `pymdownx.emoji` in mkdocs.yml) - args: ['--unsafe'] # use `--unsafe` to workaround yaml loading diff --git a/.readthedocs.yaml b/.readthedocs.yaml deleted file mode 100644 index c784f673..00000000 --- a/.readthedocs.yaml +++ /dev/null @@ -1,18 +0,0 @@ -# Read the Docs configuration file for MkDocs projects -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Required -version: 2 - -# Set the version of Python and other tools you might need -build: - os: ubuntu-24.04 - tools: - python: latest - jobs: - install: - - python -m pip install -U pip - - pip install --group 'docs' - -mkdocs: - configuration: mkdocs.yml diff --git a/404.html b/404.html new file mode 100644 index 00000000..6275dd79 --- /dev/null +++ b/404.html @@ -0,0 +1,490 @@ + + + +
+ + + + + + + + + + + + + + + + +
-
- Microsoft
-
- Apache
-
- NASA
-
- Samsung
-
- TheAlgorithms
-
- CachyOS
-
-
- Nextcloud
-
- Jupyter
-
- NNStreamer
-
- imgproxy
-
- Zondax
-
- AppNeta
-
-
- Chocolate Doom
- and many more.
-