META-INF.rewrite.finders.yml Maven / Gradle / Ivy
Show all versions of rewrite-cloud-suitability-analyzer Show documentation
#
# Copyright 2021 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# 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.cloudsuitability.FindUnsuitableCode
displayName: Find code unsuitable for the cloud
description: Locate patterns that may cause problems in containerized cloud environments.
recipeList:
- org.openrewrite.cloudsuitability.FindJavaBatch
- org.openrewrite.cloudsuitability.FindJavaBatchAnnotations
- org.openrewrite.cloudsuitability.FindDistributedCacheUses
- org.openrewrite.cloudsuitability.FindCacheUses
- org.openrewrite.cloudsuitability.FindCorba
- org.openrewrite.cloudsuitability.FindEhcache
- org.openrewrite.cloudsuitability.FindEjbMdb
- org.openrewrite.cloudsuitability.FindEjbStateful
- org.openrewrite.cloudsuitability.FindEjbStateless
- org.openrewrite.cloudsuitability.FindFileIo
- org.openrewrite.cloudsuitability.FindFileScheme
- org.openrewrite.cloudsuitability.FindUnhandledTermSignal
- org.openrewrite.cloudsuitability.FindHardcodedIpAddress
- org.openrewrite.cloudsuitability.FindRemoteMethodInvocations
- org.openrewrite.cloudsuitability.FindJavaFx
- org.openrewrite.cloudsuitability.FindJaxRs
- org.openrewrite.cloudsuitability.FindJcaAnnotations
- org.openrewrite.cloudsuitability.FindJCache
- org.openrewrite.cloudsuitability.FindJersey
- org.openrewrite.cloudsuitability.FindJetty
- org.openrewrite.cloudsuitability.FindJks
- org.openrewrite.cloudsuitability.FindJms
- org.openrewrite.cloudsuitability.FindJni
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindJavaBatch
displayName: Uses of JNDI
description: The advice is to remove JNDI provider or move to TKG.
tags:
- java-batch
- java-jndi
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: javax.naming..*
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindJavaBatchAnnotations
displayName: Uses of Java Batch annotations
description: Batch processing can include long running processes.
tags:
- java-batchAnnotations
recipeList:
- org.openrewrite.java.search.FindAnnotations:
annotationPattern: '@javax.batch..*'
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindDistributedCacheUses
displayName: Uses of distributed caches
description: Distributed caches must be remediated to function in K8S.
tags:
- java-cache-dist-import
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: org.ehcache..*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: com.hazelcast..*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: org.apache.ignite..*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: org.infinispan..*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: net.spy.memcached..*
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindCacheUses
displayName: Uses of caches
description: Cloud readiness issue as potential state information that is not persisted to a backing service.
tags:
- java-cache-import
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: com.tangosol..*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: org.apache.commons-jcs-jcache..*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: com.ibm.websphere.cache..*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: com.hazelcast..*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: org.jboss.ha.cachemanager..*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: org.jboss.ha.cachemanager..*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: javax.cache..*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: net.spy.memcached..*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: com.opensymphony.oscache..*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: org.shiftone-cache..*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: com.ibm.websphere.objectgrid..*
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindCorba
displayName: Uses of CORBA
description: Replace with cloud-friendly framework or move to TKG.
tags:
- java-corba
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: org.omg.CORBA..*
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindEhcache
displayName: Uses of ehcache
description: Convert to Redis.
tags:
- java-ehcache
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: org.ehcache..*
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindEjbMdb
displayName: Find EJB message-driven beans (MDBs)
description: Consult MDB documentation.
tags:
- java-ejb-mdb
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: javax.ejb.MessageDriven
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: javax.ejb.ActivationConfigProperty
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindEjbStateful
displayName: Find EJB stateful beans
description: Refer to platform documentation.
tags:
- java-ejb-stateful-import
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: javax.ejb.Stateful
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindEjbStateless
displayName: Find EJB stateless beans
description: Refer to platform documentation.
tags:
- java-ejb-stateless
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: javax.ejb.Stateless
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindFileIo
displayName: Find uses of Java file IO
description: Move to cloud friendly alternative or TKG.
tags:
- java-fileIO
recipeList:
- org.openrewrite.java.search.FindMethods:
methodPattern: 'java.io.File *(..)'
matchOverrides: true
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: java.io.LineNumber*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: java.io.*File*
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindFileIo
displayName: Find uses of Java file IO
description: Move to cloud friendly alternative or TKG.
tags:
- java-fileIO
recipeList:
- org.openrewrite.java.search.FindMethods:
methodPattern: 'java.io.File *(..)'
matchOverrides: true
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: java.io.LineNumber*
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: java.io.*File*
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindFileScheme
displayName: Find uses of `file://` scheme in string literals
description: Use backing service or use TKG.
tags:
- java-fileSystem
recipeList:
- org.openrewrite.java.search.FindLiterals:
pattern: 'file://'
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindUnhandledTermSignal
displayName: Find unhandled TERM signals
description: For containerization, the TERM signal must be handled.
tags:
- java-handles-term
recipeList:
- org.openrewrite.java.search.FindMethods:
methodPattern: 'java.lang.Runtime addShutdownHook(..)'
matchesOverrides: false
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindHardcodedIpAddress
displayName: Find uses of hardcoded IP addresses
description: Hardcoded IP addresses are problematic in K8S.
tags:
- java-hardIP
recipeList:
- org.openrewrite.java.search.FindLiterals:
pattern: '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}'
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindRemoteMethodInvocations
displayName: Find remote method invocations
description: Remote Method Invocations are not cloud native. Move to cloud friendly alternatives such as REST endpoints.
tags:
- java-iop
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: 'javax.rmi..*'
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: 'org.omg.IOP..*'
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindJavaFx
displayName: Find use of JavaFX
description: JavaFX is not cloud compatible and requires the JRE on the remote device.
tags:
- java-java-fx-import
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: 'javafx..*'
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindJaxRs
displayName: Find use of JAX-RS
description: Refer to platform documentation.
tags:
- java-jaxrs-import
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: 'com.sun.jersey..*'
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: 'javax.ws.rs..*'
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindJcaAnnotations
displayName: Find uses of JCA
description: Java messaging can present problems in TAS due to its ephemerality. Convert to a backing service or use TKG.
tags:
- java-jcaAnnotations
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: 'javax.resource.AdministeredObjectDefinition'
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: 'javax.resource.ConnectionFactoryDefinition*'
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindJCache
displayName: Find uses of JCache
description: Convert to redis or consider TKG.
tags:
- java-jcache
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: 'javax.cache..*'
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindJersey
displayName: Find uses of Jersey
description: Refer to 3rd party organization for cloud affinity of library.
tags:
- java-jersey
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: 'com.sun.jersey..*'
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindJetty
displayName: Find uses of Jetty
description: Use managed executor.
tags:
- java-jetty
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: 'org.eclipse.jetty..*'
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindJks
displayName: Find java key store files
description: In a cloud environment, use a centralized keystore, such as Azure Key Vault or AWS Secrets Manager, to better secure sensitive information.
tags:
- java
- jks
- keystore
recipeList:
- org.openrewrite.FindSourceFiles:
filePattern: '**/*.jks'
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.cloudsuitability.FindJms
displayName: Find JMS files
description: Run embedded service broker as a JMS Provider.
tags:
- java-jms
recipeList:
- org.openrewrite.java.search.FindTypes:
fullyQualifiedTypeName: 'javax.jms..*'