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

Fix supported C# version in README #1081

Merged
merged 2 commits into from
May 15, 2023
Merged

Fix supported C# version in README #1081

merged 2 commits into from
May 15, 2023

Conversation

jtotht
Copy link
Contributor

@jtotht jtotht commented May 14, 2023

The C# Language class states it supports C# 6, the README previously stated C# 8 is supported. Expression-bodied not read-only properties (supported as of C# 7.0) like this don’t parse:

public int foo { get => 4; }

which means the Language class is right and C# 8 isn’t fully supported. Since the latest version is 11, and the first unsupported version (C# 7) was released over six years ago, also reclassify C# support as “legacy”.

Copy link
Member

@tsaglam tsaglam left a comment

Choose a reason for hiding this comment

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

You are right; the ANTLR grammar only supports C# 6.
However, the legacy tag is intended for language modules from the legacy era of JPlag, which is pre-v3.0.0. We do not know how well the tokenization is implemented for these language modules and thus do not know how well it performs for plagiarism detection. So I would say leave it as beta. Let me know if you know any newer ANTLR grammar for C#.

@tsaglam tsaglam added enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change labels May 15, 2023
The C# Language class states it supports C# 6, the README previously
stated C# 8 is supported. Expression-bodied not read-only properties
(supported as of C# 7.0 [1]) like this don’t parse:

	public int foo { get => 4; }

which means the Language class is right and C# 8 isn’t fully supported.

[1] https://github.com/dotnet/docs/blob/c802a0c56bccdc87908365c0788b3c5ecacea2b3/docs/csharp/programming-guide/statements-expressions-operators/expression-bodied-members.md
@jtotht
Copy link
Contributor Author

jtotht commented May 15, 2023

I’ve updated the PR. However, according to the criteria in the wiki, it counts as legacy, as “This module is old and may only support outdated language versions. It needs an update.” Please update the criteria as well. (And no, unfortunately I don’t know newer grammars for C#.)

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@tsaglam tsaglam merged commit d4d6668 into jplag:develop May 15, 2023
@jtotht
Copy link
Contributor Author

jtotht commented May 16, 2023

Thanks! I didn’t know the canonical version of the wiki is in the repo, nice!

@tsaglam
Copy link
Member

tsaglam commented May 16, 2023

Thanks! I didn’t know the canonical version of the wiki is in the repo, nice!

We have not had that for long, but it is really nice. Our CI pushes the docs subdirectory to the internal wiki repo.

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 minor Minor issue/feature/contribution/change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants