diff --git a/pom.xml b/pom.xml index 3eae16e9e..32cc7f139 100644 --- a/pom.xml +++ b/pom.xml @@ -33,7 +33,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE. com.jcabi parent - 0.56.0 + 0.57.2 com.qulice qulice @@ -46,10 +46,9 @@ OF THE POSSIBILITY OF SUCH DAMAGE. qulice-maven-plugin qulice-pmd qulice-spi - qulice-spotbugs Quality control library, integrating together other static analysis and validation tools and instruments. - http://www.qulice.com + https://www.qulice.com 2011 Qulice.com diff --git a/qulice-spotbugs/LICENSE.txt b/qulice-spotbugs/LICENSE.txt deleted file mode 100644 index 931cee9e6..000000000 --- a/qulice-spotbugs/LICENSE.txt +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2011-2022 Qulice.com -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: 1) Redistributions of source code must retain the above -copyright notice, this list of conditions and the following -disclaimer. 2) Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following -disclaimer in the documentation and/or other materials provided -with the distribution. 3) Neither the name of the Qulice.com nor -the names of its contributors may be used to endorse or promote -products derived from this software without specific prior written -permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT -NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL -THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED -OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/qulice-spotbugs/pom.xml b/qulice-spotbugs/pom.xml deleted file mode 100644 index 8c042f245..000000000 --- a/qulice-spotbugs/pom.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - 4.0.0 - - com.qulice - qulice - 1.0-SNAPSHOT - - qulice-spotbugs - jar - qulice-spotbugs - - - com.qulice - qulice-spi - ${project.version} - - - org.junit.jupiter - junit-jupiter-api - - - org.junit.jupiter - junit-jupiter-engine - - - - - - com.github.github - site-maven-plugin - - ${project.artifactId} - - - - - - - qulice - - - - com.qulice - qulice-maven-plugin - - - duplicatefinder:.* - - - - - - - - diff --git a/qulice-spotbugs/src/main/java/com/qulice/spotbugs/SpotBugsValidator.java b/qulice-spotbugs/src/main/java/com/qulice/spotbugs/SpotBugsValidator.java deleted file mode 100644 index 82cfba49e..000000000 --- a/qulice-spotbugs/src/main/java/com/qulice/spotbugs/SpotBugsValidator.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2011-2022 Qulice.com - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: 1) Redistributions of source code must retain the above - * copyright notice, this list of conditions and the following - * disclaimer. 2) Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. 3) Neither the name of the Qulice.com nor - * the names of its contributors may be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT - * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND - * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL - * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED - * OF THE POSSIBILITY OF SUCH DAMAGE. - */ -package com.qulice.spotbugs; - -import com.qulice.spi.Environment; -import com.qulice.spi.ValidationException; -import com.qulice.spi.Validator; - -/** - * Validates source code and compiled binaries with SpotBugs. - * - * @since 0.19 - */ -public final class SpotBugsValidator implements Validator { - - @Override - public void validate(final Environment env) throws ValidationException { - throw new UnsupportedOperationException("validate not implemented"); - } - - @Override - public String name() { - return "SpotBugs"; - } - -} diff --git a/qulice-spotbugs/src/main/java/com/qulice/spotbugs/package-info.java b/qulice-spotbugs/src/main/java/com/qulice/spotbugs/package-info.java deleted file mode 100644 index a7cc86699..000000000 --- a/qulice-spotbugs/src/main/java/com/qulice/spotbugs/package-info.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) 2011-2022 Qulice.com - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: 1) Redistributions of source code must retain the above - * copyright notice, this list of conditions and the following - * disclaimer. 2) Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. 3) Neither the name of the Qulice.com nor - * the names of its contributors may be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT - * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND - * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL - * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED - * OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/** - * SpotBugs validator. - * - * @since 0.19 - */ -package com.qulice.spotbugs; diff --git a/qulice-spotbugs/src/test/java/com/qulice/spotbugs/SpotBugsValidatorTest.java b/qulice-spotbugs/src/test/java/com/qulice/spotbugs/SpotBugsValidatorTest.java deleted file mode 100644 index f4e5d8c2a..000000000 --- a/qulice-spotbugs/src/test/java/com/qulice/spotbugs/SpotBugsValidatorTest.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (c) 2011-2022 Qulice.com - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: 1) Redistributions of source code must retain the above - * copyright notice, this list of conditions and the following - * disclaimer. 2) Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. 3) Neither the name of the Qulice.com nor - * the names of its contributors may be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT - * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND - * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL - * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED - * OF THE POSSIBILITY OF SUCH DAMAGE. - */ -package com.qulice.spotbugs; - -import com.qulice.spi.Environment; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Test case for {@link SpotBugsValidator}. - * @since 0.19 - * @todo #884:30min Continue migration from FindBugs to SpotBugs. Implement - * SpotBugsValidator for this and then uncomment SpotBugsValidatorTest class - * so the minimal tests on this class can be run. Then, after all is set, - * remove FindBugs references from pom and from qulice executions. - */ -@Disabled -@SuppressWarnings("PMD.AvoidDuplicateLiterals") -public final class SpotBugsValidatorTest { - - @Test - public void passesCorrectFilesWithNoExceptions() throws Exception { - final Environment env = new Environment.Mock() - .withFile("src/main/java/Main.java", "class Main { int x = 0; }") - .withDefaultClasspath(); - new SpotBugsValidator().validate(env); - } - - @Test - public void excludesIncorrectClassFormCheck() throws Exception { - final Environment env = new Environment.Mock() - .withFile( - "target/classes/Foo.class", - "class Foo { public Foo clone() { return this; } }" - ).withExcludes("Foo").withDefaultClasspath(); - new SpotBugsValidator().validate(env); - } - - @Test - public void excludesSeveralIncorrectClassFromCheck() throws Exception { - final Environment env = new Environment.Mock() - .withFile( - "target/classes/Foo.java", - "class Foo { public Foo clone() { return this; } }" - ).withFile( - "target/classes/Bar.java", - "class Bar { public Bar clone() { return this; } }" - ).withExcludes("Foo,Bar") - .withDefaultClasspath(); - new SpotBugsValidator().validate(env); - } -} diff --git a/qulice-spotbugs/src/test/java/com/qulice/spotbugs/package-info.java b/qulice-spotbugs/src/test/java/com/qulice/spotbugs/package-info.java deleted file mode 100644 index 991fd3d0d..000000000 --- a/qulice-spotbugs/src/test/java/com/qulice/spotbugs/package-info.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) 2011-2022 Qulice.com - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: 1) Redistributions of source code must retain the above - * copyright notice, this list of conditions and the following - * disclaimer. 2) Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. 3) Neither the name of the Qulice.com nor - * the names of its contributors may be used to endorse or promote - * products derived from this software without specific prior written - * permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT - * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND - * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL - * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, - * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED - * OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/** - * Tests of SpotBugs validator. - * - * @since 0.19 - */ -package com.qulice.spotbugs;