new package editorconfig-checker: a tool to verify that your files are in harmony with your .editorconfig

OBS-URL: https://build.opensuse.org/package/show/editors/editorconfig-checker?expand=0&rev=1
This commit is contained in:
Martin Pluskal 2024-12-24 07:09:44 +00:00 committed by Git OBS Bridge
commit 08f508733b
9 changed files with 145 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

22
_service Normal file
View File

@ -0,0 +1,22 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/editorconfig-checker/editorconfig-checker</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">v3.0.3</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="set_version" mode="manual">
</service>
<service name="go_modules" mode="manual">
</service>
<!-- services below are running at buildtime -->
<service name="tar" mode="buildtime">
</service>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/editorconfig-checker/editorconfig-checker</param>
<param name="changesrevision">24148c57d167e3eb45137021941d834ce588ff1f</param></service></servicedata>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:70cb398aedeaf81c5f619cdfd89e3b862e920993b3ab36840c613f4b52ecf6a2
size 1915916

View File

@ -0,0 +1,19 @@
-------------------------------------------------------------------
Mon Dec 23 07:44:06 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 3.0.3:
* chore(release): v3.0.3
* ci: publish docker image (#355)
* Revert "fix: check if multiple newlines are at EOF (#350)" (#354)
* chore(release): v3.0.2
* build: remove openbsd/mips64
* fix: check if multiple newlines are at EOF (#350)
* ci: run docker login and publish on main and on tags creation (#344)
* ci: remove changelog gen (#352)
* chore(deps): bump docker/build-push-action from 5 to 6 (#349)
-------------------------------------------------------------------
Mon Dec 23 07:43:27 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- new package editorconfig-checker: a tool to verify that your
files are in harmony with your .editorconfig

View File

@ -0,0 +1,4 @@
name: editorconfig-checker
version: 3.0.3
mtime: 1720004278
commit: 24148c57d167e3eb45137021941d834ce588ff1f

66
editorconfig-checker.spec Normal file
View File

@ -0,0 +1,66 @@
#
# spec file for package editorconfig-checker
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define executable_name ec
Name: editorconfig-checker
Version: 3.0.3
Release: 0
Summary: Tool to verify that your files are in harmony with your .editorconfig
License: MIT
URL: https://github.com/editorconfig-checker/editorconfig-checker
Source: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: bash-completion
BuildRequires: fish
BuildRequires: go >= 1.22
BuildRequires: zsh
Provides: ec = %{version}
%description
This is a tool to check if your files consider your .editorconfig rules. Most
tools—like linters, for example—only test one filetype and need an extra
configuration. This tool only needs your .editorconfig to check all files.
If you don't know about editorconfig already you can read about it here:
editorconfig.org.
%prep
%autosetup -p 1 -a 1
%build
go build \
-mod=vendor \
-buildmode=pie \
-ldflags=" \
-X main.version=v%{version}" \
-o bin/%{executable_name} ./cmd/%{name}
%install
# Install the binary.
install -D -m 0755 bin/%{executable_name} %{buildroot}/%{_bindir}/%{executable_name}
%check
%{buildroot}/%{_bindir}/%{executable_name} -version | grep v%{version}
%files
%doc README.md
%license LICENSE
%{_bindir}/%{executable_name}
%changelog

3
vendor.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e2acaf1c415c8d4cd4c7818088d6a7a88f2adff69d5256622df7427bd7dc7d43
size 1690370