All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.rewrite.static-analysis.yml Maven / Gradle / Ivy

The newest version!
#
# Copyright 2024 the original author or authors.
# 

# Licensed under the Moderne Source Available License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at #

# https://docs.moderne.io/licensing/moderne-source-available-license #

# Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.staticanalysis.CodeCleanup displayName: Code cleanup description: Automatically cleanup code, e.g. remove unnecessary parentheses, simplify expressions. recipeList: - org.openrewrite.staticanalysis.DefaultComesLast - org.openrewrite.staticanalysis.EmptyBlock - org.openrewrite.java.format.EmptyNewlineAtEndOfFile - org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators - org.openrewrite.staticanalysis.FinalizePrivateFields - org.openrewrite.java.format.MethodParamPad - org.openrewrite.java.format.NoWhitespaceAfter - org.openrewrite.java.format.NoWhitespaceBefore - org.openrewrite.java.format.PadEmptyForLoopComponents - org.openrewrite.staticanalysis.TypecastParenPad - org.openrewrite.staticanalysis.EqualsAvoidsNull - org.openrewrite.staticanalysis.ExplicitInitialization - org.openrewrite.staticanalysis.FallThrough - org.openrewrite.staticanalysis.HideUtilityClassConstructor - org.openrewrite.staticanalysis.NeedBraces - org.openrewrite.staticanalysis.OperatorWrap - org.openrewrite.staticanalysis.UnnecessaryParentheses - org.openrewrite.staticanalysis.ReplaceThreadRunWithThreadStart - org.openrewrite.staticanalysis.ChainStringBuilderAppendCalls - org.openrewrite.staticanalysis.ReplaceStringBuilderWithString - org.openrewrite.java.ShortenFullyQualifiedTypeReferences --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.staticanalysis.ReplaceThreadRunWithThreadStart displayName: "Replace calls to `Thread.run()` with `Thread.start()`" description: "`Thread.run()` should not be called directly." recipeList: - org.openrewrite.java.ChangeMethodName: methodPattern: java.lang.Thread run() newMethodName: start tags: - RSPEC-S1217 --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.staticanalysis.CommonDeclarationSiteTypeVariances displayName: "Properly use declaration-site type variance for well-known types" description: "When using a method parameter like `Function`, it should rather be `Function`. This recipe checks for method parameters of well-known types." recipeList: - org.openrewrite.staticanalysis.DeclarationSiteTypeVariance: variantTypes: - java.util.function.Consumer - java.util.function.BiPredicate - java.util.function.DoubleFunction - java.util.function.Function - java.util.function.IntFunction - java.util.function.LongFunction - java.util.function.ObjDoubleConsumer - java.util.function.ObjIntConsumer - java.util.function.ObjLongConsumer - java.util.function.Predicate - java.util.function.Supplier - java.util.function.ToDoubleBiFunction - java.util.function.ToDoubleFunction - java.util.function.ToIntBiFunction - java.util.function.ToIntFunction - java.util.function.ToLongBiFunction - java.util.function.ToLongFunction excludeBounds: - java.lang.* tags: - RSPEC-S1217





© 2015 - 2025 Weber Informatics LLC | Privacy Policy