Skip to main content

Find indicators

org.openrewrite.cobol.search.FindIndicators

Find matching indicators. Currently, this recipe will not mark indicators on copybook code.

Recipe source

GitHub: FindIndicators.java, Issue Tracker, Maven Central

This recipe is available under the Moderne Source Available License.

Options

TypeNameDescriptionExample
StringindicatorIndicator to search for.D

Usage

This recipe has required configuration parameters and can only be run by users of Moderne. To run this recipe, you will need to provide the Moderne CLI run command with the required options. Or, if you'd like to create a declarative recipe, please see the below example of a rewrite.yml file:

rewrite.yml
---
type: specs.openrewrite.org/v1beta/recipe
name: com.yourorg.FindIndicatorsExample
displayName: Find indicators example
recipeList:
- org.openrewrite.cobol.search.FindIndicators:
indicator: D

You will need to have configured the Moderne CLI on your machine before you can run the following command.

shell
mod run . --recipe FindIndicators --recipe-option "indicator=D"

If the recipe is not available locally, then you can install it using:

mod config recipes jar install org.openrewrite:rewrite-cobol:{{VERSION_ORG_OPENREWRITE_REWRITE_COBOL}}

See how this recipe works across multiple open-source repositories

Run this recipe on OSS repos at scale with the Moderne SaaS.

The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.

Please contact Moderne for more information about safely running the recipes on your own codebase in a private SaaS.

Data Tables

COBOL indicator search results

org.openrewrite.cobol.table.IndicatorSearchResult

Indicator area matches found in COBOL source code.

Column NameDescription
Source pathThe source path of the file that contains the matching indicator.
IndicatorThe indicator character found in the indicator area.
WordThe word text on the line where the indicator was found.