https://github.com/ftomassetti/java-formatter
A tool to format Java Code
https://github.com/ftomassetti/java-formatter
Last synced: 23 days ago
JSON representation
A tool to format Java Code
- Host: GitHub
- URL: https://github.com/ftomassetti/java-formatter
- Owner: ftomassetti
- License: apache-2.0
- Created: 2015-09-07T16:20:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-03T14:08:42.000Z (about 10 years ago)
- Last Synced: 2025-05-17T11:09:23.797Z (5 months ago)
- Language: Shell
- Size: 156 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# java-formatter
A tool to format Java Code
This application is being written using the [Turin Programming Language](https://github.com/ftomassetti/turin-programming-language).
The goal is to provide an easy-to-use code formatter for Java files:
* with sensible defaults
* customizableBeing the first application being written with Turin it is also an experiment and a showcase for the language.
## Usage
Compile:
```bash
mvn compile
```Run:
```bash
mvn exec:java -Dexec.mainClass=me.tomassetti.javaformatter.JavaFormatter
```## License
Apache License 2.0
## Dependencies
This tool is based on [JavaParser](https://github.com/javaparser/javaparser) which Maven will get for you.
Until I release them on Maven central you need to clone and install locally (`mvn install`):
* [Turin compiler](http://github.com/ftomassetti/turin-programming-language)
* [Turin Maven plugin](http://github.com/ftomassetti/turin-maven-plugin)