Coder Social home page Coder Social logo

pureact-plugin's Introduction

pureact-plugin

pureact-plugin 是一个基于 PureAct 的 VSCode 插件,可用于分析 Java 代码中的方法纯净性。插件输入为 Java 源代码文件,输出为纯净方法、非纯净方法与未知纯净性方法的方法签名。具体上,插件将读取 Maven 工程中的源代码,将其转换成抽象语法树,根据引用不变性进行方法纯净性分析。

本插件由 王启凡玄跻峰 开发。

安装要求

  1. 安装 jdk 1.8及以上环境,并添加入 PATH 环境变量。
  2. 安装 maven 3.6.3及以上版本,并添加入 PATH 环境变量或 M2_HOME 环境变量。
  3. 在 Linux 平台下使用(PureAct在Linux平台下完全测试,部分功能可能与Windwos平台不兼容)。

使用说明

安装插件后,使用前需要保证 WorkSpace 只有一个目录,且该目录为 Maven 工程项目的目录,其拥有描述工程信息的 pom.xml 文件。

主要有两个步骤:

  1. 点击工具栏 View -> Command Palette 或使用快捷键 Ctrl + Shift + P 后,选择 PureAct: Activate plugin

ToActivate

弹出消息 PureAct plugin is activated!,说明插件正常运行。

Activated

  1. 点击工具栏 View -> Command Palette 或使用快捷键 Ctrl + Shift + P 后,选择 PureAct: Start purity inference

Start

弹出消息 Start purity inference!,说明插件开始分析项目代码。

StartInfo

弹出窗口,用户可设置项目中部分“简单”方法的纯净性以辅助分析。可直接选择 OK 跳过。

UserAnswer

分析完成后,生成分析结果与分析日志的 Webview 窗口。

Output

Log

版本信息

0.0.1

初始的简易版本。

pureact-plugin's People

Contributors

qifanwang avatar

Watchers

 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.