Clone this repository and follow instruction to set eveything up.
Use a setting sync plugin (is preinstalled to modern versions of AS and IDEA). Instructions are here.
Run .installCodeStyle.sh
on Mac or Linux. Windows is not supported yet.
Import ./idea/StanfyIdeaCodeStyle.jar
to IntelliJ Idea or Android studio. You can do this from a welcome screen
(Configure -> Import settings
) or when some pr oject is opened from File -> Import Setting...
Run
./installCheckstyle.sh <project_path>
to install checkstyle rules to your project.
It will be copied to <project_path>/config/checkstyle/checkstyle.xml
.
You can configure IDEA Checkstyle plugin to use a project file or a remote URL.
See also Gradle docs.
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
You can found details here.
Comments have to be written as complete sentences.
# BAD:
# try to read the thing
# BETTER:
# Try to read the thing.
You can found details here.