Giter Club home page Giter Club logo

Comments (3)

platisd avatar platisd commented on June 10, 2024 1

Sonarcloud seems to leave new comments, at least in the configuration I have:
image

Codecov seems to be reusing the same comment:
image

My suggestion is to make this an opt-in feature via a property in the yml file.

E.g., one_comment: true which defaults to false:

name: Duplicate code

on: pull_request

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 }}
          one_comment: true
          directories: "src/, test/ut"

Feel free to submit a pull request that provides this feature. 💯

from duplicate-code-detection-tool.

platisd avatar platisd commented on June 10, 2024

🤔 Don't know...
Assuming there's a large pull request, which includes discussions etc, it will not be obvious which version of the code the report is about. Additionally, any "progress" will not be visible either.

On what events are you having the Action triggered? My recommendation would be to trigger it only based on a keyword/comment to decrease the spam.

from duplicate-code-detection-tool.

idzm avatar idzm commented on June 10, 2024

Action is triggered by pull_request event. Many services (codecov, sonarcloud) reuse previous comment. To save history we can just rewrite previous comment.

from duplicate-code-detection-tool.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.