Skip to content

refactor(processor): consolidate temporal and 2D NLM denoisers into a single spectral processor #329

refactor(processor): consolidate temporal and 2D NLM denoisers into a single spectral processor

refactor(processor): consolidate temporal and 2D NLM denoisers into a single spectral processor #329

Workflow file for this run

name: lint
permissions:
contents: read
on:
pull_request:
branches:
- "*"
jobs:
format-check:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install clang-format
run: |
sudo apt-get update -qq
sudo apt-get install -qq clang-format
- name: Check code formatting
run: |
find src include tests -type f \( -name "*.c" -o -name "*.h" \) \
| xargs clang-format --dry-run --Werror || {
echo "Code formatting check failed. Please run: clang-format -i <file>"
exit 1
}
static-analysis:
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq \
clang \
clang-tidy \
clang-tools \
cmake \
libsndfile1-dev
- name: Configure build
run: |
cmake -B build \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DENABLE_EXAMPLES=ON \
-DENABLE_TESTS=ON \
-DSPECBLEACH_BUILD_EXTRAS=ON
- name: Run scan-build
run: |
scan-build --status-bugs \
cmake --build build
- name: Run clang-tidy
run: |
find src include extras examples -type f \( -name "*.c" -o -name "*.h" \) | \
xargs clang-tidy -p build --config-file=.clang-tidy
cppcheck:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install cppcheck
run: |
sudo apt-get update -qq
sudo apt-get install -qq cppcheck
- name: Run cppcheck
run: |
cppcheck --enable=all --suppress=missingIncludeSystem \
--suppress=unusedFunction \
--error-exitcode=1 \
--inline-suppr \
--quiet \
src/ include/