Use editorconfig instead of a sprinkling of :vim: instructions
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 25 Feb 2020 23:33:18 +0000 (09:33 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 27 Feb 2020 05:58:05 +0000 (05:58 +0000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.editorconfig [new file with mode: 0644]
.gitlab-ci.yml
.gitlab-ci/check-commit.py
.gitlab-ci/generate-gitlab-ci.py
.gitlab-ci/gitlab-ci-config.yaml
.gitlab-ci/gitlab-ci.tmpl
libevdev/make-event-names.py

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..81c277e
--- /dev/null
@@ -0,0 +1,21 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[*.{c,h}]
+indent_style = tab
+tab_width = 8
+
+[*.py]
+indent_style = space
+indent_size = 4
+charset = utf-8
+
+[*.{yaml,tmpl}]
+indent_style = space
+indent_size = 2
+charset = utf-8
index 5d09e96a98b1352a425c10b66819bf9eeb3e90f4..2e2167cbd66e65faff74e6fa88dcf638ca6571f5 100644 (file)
@@ -1,5 +1,3 @@
-# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0 filetype=yaml:
-
 ########################################
 #                                      #
 # THIS FILE IS GENERATED, DO NOT EDIT  #
index b533bc4200a30b1607b4a6d2bb32315bd8325e57..ed2d897301401cedd5f105996886ecf5c48f071d 100755 (executable)
@@ -1,6 +1,4 @@
 #!/usr/bin/env python3
-# vim: set expandtab shiftwidth=4:
-# -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
 #
 # This script tests a few things against the commit messages, search for
 # `def test_` to see the actual tests run.
index f6fe5f19c933a3cb8075e687636ab18ba59e09b1..c1599489aa1508e50535673390a667878e5959f3 100755 (executable)
@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
-# vim: set expandtab shiftwidth=4:
 
 # This file generates the .gitlab-ci.yml file that defines the pipeline.
 
index 98900c7369eef2d6cc6a40d68c4f49157fed62da..3f431032d5940e12d284f04242cc6a047304ad7b 100644 (file)
@@ -1,9 +1,6 @@
-# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0:
-#
 # This file contains the configuration for the gitlab ci.
 # See the .gitlab-ci/generate-gitlab-ci.py file for more info
 
-
 distributions:
   - name: fedora
     version: '30'
index 829193a1e6f45e6d49802603ac45eca92125527e..bffc7bf312e4a67a54891920f95b73964a93c728 100644 (file)
@@ -1,5 +1,3 @@
-# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0 filetype=yaml:
-
 {# You're looking at the template here, so you can ignore the below
    warning. This is the right file to edit #}
 ########################################
index 1c9474881253efa1bfe4387edf77ef058f603e85..88addd77e3583e06a9f2c3772dde778c2ef83c19 100755 (executable)
@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
-# vim: set expandtab shiftwidth=4:
 #
 # Parses linux/input.h scanning for #define KEY_FOO 134
 # Prints C header files or Python files that can be used as