-
-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement copyright violation checker as part of CI #129
Comments
@marcelnormann: I was looking into adapting https://github.com/platisd/duplicate-code-detection-tool that would scan over PR-vs-PRsAbovePRID (rather then file-vs-files) for this purpose, I will further feedback on it soon as I haven't really experimented with it yet, conceptually: filtering out all PRs prior to the 2.0 and running similarity against all changes in later PRs, but I haven't done anything similar before so I am curious how well it would work tbh |
@ambientlight My idea so far was to extract all the lines of code from mapbox-gl-js that has been added after the license change and then run a search of code blocks in our PRs against it. Maybe it is a better idea to extract also all new lines of code from the maplibre repo so far and run your tool against both. Then similarity should be near to 0%. |
We should extract all the code committed into Mapbox GL JS after their 2.0 release - and index it with a "plagiarism checker" used for schools assignments - as part of the CI / PR checks - and then check the new code in the PR against the index.
IMHO these tools don't handle individual files usually they work with blocks, and they also ignore different formatting of the source code - which may be practical... |
This sounds like a better idea then mine, the similarity might not be near 0% exactly though, I wonder if common programming constructs will bump it to some base 5%-10%. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. |
Lets keep this one closed for now. After the TypeScript migration, I don't know if it will even be possible to get a copyright checker to work. Also the two projects will diverge over time more and more so that a comparison will become harder and harder. |
MapLibre need to prevent accidental copy/pasting of code from Mapbox 2.0 code. This feature should run during the CI PR workflow, doing a diff with the new 2.0 code to make sure the code wouldn't violate Mapbox's copyright.
The text was updated successfully, but these errors were encountered: