Comments (3)
Sonarcloud seems to leave new comments, at least in the configuration I have:
Codecov seems to be reusing the same comment:
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.
🤔 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.
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)
- Request to provide output markdown file HOT 6
- Github Action fails to post when too many characters HOT 3
- Output as a CSV? HOT 11
- Reports files without duplicated code HOT 5
- Add automated tests for duplicate_code_detection.py
- Feature request: Option to filter some files from input directory HOT 1
- --ignore-directories option does work on gitbash (Windows) HOT 1
- Feature proposal: add an option to add LoC in outputs HOT 7
- No module named 'gensim' HOT 6
- How to use it HOT 8
- be suitable for code similarity check? HOT 7
- feature request: update comments for different detections HOT 11
- The Action doesn't work with pull requests from forked repos HOT 5
- clone doesn't work for private repositories HOT 2
- feature request: Ignore comments HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duplicate-code-detection-tool.