Skip to content

Digital-Educational-Engineering/gradestyle

Repository files navigation

GradeStyle

Build

> ./gradlew build

Run

> java -jar build/libs/GradeStyle-all.jar <properties-file>

Configuration

# The directory where repos are stored.
# If $github is true, repos will be cloned into this directory,
# otherwise each subdirectory will be considered a repo.
# Required: Yes.
repos=/path/to/repos

# The common package name accross all repos.
# Required: Yes.
package=com.example.package

# The name of the template repository.
# Required: No, Default: Last directory name in $repos.
template=template-repo

# If a style violation should be ignored if
# it is also found in the template repo.
# Required: No, Default: false.
template.ignoreViolations=true

# The output CSV report file.
# Required: No.
reports.csv=/path/to/report.csv

# The output markdown report directory.
# Required: No.
reports.md=/path/to/md

# The title of the feedback report.
# Required: No.
feedback.title=Feedback Report

# The message on the feedback report.
# Required: No.
feedback.message=Code style report

# The message to show if a report could not be generated.
# Required: No.
feedback.error=It broke!

# If GitHub should be used to get repos.
# Required: No, Default: false.
github=true

# The GitHub personal access token to use.
# Required: If $github is true.
github.token=ghp_...

# The GitHub organisation of the GitHub Classroom.
# Required: If $github is true, OR if markdown reports should have links.
github.classroom=My-GitHub-Organisation

# The GitHub Classroom assignment repo prefix.
# Required: If $github is true.
github.assignment=my-github-classroom-assignment

# If feedback should be provided on the GitHub Classroom feedback pull request.
# Required: If $github is true, Default: false.
github.feedback=true

# Style category configuration.
# Valid <category>: Formatting, ClassNames, MethodNames, VariableNames,
#                   PackageNames, Commenting, JavaDoc, PrivateMembers,
#                   Ordering, Useless, StringConcatenation, Clones, JavaFX,
#                   EarlyReturn.

# If scoring for <category> is enabled.
# Required: No, Default: false.
<category>=true

# How the comparison score is calculated.
# Valid values: ABSOLUTE, RELATIVE.
# Required: If ${<category>} is true.
<category>.mode=RELATIVE

# How scores are calculated from the comparison score.
# The maximum score is the length of the list.
# Required: If ${<category>} is true.
<category>.scores=10,15,25

# The maximum number of examples to be provided in feedback.
# Required: No, Default: Integer.MAX_VALUE.
<category>.examples=3

# Extra commenting category configuration.

# Minimum number of lines required in method to check.
# Required: If Commenting is true.
Commenting.minLines=5

# Minimum percentage of commented lines required in each method.
# Required: If Commenting is true.
Commenting.minFrequency=10

# Maximum percentage of commented lines allowed in each method.
# Required: If Commenting is true.
Commenting.maxFrequency=50

# Maximum allowed levenshtein distance of comments.
# Required: If Commenting is true.
Commenting.levenshteinDistance=10

# Minimum number of words in the JavaDoc description.
# Required: If JavaDoc is true.
JavaDoc.minWords=10

# Number of tokens required for duplicated code.
# Required: If Clones is true.
Clones.tokens=100

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages