Giter Site home page Giter Site logo

bryopsida / codemodder-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pixee/codemodder-java

0.0 0.0 0.0 2.69 MB

a framework for building java codemods

Home Page: https://codemodder.io

License: GNU Affero General Public License v3.0

Java 99.23% Kotlin 0.59% Dockerfile 0.18%

codemodder-java's Introduction

Pixee Logo

codemodder-java

This is the Java version of the Codemodder Framework, which builds on traditional codemod frameworks by providing codemods with additional context and services. Codemodder plugins inject codemods with the context and services they need to perform complex transforms.

Pluggability and the complex transforms they enable distinguish codemodder codemods from traditional codemods.

For directions on how to write your own codemods, visit the Codemodder documentation site.

Codemodder is sponsored by pixee.ai.

Developing

Follow these instructions if you intend to modify and build this project from source.

First Time Set Up

  1. Install JDK 17 for building this project. We recommend Eclipse Adoptium

  2. Install Semgrep CLI. See here for instructions. It can usually be done via pip:

    pip install semgrep

If your python library paths contain your home directory as a root folder (i.e. due to the use of the $HOME environment variable), you may need to manually set up your PYTHONPATH for tests:

PYTHONPATH=$HOME/<subpath-to-python-libs-folder> ./gradlew check

You can check your python paths with:

python -m site

Building

./gradlew assemble

Running Tests

./gradlew check

You need to be able to run Docker for some tests. Make sure you have it installed and have the necessary permissions to run with your user.

Run the Core Codemods

You can download and run the latest release from this repository in order to run the core codemods as a CLI:

$ unzip codemodder-java-codemods-<VERSION>.zip
$ sh core-codemods-<VERSION>/bin/core-codemods

In order to run them during active development from Gradle, you can use the run task:

./gradlew :core-codemods:run --args='--output /path/to/my.codetf --dry-run /path/to/project/'

codemodder-java's People

Contributors

aldrinleal avatar andrecsilva avatar arturoespinoza15 avatar bryopsida avatar carlosu7 avatar danielostrow avatar dhafley avatar drdavella avatar gilday avatar github-actions[bot] avatar nahsra avatar panjankjv avatar pixeebot[bot] avatar ryandens avatar vsomayaji avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.