Skip to content

Allow for user configurable message header #4

Allow for user configurable message header

Allow for user configurable message header #4

name: Duplicate code
on: pull_request
jobs:
duplicate-code-check:
name: Check for duplicate code
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Check for duplicate code (1)
uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directories: "./"
# Only examine .h and .cpp files
file_extensions: "py"
ignore_below: 1
fail_above: 70
warn_above: 15
one_comment: true
header_message_start: '## 📌 Duplicate code detection tool report (1)'
- name: Check for duplicate code (2)
uses: ./
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directories: "./"
# Only examine .h and .cpp files
file_extensions: "py"
ignore_below: 1
fail_above: 70
warn_above: 15
one_comment: true
header_message_start: '## 📌 Duplicate code detection tool report (2)'