From e70bc5c012dac99328b399475b8d4c457bce37f1 Mon Sep 17 00:00:00 2001 From: volodya-lombrozo Date: Mon, 13 Jan 2025 16:02:55 +0300 Subject: [PATCH] feat(#946): add one more puzzle --- .../eolang/jeo/representation/directives/DirectivesMetas.java | 4 +--- .../java/org/eolang/jeo/representation/xmir/JcabiXmlNode.java | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/eolang/jeo/representation/directives/DirectivesMetas.java b/src/main/java/org/eolang/jeo/representation/directives/DirectivesMetas.java index 0ee812546..724e02f32 100644 --- a/src/main/java/org/eolang/jeo/representation/directives/DirectivesMetas.java +++ b/src/main/java/org/eolang/jeo/representation/directives/DirectivesMetas.java @@ -75,15 +75,13 @@ ClassName className() { * @return Prefixed package name. */ private Directives pckg() { - final Directives result; final String prefixed = new PrefixedName(this.name.pckg()).encode(); - result = new Directives() + return new Directives() .add("meta") .add("head").set("package").up() .add("tail").set(prefixed).up() .add("part").set(prefixed).up() .up(); - return result; } /** diff --git a/src/main/java/org/eolang/jeo/representation/xmir/JcabiXmlNode.java b/src/main/java/org/eolang/jeo/representation/xmir/JcabiXmlNode.java index caba83eda..87f1e8cb6 100644 --- a/src/main/java/org/eolang/jeo/representation/xmir/JcabiXmlNode.java +++ b/src/main/java/org/eolang/jeo/representation/xmir/JcabiXmlNode.java @@ -157,6 +157,10 @@ public boolean hasAttribute(final String name, final String value) { @Override public void validate() { + //@checkstyle MethodBodyCommentsCheck (10 lines) + //@todo #946:30min Remove the ignore list from the 'validate' method. + // The ignore list is used to ignore some defects that we haven't implemented yet. + // We should remove the ignore list and fix the defects that are being ignored. final Collection ignore = new HashSet<>( Arrays.asList( "mandatory-home",