Skip to content

Commit

Permalink
Check for duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
platisd committed Feb 13, 2021
1 parent 6b9af21 commit af11fb1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/duplicate-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Duplicate code

on: pull_request

jobs:
duplicate-code-check:
name: Check for duplicate code
# Trigger the tool only when a comment containing the keyword is published in a pull request
# if: github.event.issue.pull_request && contains(github.event.comment.body, 'run_duplicate_code_detection_tool')
runs-on: ubuntu-20.04
steps:
- name: Check for duplicate code
uses: platisd/duplicate-code-detection-tool@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directories: "src"
ignore_below: 0
file_extensions: "cpp"

0 comments on commit af11fb1

Please sign in to comment.