How to write a grading rubric for coding assignments?
This is what I have for my Java assignments. Notice that this is not a programming course, but an algorithms course.


Compiling and running (8 points)

1.a 0 points if the program doesn't compile. No points for the rest. Grading complete.


1.b If the code compiles and runs:

a   Full points if it succeeds in all test cases.
b   0.5 deducted for each failing test case.


2. Readability and submission (2 points)

2.1 Documentation (Oracle official)
    a. 0.5 points for complete commenting
    b. 0.4/0.2/0 (%) if we detect 0-25/25-50/75-100 (%) missing comments where expected.
    You should at least use clear commenting for the following:

        a. Classes and interfaces
        b. Fields
        c. Methods, including all input parameters and return values

2.2 Indentation (Oracle official)

    a. 0.5 for appropriate indentation
    b. 0.4/0.2/0 (%) for 3/6/more violations


2.3 Submission:

(0) 1 points for (not) correctly following the requirements for submission.


I would appreciate your feedback on this.