Skip to content

Commit

Permalink
Updated license header for all relevant files. Updated pre-commit yam…
Browse files Browse the repository at this point in the history
…l file.
  • Loading branch information
SrikanthPagadarai committed Dec 19, 2024
1 parent 1cc71b5 commit 1a0cfb2
Show file tree
Hide file tree
Showing 97 changed files with 16,842 additions and 14,305 deletions.
3 changes: 3 additions & 0 deletions .github/license_header.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Copyright (C) 2024 Analog Devices, Inc.

SPDX short identifier: ADIBSD OR GPL-2.0-or-later
12 changes: 0 additions & 12 deletions .github/workflows/.pre-commit-config.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/workflows/license_header.txt

This file was deleted.

33 changes: 33 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
hooks:
- id: insert-license
files: bindings\/python\/genalyzer\/.*\.py$
args:
- --license-filepath
- .github/license_header.txt
- --use-current-year
- --no-extra-eol
- --detect-license-in-X-top-lines=3
- id: insert-license
files: ^(?!tests\/|examples\/).*\.((hpp|h|cpp|c))$
args:
- --comment-style
- //
- --license-filepath
- .github/license_header.txt
- --use-current-year
- --no-extra-eol
- --detect-license-in-X-top-lines=3
- repo: https://github.com/cmake-lint/cmake-lint
rev: 1.4.3
hooks:
- id: cmakelint
args:
- --linelength=200
- --filter=-readability/mixedcase,-package/consistency
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.5
hooks:
- id: clang-format
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if(BUILD_TESTS_EXAMPLES)
# Add custom target to run tests with coverage
add_custom_target(
coverage
COMMAND ${CMAKE_CTEST_COMMAND} --progress && lcov -c -d bindings/c/src -o main_coverage.info && genhtml main_coverage.info -o coverage
COMMAND ${CMAKE_CTEST_COMMAND} --progress && lcov -c -d bindings/c/src -o main_coverage.info && genhtml main_coverage.info -o coverage
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})

message(STATUS "Coverage flags enabled")
Expand Down
Loading

0 comments on commit 1a0cfb2

Please sign in to comment.