diff --git a/.gitignore b/.gitignore index 76cd170215..421ac09561 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ /local.properties # idea files: exclude everything except dictionnaries .idea/caches -.idea/codeStyles .idea/libraries .idea/*.xml .DS_Store diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000000..c7053d60c5 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,158 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000000..79ee123c2b --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 489ec94b55..8e08a921fb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,6 +11,7 @@ Dedicated room for RiotX: [![RiotX Android Matrix room #riot-android:matrix.org] ## Android Studio settings Please set the "hard wrap" setting of Android Studio to 160 chars, this is the setting we use internally to format the source code (Menu `Settings/Editor/Code Style` then `Hard wrap at`). +Please ensure that your using the project formatting rules (which are in the project at .idea/codeStyles/), and format the file before committing them. ## Compilation