summaryrefslogtreecommitdiffstats
path: root/.editorconfig
diff options
context:
space:
mode:
authorJose Luis Duran <jlduran@users.noreply.github.com>2015-05-19 09:24:35 -0300
committerJose Luis Duran <jlduran@users.noreply.github.com>2015-05-22 08:51:07 -0300
commit2e98fc4cf4a28bdf47c06bfe2e3cea26da602d31 (patch)
treed013059f768c6baf43b8bb48cc2469d6f4e7cbe8 /.editorconfig
parentd105d6f7898a7c3b3962c1ae7d65259f9cc08f00 (diff)
downloadpfsense-2e98fc4cf4a28bdf47c06bfe2e3cea26da602d31.zip
pfsense-2e98fc4cf4a28bdf47c06bfe2e3cea26da602d31.tar.gz
Add .editorconfig file
To start with just `.php` files. According to the [Developer Style Guide](https://doc.pfsense.org/index.php/Developer_Style_Guide): - Use tabs for indentation (not spaces or a mixture of both) - Use a tab stop of 8, rather than 4 - Ensure there is NO trailing whitespace at the end of a line, for example spaces or tabs when there is no more text afterward - Ensure there is NO whitespace on empty lines. For example, a line must not contain only spaces or only tabs Additionally, I've added: - UTF-8 character encoding - LF line endings - Final newline Proposed `.editorconfig` file (`.php` files for now): ```ini ; This file is for unifying the coding style for different editors and IDEs. ; More information at http://editorconfig.org root = true [*.php] indent_style = tab tab_width = 8 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true ``` GitHub will also read and apply this style to the repo. See #1664.
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..0bb0751
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,12 @@
+; This file is for unifying the coding style for different editors and IDEs.
+; More information at http://editorconfig.org
+
+root = true
+
+[*.php]
+indent_style = tab
+tab_width = 8
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
OpenPOWER on IntegriCloud