Skip to content

Commit

Permalink
Ignore arch rule violation.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Mar 13, 2024
1 parent 3480d34 commit 2e62d79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/java/edu/hm/hafner/util/ResourceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private String createString(final byte[] bytes) {
*
* @return the content represented by a byte array
*/
@SuppressWarnings({"resource", "IOResourceOpenedButNotSafelyClosed"})
@SuppressWarnings("IOResourceOpenedButNotSafelyClosed")
protected Stream<String> getTextLinesAsStream(final String text) {
return new BufferedReader(new StringReader(text)).lines();
}
Expand Down
6 changes: 5 additions & 1 deletion src/test/resources/archunit_ignore_patterns.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// empty up to now, see https://www.archunit.org/userguide/html/000_Index.html#_ignoring_violations
# see https://www.archunit.org/userguide/html/000_Index.html#_ignoring_violations

# ParserConfiguration.doCheckConsoleLogScanningPermitted does not require @POST or a permission check.
# As-implemented, it does not leak data, even if called illegally.
.*edu.hm.hafner.util.ResourceTest.*

0 comments on commit 2e62d79

Please sign in to comment.