https://github.com/pvlbzn/jfmt
Python interface to google java format tool.
https://github.com/pvlbzn/jfmt
Last synced: 8 months ago
JSON representation
Python interface to google java format tool.
- Host: GitHub
- URL: https://github.com/pvlbzn/jfmt
- Owner: pvlbzn
- Created: 2016-05-22T16:40:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-27T12:20:11.000Z (over 9 years ago)
- Last Synced: 2025-01-11T17:51:28.041Z (9 months ago)
- Language: Python
- Size: 9.62 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jfmt
Java code formatter. This is an interface to the [Google Java Format](https://github.com/google/google-java-format). For convinience it is stored in this repo in the `fmt` folder.### Usage
There is two ways. First one is preffered.**First** is to make an alias to jfmt:
```
# Java Code Format
alias jfmt="~/path/to/jfmt.py"
```Dont forget to change permissions `chmod +x jfmt.py`. Now you are able to run it like `cd` or whatever.
**Second** run script directly.
### Arguments
`$ jfmt` - (no arguments) script which runned without arguments will recursively walk, starting from current working directory` through earch folder and lint .java files. Be careful.
`$ jfmt /path/to/directory` - script will walk through files and directories starting from provided path.
`$ jfmt /path/to/file.java` - script will format only .java file which path is passed into it.