[phodav] Add .editorconfig
- From: Marc-André Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [phodav] Add .editorconfig
- Date: Thu, 9 Jul 2020 08:02:52 +0000 (UTC)
commit 292d23ddd0a9da1bd5c6b37becc4a9670909b944
Author: Marc-André Lureau <marcandre lureau redhat com>
Date: Thu Jul 9 12:00:59 2020 +0400
Add .editorconfig
& remove emacs modelines.
Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>
.editorconfig | 23 +++++++++++++++++++++++
bin/chezdav.c | 1 -
libphodav/phodav-if.c | 1 -
libphodav/phodav-lock.c | 1 -
libphodav/phodav-lock.h | 1 -
libphodav/phodav-method-delete.c | 1 -
libphodav/phodav-method-get.c | 1 -
libphodav/phodav-method-lock.c | 1 -
libphodav/phodav-method-mkcol.c | 1 -
libphodav/phodav-method-movecopy.c | 1 -
libphodav/phodav-method-propfind.c | 1 -
libphodav/phodav-method-proppatch.c | 1 -
libphodav/phodav-method-put.c | 1 -
libphodav/phodav-method-unlock.c | 1 -
libphodav/phodav-multistatus.c | 1 -
libphodav/phodav-multistatus.h | 1 -
libphodav/phodav-path.c | 1 -
libphodav/phodav-path.h | 1 -
libphodav/phodav-priv.h | 1 -
libphodav/phodav-server.c | 1 -
libphodav/phodav-server.h | 1 -
libphodav/phodav-utils.c | 1 -
libphodav/phodav-utils.h | 1 -
libphodav/phodav.h | 1 -
24 files changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..c227ff3
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,23 @@
+# EditorConfig is a file format and collection of text editor plugins
+# for maintaining consistent coding styles between different editors
+# and IDEs. Most popular editors support this either natively or via
+# plugin.
+#
+# Check https://editorconfig.org for details.
+
+root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = true
+charset = utf-8
+
+[*.[ch]]
+indent_size = 2
+indent_style = space
+max_line_length = 100
+tab_width = 8
+
+[meson.build]
+indent_size = 2
+indent_style = space
diff --git a/bin/chezdav.c b/bin/chezdav.c
index 23e0e01..ab75b5a 100644
--- a/bin/chezdav.c
+++ b/bin/chezdav.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav-if.c b/libphodav/phodav-if.c
index 0d0496b..5d3e79e 100644
--- a/libphodav/phodav-if.c
+++ b/libphodav/phodav-if.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2014 Red Hat, Inc.
*
diff --git a/libphodav/phodav-lock.c b/libphodav/phodav-lock.c
index d6ada40..6828890 100644
--- a/libphodav/phodav-lock.c
+++ b/libphodav/phodav-lock.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2014 Red Hat, Inc.
*
diff --git a/libphodav/phodav-lock.h b/libphodav/phodav-lock.h
index ec93b8c..e0a2e70 100644
--- a/libphodav/phodav-lock.h
+++ b/libphodav/phodav-lock.h
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2014 Red Hat, Inc.
*
diff --git a/libphodav/phodav-method-delete.c b/libphodav/phodav-method-delete.c
index 21069b7..fd7f88c 100644
--- a/libphodav/phodav-method-delete.c
+++ b/libphodav/phodav-method-delete.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav-method-get.c b/libphodav/phodav-method-get.c
index dc5803e..f9a967d 100644
--- a/libphodav/phodav-method-get.c
+++ b/libphodav/phodav-method-get.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav-method-lock.c b/libphodav/phodav-method-lock.c
index 35d01f9..76c290c 100644
--- a/libphodav/phodav-method-lock.c
+++ b/libphodav/phodav-method-lock.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav-method-mkcol.c b/libphodav/phodav-method-mkcol.c
index b1bef4b..f2490cf 100644
--- a/libphodav/phodav-method-mkcol.c
+++ b/libphodav/phodav-method-mkcol.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav-method-movecopy.c b/libphodav/phodav-method-movecopy.c
index b01cc7b..0619824 100644
--- a/libphodav/phodav-method-movecopy.c
+++ b/libphodav/phodav-method-movecopy.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav-method-propfind.c b/libphodav/phodav-method-propfind.c
index b025ded..d0dc0ae 100644
--- a/libphodav/phodav-method-propfind.c
+++ b/libphodav/phodav-method-propfind.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav-method-proppatch.c b/libphodav/phodav-method-proppatch.c
index ad8c683..4724bba 100644
--- a/libphodav/phodav-method-proppatch.c
+++ b/libphodav/phodav-method-proppatch.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav-method-put.c b/libphodav/phodav-method-put.c
index 20eae0e..4715d06 100644
--- a/libphodav/phodav-method-put.c
+++ b/libphodav/phodav-method-put.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav-method-unlock.c b/libphodav/phodav-method-unlock.c
index c13982a..8f51991 100644
--- a/libphodav/phodav-method-unlock.c
+++ b/libphodav/phodav-method-unlock.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav-multistatus.c b/libphodav/phodav-multistatus.c
index f9ecd44..12a2594 100644
--- a/libphodav/phodav-multistatus.c
+++ b/libphodav/phodav-multistatus.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav-multistatus.h b/libphodav/phodav-multistatus.h
index 480f8ac..a81984a 100644
--- a/libphodav/phodav-multistatus.h
+++ b/libphodav/phodav-multistatus.h
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav-path.c b/libphodav/phodav-path.c
index 22b8853..7135e32 100644
--- a/libphodav/phodav-path.c
+++ b/libphodav/phodav-path.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2014 Red Hat, Inc.
*
diff --git a/libphodav/phodav-path.h b/libphodav/phodav-path.h
index 65b6355..0915752 100644
--- a/libphodav/phodav-path.h
+++ b/libphodav/phodav-path.h
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2014 Red Hat, Inc.
*
diff --git a/libphodav/phodav-priv.h b/libphodav/phodav-priv.h
index 460ae83..1957ead 100644
--- a/libphodav/phodav-priv.h
+++ b/libphodav/phodav-priv.h
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2014 Red Hat, Inc.
*
diff --git a/libphodav/phodav-server.c b/libphodav/phodav-server.c
index 0a81f5d..16ba852 100644
--- a/libphodav/phodav-server.c
+++ b/libphodav/phodav-server.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav-server.h b/libphodav/phodav-server.h
index dd00564..9c37779 100644
--- a/libphodav/phodav-server.h
+++ b/libphodav/phodav-server.h
@@ -1,4 +1,3 @@
-/* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
Copyright (C) 2013 Red Hat, Inc.
diff --git a/libphodav/phodav-utils.c b/libphodav/phodav-utils.c
index 9e28805..9362c30 100644
--- a/libphodav/phodav-utils.c
+++ b/libphodav/phodav-utils.c
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav-utils.h b/libphodav/phodav-utils.h
index c021741..1cbfd26 100644
--- a/libphodav/phodav-utils.h
+++ b/libphodav/phodav-utils.h
@@ -1,4 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
diff --git a/libphodav/phodav.h b/libphodav/phodav.h
index 9ca95e4..470b0da 100644
--- a/libphodav/phodav.h
+++ b/libphodav/phodav.h
@@ -1,4 +1,3 @@
-/* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
Copyright (C) 2013 Red Hat, Inc.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]