Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| student:jgrasp:help [2018/08/10 13:50] – created bernstdh | student:jgrasp:help [2021/11/28 16:41] (current) – bernstdh | ||
|---|---|---|---|
| Line 35: | Line 35: | ||
| - Select the text you want to change. | - Select the text you want to change. | ||
| - | - Click on < | + | - Click on < |
| - | ==== Using checkstyle | + | |
| + | ==== Setting the End of Line Character ==== | ||
| + | |||
| + | Linux/Unix, MS-Windows, and OS X all use slightly different characters to indicate the end of a line and this can cause problems with some tools. As a general rule, it is safest to use the Linux/Unix standard. | ||
| + | |||
| + | You can instruct jGRASP to use the Unix format when you save a file by clicking on < | ||
| + | |||
| + | |||
| + | ==== Cleaning-Up Indenting ==== | ||
| + | |||
| + | |||
| + | jGRASP does not have a command that re-indents code, but you can trick it into doing so. | ||
| + | |||
| + | |||
| + | - Click on < | ||
| + | - Click on < | ||
| + | |||
| + | |||
| + | ==== Using Checkstyle | ||
| Line 50: | Line 68: | ||
| + | === Setting the checkstyle binary ("JAR file") === | ||
| + | - Download an appropriate checkstyle jar file, either provided by your instructor or from [[https:// | ||
| + | * Right-click and choose "Save Link As...' | ||
| + | * put this somewhere on the computer that you won't accidentally delete it before you're done with it. | ||
| + | - In jGRASP, click on < | ||
| === Running Checkstyle === | === Running Checkstyle === | ||
| Line 56: | Line 79: | ||
| - | ==== Cleaning-Up Indenting ==== | + | === Correcting "File does not end with a newline" |
| + | Most styleguides require that files end in a newline character. So, it is important to use the Linux/Unix [[ #Setting the End of Line Character | end of line character. ]] | ||
| - | jGRASP does not have a command that re-indents code, but you can trick it into doing so. | ||
| - | |||
| - | - Click on < | ||
| - | - Click on < | ||
| ==== Using JUnit with jGRASP ==== | ==== Using JUnit with jGRASP ==== | ||
| Line 76: | Line 96: | ||
| If you have properly configured jGRASP, the " | If you have properly configured jGRASP, the " | ||
| + | |||
| + | |||
| + | == Classpath == | ||
| Though it's not absolutely necessary (depending on how you create | Though it's not absolutely necessary (depending on how you create | ||
| Line 86: | Line 109: | ||
| - | Unless you understand what it is doint, you should probably delete | + | Unless you understand what it is doing, you should probably delete |
