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.
- Host: GitHub
- URL: https://github.com/kalbarczykdev/canbevar
- Owner: KalbarczykDev
- License: mit
- Created: 2025-10-04T22:44:11.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2025-10-04T22:48:02.000Z (9 months ago)
- Last Synced: 2025-10-05T00:23:24.893Z (9 months ago)
- Topics: gradle, intelij, java, jetbrains-plugin, plugin, var
- Language: Java
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)