Skip to content

Commit

Permalink
Merge branch '__rultor'
Browse files Browse the repository at this point in the history
  • Loading branch information
rultor committed Jul 21, 2023
2 parents 494408a + a5e0481 commit 992706f
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* Asserting that path contains a file matching provided glob.
* @since 0.28.12
*/
@SuppressWarnings("JTCOP.RuleAllTestsHaveProductionClass")
@SuppressWarnings({"JTCOP.RuleAllTestsHaveProductionClass", "JTCOP.RuleCorrectTestName"})
final class ContainsFile extends TypeSafeMatcher<Path> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
@SuppressWarnings({
"PMD.TooManyMethods",
"PMD.CouplingBetweenObjects",
"JTCOP.RuleAllTestsHaveProductionClass"
"JTCOP.RuleAllTestsHaveProductionClass",
"JTCOP.RuleCorrectTestName"
})
@NotThreadSafe
public final class FakeMaven {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*
* @since 0.30
*/
@SuppressWarnings("JTCOP.RuleAllTestsHaveProductionClass")
@SuppressWarnings({"JTCOP.RuleAllTestsHaveProductionClass", "JTCOP.RuleCorrectTestName"})
public final class Logs {

/**
Expand Down
10 changes: 10 additions & 0 deletions eo-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,16 @@ SOFTWARE.
<plugin>
<groupId>com.github.volodya-lombrozo</groupId>
<artifactId>jtcop-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
<phase>
verify
</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
* @since 0.1
* @checkstyle TypeNameCheck (4 lines)
*/
@SuppressWarnings("JTCOP.RuleAllTestsHaveProductionClass")
final class EOboolEOandTest {

@Test
Expand Down
5 changes: 0 additions & 5 deletions eo-runtime/src/test/java/EOorg/EOeolang/EOboolEOnotTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@
* why we disable jtcop check.
*
* @since 0.1
* @todo #2146:30min Remove RuleAllTestsHaveProductionClass suppressing.
* This rule was suppressed because the test class is generated and jtcop can't find it in the
* classpath. So, when that feature will be implemented in the jtcop, we have to remove all
* the similar suppression's from that test package.
* jtcop issue: https://github.com/volodya-lombrozo/jtcop/issues/178
* @checkstyle TypeNameCheck (4 lines)
*/
@SuppressWarnings("JTCOP.RuleAllTestsHaveProductionClass")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
* @since 0.1
* @checkstyle TypeNameCheck (4 lines)
*/
@SuppressWarnings("JTCOP.RuleAllTestsHaveProductionClass")
final class EOboolEOwhileTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
* @since 0.23
* @checkstyle TypeNameCheck (4 lines)
*/
@SuppressWarnings("JTCOP.RuleAllTestsHaveProductionClass")
final class EObytesEOconcatTest {

@Test
Expand Down
2 changes: 1 addition & 1 deletion eo-runtime/src/test/java/EOorg/EOeolang/EOfailed.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
*
* @since 0.29
*/
@SuppressWarnings("JTCOP.RuleAllTestsHaveProductionClass")
@SuppressWarnings({"JTCOP.RuleAllTestsHaveProductionClass", "JTCOP.RuleCorrectTestName"})
final class EOfailed extends PhDefault {
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
* @since 0.19
* @checkstyle TypeNameCheck (4 lines)
*/
@SuppressWarnings("JTCOP.RuleAllTestsHaveProductionClass")
final class EOheapEOpointerEOblockTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
* @since 0.1
* @checkstyle TypeNameCheck (4 lines)
*/
@SuppressWarnings("JTCOP.RuleAllTestsHaveProductionClass")
final class EOintEOplusTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
* @since 0.1
* @checkstyle TypeNameCheck (2 lines)
*/
@SuppressWarnings("JTCOP.RuleAllTestsHaveProductionClass")
final class EOtupleEOatTest {

@Test
Expand Down
16 changes: 15 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,21 @@ SOFTWARE.
<plugin>
<groupId>com.github.volodya-lombrozo</groupId>
<artifactId>jtcop-maven-plugin</artifactId>
<version>0.1.14</version>
<version>0.1.18</version>
<configuration>
<exclusions>
<!--
@todo #2171:30min Enable RuleAssertionMessage.
This rule is disabled because lots of tests in the
project are written without assertion messages. We have
to add all messages for all assertions and then enable
that rule and remove that puzzle.
-->
<exclusion>
JTCOP.RuleAssertionMessage
</exclusion>
</exclusions>
</configuration>
<executions>
<execution>
<goals>
Expand Down

2 comments on commit 992706f

@0pdd
Copy link

@0pdd 0pdd commented on 992706f Jul 21, 2023

Choose a reason for hiding this comment

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

Puzzle 2146-8bcd793d disappeared from eo-runtime/src/test/java/EOorg/EOeolang/EOboolEOnotTest.java), that's why I closed #2171. Please, remember that the puzzle was not necessarily removed in this particular commit. Maybe it happened earlier, but we discovered this fact only now.

@0pdd
Copy link

@0pdd 0pdd commented on 992706f Jul 21, 2023

Choose a reason for hiding this comment

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

Puzzle 2171-74d15acf discovered in pom.xml) and submitted as #2297. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

Please sign in to comment.