Skip to content
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

Update getName method in used in Language class #1767

Closed
wants to merge 20 commits into from
Closed

Update getName method in used in Language class #1767

wants to merge 20 commits into from

Conversation

Mintype
Copy link

@Mintype Mintype commented May 16, 2024

Hi! This pull request does everything that issue #1497 asks for, which is to clean up the getName() methods of many of the languages. Now they just will return the language name and not the parser name. Please tell me if I did anything wrong or if I have to change anything. Thanks a lot!

@@ -25,7 +25,7 @@ public String[] suffixes() {

@Override
public String getName() {
return NAME;
return "C#";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change, you produce inconsistencies with the name constant. You should probably just adapt the constant value instead.

@tsaglam tsaglam added enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change labels May 17, 2024
@tsaglam tsaglam requested a review from a team May 17, 2024 08:17
@tsaglam
Copy link
Member

tsaglam commented May 17, 2024

Just as general feedback, while granular committing is great, your commits are very atomic, meaning they encapsulate very few changes, which would make them generally considered a bit too fine-grained. This is not a problem for this PR though, as I can squash on merge.

@tsaglam tsaglam added the language PR / Issue deals (partly) with new and/or existing languages for JPlag label May 17, 2024
Copy link

Quality Gate Passed Quality Gate passed for 'JPlag Plagiarism Detector'

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@Kr0nox
Copy link
Member

Kr0nox commented May 17, 2024

You will also need to update all names here https://github.com/jplag/JPlag/blob/develop/report-viewer/src/model/Language.ts
Depending on whether this will be a 5.1.0 or a 6.0.0 feature, we should keep the old names, to not break highlighting in these languages. @tsaglam Where do you think this PR will be included?

@tsaglam
Copy link
Member

tsaglam commented May 17, 2024

Where do you think this PR will be included?

I see this as a v6.0.0 feature, we can probably just merge this after the v5.1.0 release.

@tsaglam tsaglam added this to the 6.0.0 milestone May 17, 2024
@Mintype
Copy link
Author

Mintype commented May 17, 2024

You will also need to update all names here https://github.com/jplag/JPlag/blob/develop/report-viewer/src/model/Language.ts

Depending on whether this will be a 5.1.0 or a 6.0.0 feature, we should keep the old names, to not break highlighting in these languages. @tsaglam Where do you think this PR will be included?

Ok I'll do this!

@Mintype
Copy link
Author

Mintype commented May 17, 2024

wait a second. i forked the main branch not develop so I cant find https://github.com/jplag/JPlag/blob/develop/report-viewer/src/model/Language.ts

Should I close this pull request and make a new one with the right branch?

@Kr0nox Kr0nox linked an issue May 18, 2024 that may be closed by this pull request
@Mintype Mintype closed this by deleting the head repository May 18, 2024
@Kr0nox Kr0nox removed this from the 6.0.0 milestone May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue/PR that involves features, improvements and other changes language PR / Issue deals (partly) with new and/or existing languages for JPlag minor Minor issue/feature/contribution/change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use of getName method of Langauge
3 participants