Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

[task_02] Add problem solution (with fixes after review) #3295

[task_02] Add problem solution (with fixes after review)

[task_02] Add problem solution (with fixes after review) #3295

name: Check code duplication
on: pull_request_target
jobs:
duplicate-code-check:
name: Check for duplicate code
runs-on: ubuntu-20.04
steps:
- name: Check for duplicate code
uses: platisd/duplicate-code-detection-tool@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
file_extensions: "h, hpp, cpp, c, md"
# Only report similarities above 89%
ignore_below: 89
# If a file is more than 90% similar to another, then the job fails
fail_above: 90
# If a file is more than 91% similar to another, show a warning symbol in the report
warn_above: 91
# Leave only one comment with the report and update it for consecutive runs
one_comment: true