Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/rgonslayer/ip
Browse files Browse the repository at this point in the history
  • Loading branch information
rgonslayer committed Sep 17, 2022
2 parents cbe6bd8 + 19fd66d commit 421def4
Show file tree
Hide file tree
Showing 7 changed files with 446 additions and 5 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'checkstyle'
}

repositories {
mavenCentral()
}


checkstyle {
toolVersion = '10.2'
}

dependencies {
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.5.0'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.5.0'
Expand Down
429 changes: 429 additions & 0 deletions config/checkstyle/checkstyle.xml

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions config/checkstyle/suppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>

<!DOCTYPE suppressions PUBLIC
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
"https://checkstyle.org/dtds/suppressions_1_2.dtd">

<suppressions>
<suppress checks="JavadocType" files=".*Test\.java"/>
<suppress checks="MissingJavadocMethodCheck" files=".*Test\.java"/>
</suppressions>
3 changes: 1 addition & 2 deletions src/main/java/jarvis/Jarvis.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ public static void main(String[] args) throws JarvisException {
e.printStackTrace();
}
parser.farewell();
}
catch (JarvisException e) {
} catch (JarvisException e) {
System.out.println((e));
}
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/jarvis/Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public List<Task> load() throws IOException {
if (next.charAt(4) == '1') {
taskList.get(taskList.size() - 1).mark();
}

}
if (next.charAt(0) == 'E') {
String description = next.substring(8, divisor - 1);
Expand Down
1 change: 0 additions & 1 deletion src/main/java/jarvis/exception/JarvisException.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ public class JarvisException extends Exception{
public JarvisException(String errorMessage) {
super(errorMessage);
}

@Override
public String toString() {
return "OOPS!!! " + super.getMessage();
Expand Down
1 change: 0 additions & 1 deletion src/main/java/jarvis/task/Task.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
public abstract class Task {
public String description;
public boolean isDone;

public static int count = 0;

/**
Expand Down

0 comments on commit 421def4

Please sign in to comment.