An open API service indexing awesome lists of open source software.

https://github.com/kalbarczykdev/canbevar

Simple IntelliJ plugin that generates a warning when an explicit type declaration can be changed to var.
https://github.com/kalbarczykdev/canbevar

gradle intelij java jetbrains-plugin plugin var

Last synced: 2 months ago
JSON representation

Simple IntelliJ plugin that generates a warning when an explicit type declaration can be changed to var.

Awesome Lists containing this project

README

          

# Can Be Var

Simple IntelliJ plugin that generates a warning when an explicit type declaration can be changed to ***var***.

## Table of Contents
- [Requirements](#requirements)
- [Development](#development)
- [Installation](#installation)
- [Features](#features)
- [Contributing](#contributing)
- [License](#license)

## Requirements
- JDK 24
- InteliJ Community Edition or Ultimate
- Gradle

## Development
* Clone the repository

* Run
```bash
./gradlew runIde
```

* Build
```bash
./gradlew buildPlugin
```

## Installation
* Download the latest release.
* In InteliJ: Settings → Plugins → Install Plugin from Disk… → select zip.

## Features
- Generate warning when var can be used
- Provide quick fix allowing to replace the explicit type with var
- Option to change severity of warnings (not implemented)
- Option to turn of warnings (not implemented)

## Contributing
If you find any bugs or have ideas for new features contributions are welcomed.

## License

[MIT](LICENSE)