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

[Janice Ong] Duke Increments #102

Open
wants to merge 110 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 50 commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
65f72a8
Add support for Gradle workflow
j-lum Aug 6, 2019
0112efe
Add sample checkstyle configuration
j-lum Aug 12, 2019
cfd6da7
Change file mode on `gradle` to be executable
j-lum Aug 18, 2019
6e6ace1
Merge pull request #12 from j-lum/gradle+x
j-lum Aug 18, 2019
a3ca5a4
Add configuration for console applications
j-lum Aug 20, 2019
7b60e81
Merge pull request #13 from j-lum/javaexec
j-lum Aug 21, 2019
c4678f7
JavaFX tutorial: Support cross-platform JARs
j-lum Sep 20, 2019
30efbae
JavaFX tutorial: Support cross-platform JARs [#16]
damithc Oct 7, 2019
3239a33
Merge branch 'gradle'
J-Dan23 Jan 19, 2020
57e9502
feat: added gradle
J-Dan23 Jan 21, 2020
d96a62f
Level-1
J-Dan23 Jan 21, 2020
aa0ff80
Level-2
J-Dan23 Jan 21, 2020
2abe09b
A-Classes
J-Dan23 Jan 21, 2020
be9398f
Level-3
J-Dan23 Jan 21, 2020
681a7c6
feat: changed Task from general class to abstract class
J-Dan23 Jan 21, 2020
77b10fa
A-Inheritance
J-Dan23 Jan 21, 2020
cfa99ab
Level-4
J-Dan23 Jan 21, 2020
b3e6d6d
A-TextUiTesting
J-Dan23 Jan 22, 2020
de4902b
feat: TaskHandler to offload main class's work
J-Dan23 Jan 22, 2020
ee7a16e
feat: Create base DukeException and extended EmptyFieldException
J-Dan23 Jan 22, 2020
c2119f7
feat: minor change from printTaskDetails method to toString, allowing…
J-Dan23 Jan 22, 2020
eeadc34
fix: change Boxer's printing of task details to toString methods
J-Dan23 Jan 22, 2020
8b90004
fix: removed array print statement
J-Dan23 Jan 22, 2020
7520581
feat: added exceptionHandler object creation
J-Dan23 Jan 22, 2020
63d2264
feat: defined ExceptionHandler
J-Dan23 Jan 22, 2020
7316fc3
fix: ExceptionHandler now correctly identifies empty description desp…
J-Dan23 Jan 22, 2020
d40b10a
Level-5
J-Dan23 Jan 22, 2020
d94837e
A-Exceptions
J-Dan23 Jan 22, 2020
a4db595
Level-6
J-Dan23 Jan 22, 2020
991b12d
feat: Removed Boxer; combined wiht TaskHandler, added getIsDone to Task
J-Dan23 Jan 30, 2020
b7e5046
Level-7
J-Dan23 Jan 30, 2020
172a10b
Merge branch 'branch-Level-7'
J-Dan23 Jan 30, 2020
0f66914
feat: Added standardised Date object
J-Dan23 Jan 30, 2020
3cedd34
feat: changed String date property to LocalDate object
J-Dan23 Jan 30, 2020
b590bab
Merge branch 'branch-Level-8'
J-Dan23 Jan 30, 2020
a92b806
fix: Added date-related methods back after conflict
J-Dan23 Jan 30, 2020
8255778
feat: savedata file. To be overriden upon leaving program
J-Dan23 Jan 30, 2020
2583094
fix: Added load function back into TaskHandler. Changed fullsaver to …
J-Dan23 Jan 30, 2020
7e62b6d
fix: Fixed line.split bug using | as dilineator
J-Dan23 Jan 31, 2020
0f3b1a7
feat: add Parser, Ui, Storage classes
J-Dan23 Feb 2, 2020
12a8d46
feat: remove code that has been shifted to new classes
J-Dan23 Feb 2, 2020
eb2a7e6
feat: add TaskList class
J-Dan23 Feb 2, 2020
8325e3e
feat: refactor code for OOP purposes. Currently cannot catch exceptions
J-Dan23 Feb 2, 2020
2f6e166
fix: remove unused class files and packages
J-Dan23 Feb 2, 2020
eac5527
feat: add new Exception types
J-Dan23 Feb 2, 2020
922c03d
feat: add methods to Exception classes
J-Dan23 Feb 2, 2020
0b912ff
feat: modify Parser and TaskList to use the new Exceptions
J-Dan23 Feb 2, 2020
bbc1dc4
feat: add JUnit test module, basic DukeTest class
J-Dan23 Feb 3, 2020
2750801
improvement: change exceptions thrown
J-Dan23 Feb 3, 2020
f1809ad
feat: add DukeTest with two basic test methods (Todo and Event)
J-Dan23 Feb 3, 2020
5fd6bd6
fix: fix saving function
J-Dan23 Feb 3, 2020
852bfdb
feat: add find command
J-Dan23 Feb 3, 2020
0542147
chore: update savedata
J-Dan23 Feb 3, 2020
be66f16
chore: add javadocs
J-Dan23 Feb 3, 2020
509c8d3
fix: add description for params
J-Dan23 Feb 3, 2020
faf284c
chore: add javadocs for Parser class.
J-Dan23 Feb 3, 2020
f5619cb
chore: tweak code to follow Java coding standards
J-Dan23 Feb 4, 2020
74a4e44
Merge branch 'branch-Level-9'
J-Dan23 Feb 4, 2020
a9f9b3e
fix: fix merge conflicts
J-Dan23 Feb 4, 2020
c61192e
Merge branch 'branch-A-CodingStandard'
J-Dan23 Feb 4, 2020
c5e34ee
feat: add gradle
J-Dan23 Feb 5, 2020
9d3c5e6
fix: stop tracking savedata.txt file
J-Dan23 Feb 5, 2020
b0e2f51
fix: fix code verbosity, errors from merge conflict resolution
J-Dan23 Feb 5, 2020
5bf6ce0
fix: fix code verbosity, errors from merge conflict resolution
J-Dan23 Feb 5, 2020
f1371bd
fix: gitignore save data
J-Dan23 Feb 5, 2020
7e62b63
feat: add launcher from JavaFX tutorials
J-Dan23 Feb 5, 2020
11f8c63
feat: add more JavaFX related code
J-Dan23 Feb 5, 2020
7b8d55e
feat: add JavaFX tutorial 3 related code
J-Dan23 Feb 6, 2020
b2c4885
feat: add JavaFX tutorial 3 related code
J-Dan23 Feb 6, 2020
2fd5fd9
fix: remove ExceptionHandler
J-Dan23 Feb 12, 2020
b087341
feat: add JavaFX proper
J-Dan23 Feb 13, 2020
80dd9e0
fix: fix exceptions to work without ExceptionHandler, code to work wi…
J-Dan23 Feb 13, 2020
63d3310
fix: change public methods that are only used within another public m…
J-Dan23 Feb 13, 2020
6e71649
feat: add basic throwing of AssertionError in switch case
J-Dan23 Feb 13, 2020
dabb9e3
fix: move JavaFX related files
J-Dan23 Feb 13, 2020
0414d51
fix: enable assert in gradle
J-Dan23 Feb 13, 2020
8c8e8e5
feat: add Tag class
J-Dan23 Feb 13, 2020
8fe2e42
feat: add constructor to Task abstract class to reduce redundant code…
J-Dan23 Feb 13, 2020
25ac014
feat: add adding of Tag functionality, Tasks print present tags via t…
J-Dan23 Feb 13, 2020
a6cfd87
feat: add shadowjar capability into build.gradle
J-Dan23 Feb 21, 2020
4df9cbb
feat: add assert
J-Dan23 Feb 29, 2020
0df73bc
chore: add assert comment
J-Dan23 Feb 29, 2020
f5c4672
Merge pull request #6 from J-Dan23/branch-A-Assertions
J-Dan23 Feb 29, 2020
869830c
fix: DukeTest now works with Event constructor that uses LocalDate ob…
J-Dan23 Feb 29, 2020
94ce305
feat: chatbot now saves task list after every command
J-Dan23 Feb 29, 2020
a51cc18
chore: improve code formatting for better readability
J-Dan23 Feb 29, 2020
1b94de0
chore: improve code formatting for better readability
J-Dan23 Mar 1, 2020
b7e4a3e
Merge pull request #7 from J-Dan23/branch-A-CodeQuality
J-Dan23 Mar 1, 2020
2ef3891
chore: add overview and todo feature to user guide
J-Dan23 Mar 1, 2020
93fe74d
fix: assert should not be triggering
J-Dan23 Mar 1, 2020
c5eff09
fix: data saves after every command
J-Dan23 Mar 1, 2020
7de9879
fix: more code optimisation (and commmented out tag save/loading)
J-Dan23 Mar 1, 2020
a2908d5
fix: more code optimisation (and commmented out tag save/loading)
J-Dan23 Mar 1, 2020
90a95c4
chore: update User Guide
J-Dan23 Mar 1, 2020
61a1305
Merge branch 'master' of https://github.com/J-Dan23/duke
J-Dan23 Mar 1, 2020
fc5548c
chore: update User Guide
J-Dan23 Mar 1, 2020
825e227
chore: update User Guide
J-Dan23 Mar 1, 2020
9b4b0f9
chore: update User Guide
J-Dan23 Mar 1, 2020
7e1d974
chore: update User Guide
J-Dan23 Mar 1, 2020
b9059da
chore: update User Guide
J-Dan23 Mar 1, 2020
a6b9283
chore: update User Guide
J-Dan23 Mar 1, 2020
6b728a1
Set theme jekyll-theme-slate
J-Dan23 Mar 1, 2020
3441136
chore: update User Guide
J-Dan23 Mar 1, 2020
268a683
Merge remote-tracking branch 'origin/master'
J-Dan23 Mar 1, 2020
655da5c
chore: update User Guide
J-Dan23 Mar 1, 2020
af91257
chore: update User Guide
J-Dan23 Mar 2, 2020
a104ae1
fix: wrong deadline and event commands now detected
J-Dan23 Mar 2, 2020
1390658
fix: remove tag save/loading code from Storage
J-Dan23 Mar 2, 2020
d35a607
chore: update User Guide with contents page and numbering
J-Dan23 Mar 2, 2020
f345d65
chore: update User Guide with contents page and numbering
J-Dan23 Mar 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
plugins {
id 'java'
id 'application'
}

group 'seedu.duke'
version '0.1.0'

repositories {
mavenCentral()
}

application {
// Change this to your main class.
mainClassName = "Duke"
}

run {
standardInput = System.in
}
257 changes: 257 additions & 0 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">

<!--
Checkstyle configuration that checks the Google coding conventions from Google Java Style
that can be found at https://google.github.io/styleguide/javaguide.html
Checkstyle is very configurable. Be sure to read the documentation at
http://checkstyle.sf.net (or in your downloaded distribution).
To completely disable a check, just comment it out or delete it from the file.
Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
-->

<module name = "Checker">
<property name="charset" value="UTF-8"/>

<property name="severity" value="error"/>

<property name="fileExtensions" value="java, properties, xml"/>
<!-- Excludes all 'module-info.java' files -->
<!-- See https://checkstyle.org/config_filefilters.html -->
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value="module\-info\.java$"/>
</module>
<!-- Checks for whitespace -->
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
<module name="FileTabCharacter">
<property name="eachLine" value="true"/>
</module>

<module name="TreeWalker">
<module name="OuterTypeFilename"/>
<module name="IllegalTokenText">
<property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
<property name="format"
value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
<property name="message"
value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
</module>
<module name="AvoidEscapedUnicodeCharacters">
<property name="allowEscapesForControlCharacters" value="true"/>
<property name="allowByTailComment" value="true"/>
<property name="allowNonPrintableEscapes" value="true"/>
</module>
<module name="LineLength">
<property name="max" value="120"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>
<module name="AvoidStarImport"/>
<module name="OneTopLevelClass"/>
<module name="NoLineWrap"/>
<module name="EmptyBlock">
<property name="option" value="TEXT"/>
<property name="tokens"
value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
</module>
<module name="NeedBraces"/>
<module name="LeftCurly"/>
<module name="RightCurly">
<property name="id" value="RightCurlySame"/>
<property name="tokens"
value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE,
LITERAL_DO"/>
</module>
<module name="RightCurly">
<property name="id" value="RightCurlyAlone"/>
<property name="option" value="alone"/>
<property name="tokens"
value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT,
INSTANCE_INIT"/>
</module>
<module name="WhitespaceAround">
<property name="allowEmptyConstructors" value="true"/>
<property name="allowEmptyLambdas" value="true"/>
<property name="allowEmptyMethods" value="true"/>
<property name="allowEmptyTypes" value="true"/>
<property name="allowEmptyLoops" value="true"/>
<message key="ws.notFollowed"
value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
<message key="ws.notPreceded"
value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
</module>
<module name="OneStatementPerLine"/>
<module name="MultipleVariableDeclarations"/>
<module name="ArrayTypeStyle"/>
<module name="MissingSwitchDefault"/>
<module name="FallThrough"/>
<module name="UpperEll"/>
<module name="ModifierOrder"/>
<module name="EmptyLineSeparator">
<property name="allowNoEmptyLineBetweenFields" value="true"/>
</module>
<module name="SeparatorWrap">
<property name="id" value="SeparatorWrapDot"/>
<property name="tokens" value="DOT"/>
<property name="option" value="nl"/>
</module>
<module name="SeparatorWrap">
<property name="id" value="SeparatorWrapComma"/>
<property name="tokens" value="COMMA"/>
<property name="option" value="EOL"/>
</module>
<module name="SeparatorWrap">
<!-- ELLIPSIS is EOL until https://github.com/google/styleguide/issues/258 -->
<property name="id" value="SeparatorWrapEllipsis"/>
<property name="tokens" value="ELLIPSIS"/>
<property name="option" value="EOL"/>
</module>
<module name="SeparatorWrap">
<!-- ARRAY_DECLARATOR is EOL until https://github.com/google/styleguide/issues/259 -->
<property name="id" value="SeparatorWrapArrayDeclarator"/>
<property name="tokens" value="ARRAY_DECLARATOR"/>
<property name="option" value="EOL"/>
</module>
<module name="SeparatorWrap">
<property name="id" value="SeparatorWrapMethodRef"/>
<property name="tokens" value="METHOD_REF"/>
<property name="option" value="nl"/>
</module>
<module name="PackageName">
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
<message key="name.invalidPattern"
value="Package name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="TypeName">
<message key="name.invalidPattern"
value="Type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="MemberName">
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
<message key="name.invalidPattern"
value="Member name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="ParameterName">
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
<message key="name.invalidPattern"
value="Parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="LambdaParameterName">
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
<message key="name.invalidPattern"
value="Lambda parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="CatchParameterName">
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
<message key="name.invalidPattern"
value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="LocalVariableName">
<property name="tokens" value="VARIABLE_DEF"/>
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
<message key="name.invalidPattern"
value="Local variable name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="ClassTypeParameterName">
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
<message key="name.invalidPattern"
value="Class type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="MethodTypeParameterName">
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
<message key="name.invalidPattern"
value="Method type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="InterfaceTypeParameterName">
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
<message key="name.invalidPattern"
value="Interface type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="NoFinalizer"/>
<module name="GenericWhitespace">
<message key="ws.followed"
value="GenericWhitespace ''{0}'' is followed by whitespace."/>
<message key="ws.preceded"
value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
<message key="ws.illegalFollow"
value="GenericWhitespace ''{0}'' should followed by whitespace."/>
<message key="ws.notPreceded"
value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
</module>
<module name="Indentation">
<property name="basicOffset" value="4"/>
<property name="braceAdjustment" value="0"/>
<property name="caseIndent" value="0"/>
<property name="throwsIndent" value="4"/>
<property name="lineWrappingIndentation" value="4"/>
<property name="arrayInitIndent" value="4"/>
</module>
<module name="AbbreviationAsWordInName">
<property name="ignoreFinal" value="false"/>
<property name="allowedAbbreviationLength" value="1"/>
</module>
<module name="OverloadMethodsDeclarationOrder"/>
<module name="VariableDeclarationUsageDistance"/>
<module name="MethodParamPad"/>
<module name="NoWhitespaceBefore">
<property name="tokens"
value="COMMA, SEMI, POST_INC, POST_DEC, DOT, ELLIPSIS, METHOD_REF"/>
<property name="allowLineBreaks" value="true"/>
</module>
<module name="ParenPad"/>
<module name="OperatorWrap">
<property name="option" value="NL"/>
<property name="tokens"
value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR,
LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF "/>
</module>
<module name="AnnotationLocation">
<property name="id" value="AnnotationLocationMostCases"/>
<property name="tokens"
value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF"/>
</module>
<module name="AnnotationLocation">
<property name="id" value="AnnotationLocationVariables"/>
<property name="tokens" value="VARIABLE_DEF"/>
<property name="allowSamelineMultipleAnnotations" value="true"/>
</module>
<module name="NonEmptyAtclauseDescription"/>
<module name="JavadocTagContinuationIndentation"/>
<module name="SummaryJavadoc">
<property name="forbiddenSummaryFragments"
value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
</module>
<module name="JavadocParagraph"/>
<module name="AtclauseOrder">
<property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
<property name="target"
value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
</module>
<module name="JavadocMethod">
<property name="scope" value="public"/>
<property name="allowMissingParamTags" value="true"/>
<property name="allowMissingThrowsTags" value="true"/>
<property name="allowMissingReturnTag" value="true"/>
<property name="allowedAnnotations" value="Override, Test"/>
<property name="allowThrowsTagsForSubclasses" value="true"/>
</module>
<module name="MissingJavadocMethod">
<property name="scope" value="public"/>
<property name="minLineCount" value="2"/>
<property name="allowedAnnotations" value="Override, Test"/>
</module>
<module name="MethodName">
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
<message key="name.invalidPattern"
value="Method name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="SingleLineJavadoc">
<property name="ignoreInlineTags" value="false"/>
</module>
<module name="EmptyCatchBlock">
<property name="exceptionVariableName" value="expected"/>
</module>
<module name="CommentsIndentation"/>
</module>
</module>
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading