Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into bug/final
Browse files Browse the repository at this point in the history
  • Loading branch information
dabico committed Sep 30, 2023
2 parents cb6e03e + 915d5d5 commit e58d9e3
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 5 deletions.
8 changes: 8 additions & 0 deletions checkstyle-suppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suppressions PUBLIC
"-//Puppy Crawl//DTD Suppressions 1.1//EN"
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">

<suppressions>
<suppress files=".+/test/.+" checks="[a-zA-Z0-9]*"/>
</suppressions>
4 changes: 4 additions & 0 deletions checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<property name="fileExtensions" value="java"/>
<property name="severity" value="error"/>

<module name="SuppressionFilter">
<property name="file" value="checkstyle-suppressions.xml" />
</module>

<module name="FileTabCharacter"/>
<module name="NewlineAtEndOfFile"/>

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/ch/usi/si/seart/treesitter/LanguageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ public Stream<? extends Arguments> provideArguments(ExtensionContext extensionCo
void testAssociatedWithThrows(Class<Throwable> throwableType, Path path) {
Assertions.assertThrows(throwableType, () -> Language.associatedWith(path));
}
}
}
4 changes: 2 additions & 2 deletions src/test/java/ch/usi/si/seart/treesitter/PointTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void testIsNotOrigin() {
Assertions.assertFalse(_1_1_.isOrigin());
Assertions.assertFalse(_2_2_.isOrigin());
}

@Test
void testCompareTo() {
List<Point> sorted = List.of(_0_0_, _0_1_, _1_0_, _1_1_);
Expand Down Expand Up @@ -65,4 +65,4 @@ void testThrows() {
Assertions.assertThrows(NullPointerException.class, () -> _0_0_.add(null));
Assertions.assertThrows(NullPointerException.class, () -> _0_0_.subtract(null));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class QueryCursorTest extends TestBase {

@BeforeAll
static void beforeAll() {
parser = Parser.builder().language(language).build();;
parser = Parser.builder().language(language).build();
tree = parser.parse(source);
root = tree.getRootNode();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ protected String getExpected() {
protected TreePrinter getPrinter(TreeCursor cursor) {
return new SymbolicExpressionPrinter(cursor);
}
}
}

0 comments on commit e58d9e3

Please sign in to comment.