Skip to content

Commit

Permalink
2021, happy new year
Browse files Browse the repository at this point in the history
  • Loading branch information
amihaiemil committed Dec 31, 2020
1 parent 7ebd057 commit ac92cc5
Show file tree
Hide file tree
Showing 24 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2020, Self XDSD Contributors
Copyright (c) 2020-2021, Self XDSD Contributors
All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/selfxdsd/todocli/AbstractJsonArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,4 +283,4 @@ public boolean isNull(final int index) {



}
}
4 changes: 2 additions & 2 deletions src/main/java/com/selfxdsd/todocli/AbstractJsonObject.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, Self XDSD Contributors
* Copyright (c) 2020-2021, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -269,4 +269,4 @@ public JsonValue compute(String key, BiFunction<? super String, ? super JsonValu
public JsonValue merge(String key, JsonValue value, BiFunction<? super JsonValue, ? super JsonValue, ? extends JsonValue> remappingFunction) {
return delegate.merge(key, value, remappingFunction);
}
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/selfxdsd/todocli/Config.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, Self XDSD Contributors
* Copyright (c) 2020-2021, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/selfxdsd/todocli/JsonTodos.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, Self XDSD Contributors
* Copyright (c) 2020-2021, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -48,4 +48,4 @@ public JsonTodos(final Collection<Todo> todos) {
(comb, curr) -> comb)
.build());
}
}
}
4 changes: 2 additions & 2 deletions src/main/java/com/selfxdsd/todocli/JsonTodosSerializer.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, Self XDSD Contributors
* Copyright (c) 2020-2021, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -98,4 +98,4 @@ private File getFile(final boolean deleteFirst) throws URISyntaxException,
}
return file;
}
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/selfxdsd/todocli/Todo.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, Self XDSD Contributors
* Copyright (c) 2020-2021, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/selfxdsd/todocli/TodoBuilder.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, Self XDSD Contributors
* Copyright (c) 2020-2021, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/selfxdsd/todocli/TodoFinderCli.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, Self XDSD Contributors
* Copyright (c) 2020-2021, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/selfxdsd/todocli/TodoParser.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, Self XDSD Contributors
* Copyright (c) 2020-2021, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -165,4 +165,4 @@ private void addHeader(final TodoBuilder todoBuilder,
);
}

}
}
2 changes: 1 addition & 1 deletion src/main/java/com/selfxdsd/todocli/TodoVisitor.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, Self XDSD Contributors
* Copyright (c) 2020-2021, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/selfxdsd/todocli/TodosSerializer.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, Self XDSD Contributors
* Copyright (c) 2020-2021, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/selfxdsd/todocli/ConfigTestCase.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, Self XDSD Contributors
* Copyright (c) 2020-2021, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, Self XDSD Contributors
* Copyright (c) 2020-2021, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -94,4 +94,4 @@ public void shouldSerializeTodos() throws IOException {
final boolean deleted = new File(location).delete();
MatcherAssert.assertThat(deleted, Matchers.is(Boolean.TRUE));
}
}
}
2 changes: 1 addition & 1 deletion src/test/java/com/selfxdsd/todocli/TodoIdTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ public void todosWithSameTicketAndEstimationAndBodyExpectEqual() {

Assert.assertEquals(first, second);
}
}
}
4 changes: 2 additions & 2 deletions src/test/java/com/selfxdsd/todocli/TodoParserTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, Self XDSD Contributors
* Copyright (c) 2020-2021, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -301,4 +301,4 @@ public void shouldAllowPyFilesToBeParsedForTodos() throws IOException {
todos.get(2).getBody()
);
}
}
}
4 changes: 2 additions & 2 deletions src/test/java/com/selfxdsd/todocli/TodoVisitorTestCase.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, Self XDSD Contributors
* Copyright (c) 2020-2021, Self XDSD Contributors
* All rights reserved.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -80,4 +80,4 @@ public void shouldAllowJsFilesToBeParsedForTodos() throws IOException {
Mockito.verify(serializer, Mockito.atLeast(1))
.addAll(Mockito.anyCollection());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -556,4 +556,4 @@ public Map<String, Object> getInputs() {

}

}
}
2 changes: 1 addition & 1 deletion src/test/resources/IllegalTodos.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@

//@todo #111:11min Autogenerated todo

//@todo #111:11min Autogenerated
//@todo #111:11min Autogenerated
2 changes: 1 addition & 1 deletion src/test/resources/LegalTodos.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ public void methodD() {
public void methodE() {

}
}
}
2 changes: 1 addition & 1 deletion src/test/resources/PhonyClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ public void method3() {
public void method4() {
// nothing
}
}
}
2 changes: 1 addition & 1 deletion src/test/resources/RtImagesITCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ public void filterImage() throws Exception {
);
}
}
}
}
2 changes: 1 addition & 1 deletion src/test/resources/TodosEstimationsFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@

//TOOO #100:30minz This a todo with invalid minutes estimation.

//@todo #900:90days travel the world
//@todo #900:90days travel the world
2 changes: 1 addition & 1 deletion src/test/resources/TodosWithBodies.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ public void methodE() {
public void methodF() {

}
}
}

1 comment on commit ac92cc5

@charlesmike
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amihaiemil There's been a problem while parsing the to-dos in the code. Most likely, the format is not correct. Read more about the to-do format here. If you can't understand the error, just open an Issue here.

Parse result:

ERROR: README.md; puzzle at line #1; TODO found, but puzzle can't be parsed, most probably because TODO is not followed by a puzzle marker, as this page explains: https://github.com/yegor256/pdd#how-to-format
If you can't understand the cause of this issue or you don't know how to fix it, please submit a GitHub issue, we will try to help you: https://github.com/yegor256/pdd/issues. This tool is still in its beta version and we will appreciate your feedback. Here is where you can find more documentation: https://github.com/yegor256/pdd/blob/master/README.md.

Error:

Content is not allowed in prolog.

org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
	at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:261)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
	at com.selfxdsd.todos.DocumentPuzzles.process(DocumentPuzzles.java:91)
	at com.selfxdsd.todos.DocumentPuzzles.process(DocumentPuzzles.java:51)
	at com.selfxdsd.todos.SshPuzzles.process(SshPuzzles.java:109)
	at com.selfxdsd.todos.SshPuzzles.process(SshPuzzles.java:55)
	at com.selfxdsd.todos.PuzzlesComponent.review(PuzzlesComponent.java:94)
	at com.selfxdsd.todos.PuzzlesComponent$$FastClassBySpringCGLIB$$b6270321.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
	at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

Please sign in to comment.