[Git][security-tracker-team/security-tracker][master] 2 commits: Add .editorconfig file for basic formatting

Salvatore Bonaccorso (@carnil) carnil at debian.org
Tue Feb 6 21:58:14 GMT 2024



Salvatore Bonaccorso pushed to branch master at Debian Security Tracker / security-tracker


Commits:
fd3c9e04 by Salvatore Bonaccorso at 2024-01-25T07:15:02+01:00
Add .editorconfig file for basic formatting

EditorConfig is a specification to define the most basic code formatting
stuff, and it's supported by many editors and IDEs, either directly or
via plugins, including VSCode/VSCodium, Vim, emacs and more.

It allows to define formatting style related to indentation, charset,
end of lines and trailing whitespaces. It also allows to apply different
formats for different files based on wildcards, so for example it is
possible to apply different configs to *.{c,h}, *.py and *.rs.

For the security-tracker, modelled after the very same change in the
linux project, defining a .editorconfig might help to those people that
work on different projects with different indentation styles, so they
cannot define a global style. Now they will directly see the correct
indentation on every fresh clone of the project.

See https://editorconfig.org

Link: https://git.kernel.org/linus/5a602de99797bddc9dd7f73592281a507196f69d
Signed-off-by: Salvatore Bonaccorso <carnil at debian.org>

- - - - -
a572d69f by Salvatore Bonaccorso at 2024-02-06T21:58:06+00:00
Merge branch 'add-editorconfig' into 'master'

Draft: Add .editorconfig file for basic formatting

See merge request security-tracker-team/security-tracker!159
- - - - -


1 changed file:

- + .editorconfig


Changes:

=====================================
.editorconfig
=====================================
@@ -0,0 +1,20 @@
+# Copyright © 2024 Salvatore Bonaccorso <carnil at debian.org>
+#
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this file.  If not, see <https://www.gnu.org/licenses/>.
+
+root = true
+
+[data/*/list]
+trim_trailing_whitespace = true
+indent_style = tab



View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/709ed7a8206904270a6ecd5b87de0a842f3a718b...a572d69faf0c160d4d0e465b86b6fba0939622ce

-- 
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/709ed7a8206904270a6ecd5b87de0a842f3a718b...a572d69faf0c160d4d0e465b86b6fba0939622ce
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20240206/e2234dc0/attachment-0001.htm>


More information about the debian-security-tracker-commits mailing list