Skip to content

Commit

Permalink
Fixup some code quality metric issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stijn-dejongh committed Sep 25, 2024
1 parent b3085a2 commit cfab68b
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private static GivenClassesConjunction constantClasses() {
return classes().that().areAnnotatedWith(Constants.class).and().areNotAnnotations();
}

static ArchCondition<? super JavaClass> notBeInstantiatable() {
static ArchCondition<JavaClass> notBeInstantiatable() {
return new ArchCondition<>("not be instantiatable") {
@Override
public void check(JavaClass item, ConditionEvents events) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*-
* #%L
* commons
* %%
* Copyright (C) 2020 - 2024 SD Development
* %%
* Licensed under the EUPL, Version 1.1 or – as soon they will be
* approved by the European Commission - subsequent versions of the
* EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* http://ec.europa.eu/idabc/eupl5
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
* #L%
*/

package be.sddevelopment.commons.testing;

import be.sddevelopment.commons.testing.conventions.CodeConventions;
import com.tngtech.archunit.junit.AnalyzeClasses;

@AnalyzeClasses(packages = "be.sddevelopment.commons.testing")
public class ConventionsAdherenceTests implements CodeConventions {

/* This class can be empty, it is used to run the test of its parent interface
* CodeConventions. This interface contains the tests for the code conventions,
* and will execute them based on the {@code @AnalyzeClasses} annotation.
*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
* Licensed under the EUPL, Version 1.1 or – as soon they will be
* approved by the European Commission - subsequent versions of the
* EUPL (the "Licence");
*
*
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
*
* http://ec.europa.eu/idabc/eupl5
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -29,4 +29,9 @@
@AnalyzeClasses(packages = "be.sddevelopment.commons")
public class ConventionsAdherenceTests implements CodeConventions {

/* This class can be empty, it is used to run the test of its parent interface
* CodeConventions. This interface contains the tests for the code conventions,
* and will execute them based on the {@code @AnalyzeClasses} annotation.
*/

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
package be.sddevelopment.commons.access;

import static be.sddevelopment.commons.testing.ReflectionAssertionUtils.assertPrivateMemberReflectionProtection;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

import be.sddevelopment.commons.testing.naming.ReplaceUnderscoredCamelCasing;
import java.lang.reflect.Constructor;
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@
<configuration>
<excludes>
<exclude>be/sddevelopment/commons/constants/**/*.class</exclude>
<exclude>be/sddevelopment/commons/testing/conventions/**/*.class</exclude>
</excludes>
</configuration>
</plugin>
Expand Down

0 comments on commit cfab68b

Please sign in to comment.