Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package editorconfig-checker for
openSUSE:Factory checked in at 2025-05-07 19:21:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/editorconfig-checker (Old)
and /work/SRC/openSUSE:Factory/.editorconfig-checker.new.30101 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "editorconfig-checker"
Wed May 7 19:21:14 2025 rev:6 rq:1275165 version:3.3.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/editorconfig-checker/editorconfig-checker.changes
2025-03-17 22:21:11.383493198 +0100
+++
/work/SRC/openSUSE:Factory/.editorconfig-checker.new.30101/editorconfig-checker.changes
2025-05-07 19:21:30.047793754 +0200
@@ -1,0 +2,21 @@
+Wed May 07 10:43:05 UTC 2025 - Johannes Kastl
<[email protected]>
+
+- Update to version 3.3.0:
+ * Features
+ - add .jj (Jujutsu) directory to default exclude list (#458)
+ (ac903a0)
+ - update default paths to exclude (#462) (84c5c55)
+ * Bug Fixes
+ - skip correct number of errors when consolidating errors
+ (#464) (8c695f5)
+ * Dependencies
+ - chore(deps): bump golang.org/x/text from 0.24.0 to 0.25.0
+ (#467)
+ - chore(deps): bump anchore/sbom-action from 0.18.0 to 0.19.0
+ (#463)
+ - chore(deps): bump github.com/gabriel-vasile/mimetype from
+ 1.4.8 to 1.4.9 (#461)
+ - chore(deps): bump golang.org/x/text from 0.23.0 to 0.24.0
+ (#460)
+
+-------------------------------------------------------------------
Old:
----
editorconfig-checker-3.2.1.obscpio
New:
----
editorconfig-checker-3.3.0.obscpio
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ editorconfig-checker.spec ++++++
--- /var/tmp/diff_new_pack.hEMlt6/_old 2025-05-07 19:21:31.371848981 +0200
+++ /var/tmp/diff_new_pack.hEMlt6/_new 2025-05-07 19:21:31.375849147 +0200
@@ -19,7 +19,7 @@
%define executable_name ec
Name: editorconfig-checker
-Version: 3.2.1
+Version: 3.3.0
Release: 0
Summary: Tool to verify that your files are in harmony with your
.editorconfig
License: MIT
++++++ _service ++++++
--- /var/tmp/diff_new_pack.hEMlt6/_old 2025-05-07 19:21:31.403850315 +0200
+++ /var/tmp/diff_new_pack.hEMlt6/_new 2025-05-07 19:21:31.407850482 +0200
@@ -3,7 +3,7 @@
<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.2.1</param>
+ <param name="revision">v3.3.0</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="changesgenerate">enable</param>
++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.hEMlt6/_old 2025-05-07 19:21:31.427851316 +0200
+++ /var/tmp/diff_new_pack.hEMlt6/_new 2025-05-07 19:21:31.431851483 +0200
@@ -1,6 +1,6 @@
<servicedata>
<service name="tar_scm">
<param
name="url">https://github.com/editorconfig-checker/editorconfig-checker</param>
- <param
name="changesrevision">6a81239415a6d3a4e41a753d2f30b5db73db32d9</param></service></servicedata>
+ <param
name="changesrevision">90a8919b913e39eef3a6a7011a4ecc67466a98d7</param></service></servicedata>
(No newline at EOF)
++++++ editorconfig-checker-3.2.1.obscpio -> editorconfig-checker-3.3.0.obscpio
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-checker-3.2.1/.gitattributes
new/editorconfig-checker-3.3.0/.gitattributes
--- old/editorconfig-checker-3.2.1/.gitattributes 2025-03-15
21:30:51.000000000 +0100
+++ new/editorconfig-checker-3.3.0/.gitattributes 1970-01-01
01:00:00.000000000 +0100
@@ -1 +0,0 @@
-/pkg/encoding/testdata/* -text
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-checker-3.2.1/.github/dependabot.yml
new/editorconfig-checker-3.3.0/.github/dependabot.yml
--- old/editorconfig-checker-3.2.1/.github/dependabot.yml 2025-03-15
21:30:51.000000000 +0100
+++ new/editorconfig-checker-3.3.0/.github/dependabot.yml 1970-01-01
01:00:00.000000000 +0100
@@ -1,16 +0,0 @@
-version: 2
-updates:
-- package-ecosystem: gomod
- directory: "/"
- schedule:
- interval: daily
- open-pull-requests-limit: 10
- # ignore:
- # - dependency-name: github.com/editorconfig/editorconfig-core-go/v2
- # versions:
- # - 2.3.9
- # - 2.4.0
-- package-ecosystem: "github-actions"
- directory: "/" # == /.github/workflows/
- schedule:
- interval: "daily"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-checker-3.2.1/.github/workflows/ci.yml
new/editorconfig-checker-3.3.0/.github/workflows/ci.yml
--- old/editorconfig-checker-3.2.1/.github/workflows/ci.yml 2025-03-15
21:30:51.000000000 +0100
+++ new/editorconfig-checker-3.3.0/.github/workflows/ci.yml 1970-01-01
01:00:00.000000000 +0100
@@ -1,40 +0,0 @@
-name: "ci"
-
-on:
- push:
- branches: [main]
- pull_request:
- workflow_dispatch:
-
-jobs:
- ci:
- name: CI on Linux
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- with:
- fetch-depth: 0
- - uses: wagoid/[email protected]
- if: ${{ github.ref != 'refs/heads/main' }}
- - uses: actions/setup-go@v5
- with:
- go-version-file: "go.mod"
- - run: make build
- - run: make test
- - run: make run
- - run: make bench
- - uses: codecov/codecov-action@v5
- with:
- token: ${{ secrets.CODECOV_TOKEN }}
-
- ci-macos:
- name: CI on MacOS
- runs-on: macos-latest
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-go@v5
- with:
- go-version-file: "go.mod"
- - run: make test
- - run: make run
- - run: make bench
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/editorconfig-checker-3.2.1/.github/workflows/dependabot-automerge.yml
new/editorconfig-checker-3.3.0/.github/workflows/dependabot-automerge.yml
--- old/editorconfig-checker-3.2.1/.github/workflows/dependabot-automerge.yml
2025-03-15 21:30:51.000000000 +0100
+++ new/editorconfig-checker-3.3.0/.github/workflows/dependabot-automerge.yml
1970-01-01 01:00:00.000000000 +0100
@@ -1,22 +0,0 @@
-name: Dependabot auto-merge
-on: pull_request
-
-permissions:
- contents: write
- pull-requests: write
-
-jobs:
- dependabot:
- runs-on: ubuntu-latest
- if: ${{ github.actor == 'dependabot[bot]' }}
- steps:
- - name: Dependabot metadata
- id: metadata
- uses: dependabot/fetch-metadata@v2
- with:
- github-token: "${{ secrets.BOT_TOKEN }}"
- - name: Enable auto-merge for Dependabot PRs
- run: gh pr merge --auto --squash "$PR_URL"
- env:
- PR_URL: ${{ github.event.pull_request.html_url }}
- GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/editorconfig-checker-3.2.1/.github/workflows/release-please.yml
new/editorconfig-checker-3.3.0/.github/workflows/release-please.yml
--- old/editorconfig-checker-3.2.1/.github/workflows/release-please.yml
2025-03-15 21:30:51.000000000 +0100
+++ new/editorconfig-checker-3.3.0/.github/workflows/release-please.yml
1970-01-01 01:00:00.000000000 +0100
@@ -1,18 +0,0 @@
-on:
- push:
- branches:
- - main
-
-permissions:
- contents: write
- pull-requests: write
-
-name: release-please
-
-jobs:
- release-please:
- runs-on: ubuntu-latest
- steps:
- - uses: googleapis/release-please-action@v4
- with:
- token: ${{ secrets.BOT_TOKEN }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/editorconfig-checker-3.2.1/.github/workflows/release.yml
new/editorconfig-checker-3.3.0/.github/workflows/release.yml
--- old/editorconfig-checker-3.2.1/.github/workflows/release.yml
2025-03-15 21:30:51.000000000 +0100
+++ new/editorconfig-checker-3.3.0/.github/workflows/release.yml
1970-01-01 01:00:00.000000000 +0100
@@ -1,66 +0,0 @@
-name: goreleaser
-
-on:
- push:
- # run only against tags
- tags:
- - "*"
- workflow_dispatch:
-
-permissions:
- contents: write
- packages: write
- # issues: write
-
-jobs:
- goreleaser:
- runs-on: ubuntu-latest
- steps:
- - name: Install syft
- uses: anchore/sbom-action/[email protected]
-
- - uses: actions/checkout@v4
- with:
- fetch-depth: 0
- - run: git fetch --force --tags
- - uses: actions/setup-go@v5
- with:
- go-version-file: "go.mod"
- cache: true
-
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
- - name: Docker Setup Buildx
- uses: docker/setup-buildx-action@v3
-
- - name: Login to Docker Hub
- uses: docker/login-action@v3
- with:
- username: ${{ vars.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_PASSWORD }}
-
- - name: Login to GitHub Container Registry
- uses: docker/login-action@v3
- with:
- registry: ghcr.io
- username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
-
- - uses: goreleaser/goreleaser-action@v6
- with:
- # either 'goreleaser' (default) or 'goreleaser-pro':
- distribution: goreleaser
- version: v2
- args: release
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- DOCKERHUB_USERNAME: ${{ vars.DOCKER_USERNAME }}
- GHCR_USERNAME: ${{ github.repository_owner }}
-
- - name: Update repo description on Docker Hub
- uses: peter-evans/dockerhub-description@v4
- with:
- username: ${{ vars.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_PASSWORD }}
- repository: ${{ vars.DOCKER_USERNAME }}/editorconfig-checker
- short-description: ${{ github.event.repository.description }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-checker-3.2.1/.gitignore
new/editorconfig-checker-3.3.0/.gitignore
--- old/editorconfig-checker-3.2.1/.gitignore 2025-03-15 21:30:51.000000000
+0100
+++ new/editorconfig-checker-3.3.0/.gitignore 1970-01-01 01:00:00.000000000
+0100
@@ -1,7 +0,0 @@
-/bin/
-editorconfig-checker.test
-coverage.txt
-result-bin
-path
-node_modules
-dist/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/editorconfig-checker-3.2.1/.release-please-manifest.json
new/editorconfig-checker-3.3.0/.release-please-manifest.json
--- old/editorconfig-checker-3.2.1/.release-please-manifest.json
2025-03-15 21:30:51.000000000 +0100
+++ new/editorconfig-checker-3.3.0/.release-please-manifest.json
2025-05-07 08:58:12.000000000 +0200
@@ -1,3 +1,3 @@
{
- ".": "3.2.1"
+ ".": "3.3.0"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-checker-3.2.1/CHANGELOG.md
new/editorconfig-checker-3.3.0/CHANGELOG.md
--- old/editorconfig-checker-3.2.1/CHANGELOG.md 2025-03-15 21:30:51.000000000
+0100
+++ new/editorconfig-checker-3.3.0/CHANGELOG.md 2025-05-07 08:58:12.000000000
+0200
@@ -1,5 +1,18 @@
# Changelog
+##
[3.3.0](https://github.com/editorconfig-checker/editorconfig-checker/compare/v3.2.1...v3.3.0)
(2025-05-07)
+
+
+### Features
+
+* add `.jj` (Jujutsu) directory to default exclude list
([#458](https://github.com/editorconfig-checker/editorconfig-checker/issues/458))
([ac903a0](https://github.com/editorconfig-checker/editorconfig-checker/commit/ac903a0a7f5506a80b3c5d2e76584b5e277b896a))
+* update default paths to exclude
([#462](https://github.com/editorconfig-checker/editorconfig-checker/issues/462))
([84c5c55](https://github.com/editorconfig-checker/editorconfig-checker/commit/84c5c5579e96a9601f1b0ce51fec66257ceb0b24))
+
+
+### Bug Fixes
+
+* skip correct number of errors when consolidating errors
([#464](https://github.com/editorconfig-checker/editorconfig-checker/issues/464))
([8c695f5](https://github.com/editorconfig-checker/editorconfig-checker/commit/8c695f5ef82063d657796dfc0b58e35b022d4b93))
+
##
[3.2.1](https://github.com/editorconfig-checker/editorconfig-checker/compare/v3.2.0...v3.2.1)
(2025-03-15)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-checker-3.2.1/README.md
new/editorconfig-checker-3.3.0/README.md
--- old/editorconfig-checker-3.2.1/README.md 2025-03-15 21:30:51.000000000
+0100
+++ new/editorconfig-checker-3.3.0/README.md 2025-05-07 08:58:12.000000000
+0200
@@ -57,7 +57,7 @@
<!-- x-release-please-start-version -->
```shell
-VERSION="v3.2.1"
+VERSION="v3.3.0"
OS="linux"
ARCH="amd64"
curl -O -L -C -
https://github.com/editorconfig-checker/editorconfig-checker/releases/download/$VERSION/ec-$OS-$ARCH.tar.gz
&& \
@@ -271,6 +271,8 @@
Note that while `--dry-run` might output absolute paths, the regular
expression you write must match the filenames using relative paths from where
editorconfig-checker is used. This becomes especially relevant if you need to
anchor your regular expression in order to only match files in the top level
your checked directory.
+Additionally, paths will be normalized to Unix style before matching against
the regex list happens. As a result you don't have to write `[\\/]` to account
for Windows and Unix path styles but can just use `/` instead.
+
#### Inline
If you want to exclude a file inline you need a comment on the first line of
the file that contains: `editorconfig-checker-disable-file`
@@ -288,51 +290,86 @@
If you choose to [ignore them](#ignoring-default-excludes), these paths are
excluded automatically:
```txt
-"\\.git[\\/]",
-"[\\/]node_modules[\\/]",
-"^\\.yarn/",
-"^yarn\\.lock$",
-"^package-lock\\.json$",
-"^composer\\.lock$",
-"^Cargo\\.lock$",
-"^Gemfile\\.lock$",
-"^\\.pnp\\.cjs$",
-"^\\.pnp\\.js$",
-"^\\.pnp\\.loader\\.mjs$",
-"\\.snap$",
-"\\.otf$",
-"\\.woff$",
-"\\.woff2$",
+// source control related files and folders
+"\\.git/",
+"\\.jj/",
+// package manager, generated, & lock files
+// Cargo (Rust)
+"Cargo\\.lock$",
+// Composer (PHP)
+"composer\\.lock$",
+// RubyGems (Ruby)
+"Gemfile\\.lock$",
+// Go Modules (Go)
+"go\\.(mod|sum)$",
+// Gradle (Java)
+"gradle/wrapper/gradle-wrapper\\.properties$",
+"gradlew(\\.bat)?$",
+"(buildscript-)?gradle\\.lockfile?$",
+// Maven (Java)
+"\\.mvn/wrapper/maven-wrapper\\.properties$",
+"\\.mvn/wrapper/MavenWrapperDownloader\\.java$",
+"mvnw(\\.cmd)?$",
+// NodeJS
+"/node_modules/",
+// npm (NodeJS)
+"npm-shrinkwrap\\.json$",
+"package-lock\\.json$",
+// pip (Python)
+"Pipfile\\.lock$",
+// Poetry (Python)
+"poetry\\.lock$",
+// pnpm (NodeJS)
+"pnpm-lock\\.yaml$",
+// Terraform & OpenTofu
+"\\.terraform\\.lock\\.hcl$",
+// uv (Python)
+"uv\\.lock$",
+// yarn (NodeJS)
+"\\.pnp\\.c?js$",
+"\\.pnp\\.loader\\.mjs$",
+"\\.yarn/",
+"yarn\\.lock$",
+// font files
"\\.eot$",
+"\\.otf$",
"\\.ttf$",
+"\\.woff2?$",
+// image & video formats
+"\\.avif$",
"\\.gif$",
+"\\.ico$",
+"\\.jpe?g$",
+"\\.mp4$",
+"\\.p[bgnp]m$",
"\\.png$",
-"\\.jpg$",
-"\\.jpeg$",
+"\\.svg$",
+"\\.tiff?$",
"\\.webp$",
-"\\.avif$",
-"\\.pnm$",
-"\\.pbm$",
-"\\.pgm$",
-"\\.ppm$",
-"\\.mp4$",
"\\.wmv$",
-"\\.svg$",
-"\\.ico$",
+// other binary or container formats
"\\.bak$",
"\\.bin$",
+"\\.docx?$",
+"\\.exe$",
"\\.pdf$",
-"\\.zip$",
-"\\.gz$",
-"\\.tar$",
+"\\.snap$",
+"\\.xlsx?$",
+// archive formats
"\\.7z$",
"\\.bz2$",
+"\\.gz$",
+"\\.jar$",
+"\\.tar$",
+"\\.tgz$",
+"\\.war$",
+"\\.zip$",
+// log & (git) patch files
"\\.log$",
"\\.patch$",
-"\\.css\\.map$",
-"\\.js\\.map$",
-"min\\.css$",
-"min\\.js$",
+// generated or minified CSS and JavaScript files
+"\\.(css|js)\\.map$",
+"min\\.(css|js)$",
```
#### Ignoring Default Excludes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/editorconfig-checker-3.2.1/cmd/editorconfig-checker/main.go
new/editorconfig-checker-3.3.0/cmd/editorconfig-checker/main.go
--- old/editorconfig-checker-3.2.1/cmd/editorconfig-checker/main.go
2025-03-15 21:30:51.000000000 +0100
+++ new/editorconfig-checker-3.3.0/cmd/editorconfig-checker/main.go
2025-05-07 08:58:12.000000000 +0200
@@ -21,7 +21,7 @@
// version is used for the help and to verify against the version stored in
the config file
// version is dynamically set at compiletime
-var version string = "v3.2.1" // x-release-please-version
+var version string = "v3.3.0" // x-release-please-version
// defaultConfigFileNames determines the file names where the config is located
var defaultConfigFileNames = []string{".editorconfig-checker.json", ".ecrc"}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/editorconfig-checker-3.2.1/cmd/editorconfig-checker/main_test.go
new/editorconfig-checker-3.3.0/cmd/editorconfig-checker/main_test.go
--- old/editorconfig-checker-3.2.1/cmd/editorconfig-checker/main_test.go
2025-03-15 21:30:51.000000000 +0100
+++ new/editorconfig-checker-3.3.0/cmd/editorconfig-checker/main_test.go
2025-05-07 08:58:12.000000000 +0200
@@ -43,7 +43,7 @@
func TestMainOurCodebase(t *testing.T) {
cdRelativeToRepo(t, "")
- output, lastSeenCode := runWithArguments(t, "--debug", "--verbose",
"--exclude", `\.git`, "--exclude", `\.exe$`)
+ output, lastSeenCode := runWithArguments(t, "--debug", "--verbose")
if lastSeenCode != exitCodeNormal {
t.Errorf("main exited with return code %d, but we expected %d",
lastSeenCode, exitCodeNormal)
t.Logf("Output:\n%s", output)
@@ -52,7 +52,7 @@
func TestMainMissingExplicitConfig(t *testing.T) {
cdRelativeToRepo(t, "")
- output, lastSeenCode := runWithArguments(t, "--debug", "--verbose",
"--exclude", `\.git`, "--exclude", `\.exe$`, "--config", "/nonexistant")
+ output, lastSeenCode := runWithArguments(t, "--debug", "--verbose",
"--config", "/nonexistant")
if lastSeenCode != exitCodeConfigFileNotFound {
t.Errorf("main exited with return code %d, but we expected %d",
lastSeenCode, exitCodeConfigFileNotFound)
t.Logf("Output:\n%s", output)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-checker-3.2.1/default.nix
new/editorconfig-checker-3.3.0/default.nix
--- old/editorconfig-checker-3.2.1/default.nix 2025-03-15 21:30:51.000000000
+0100
+++ new/editorconfig-checker-3.3.0/default.nix 2025-05-07 08:58:12.000000000
+0200
@@ -2,7 +2,7 @@
with pkgs;
buildGoPackage rec {
- version = "v3.2.1" # x-release-please-version
+ version = "v3.3.0" # x-release-please-version
# create link so the tool can also be executed as `ec`
postInstall = ''
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-checker-3.2.1/go.mod
new/editorconfig-checker-3.3.0/go.mod
--- old/editorconfig-checker-3.2.1/go.mod 2025-03-15 21:30:51.000000000
+0100
+++ new/editorconfig-checker-3.3.0/go.mod 2025-05-07 08:58:12.000000000
+0200
@@ -7,8 +7,8 @@
require (
github.com/baulk/chardet v0.1.0
github.com/editorconfig/editorconfig-core-go/v2 v2.6.3
- github.com/gabriel-vasile/mimetype v1.4.8
- golang.org/x/text v0.23.0
+ github.com/gabriel-vasile/mimetype v1.4.9
+ golang.org/x/text v0.25.0
)
require (
@@ -30,7 +30,7 @@
github.com/gkampitakis/go-snaps v0.5.11
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/mod v0.23.0 // indirect
- golang.org/x/net v0.36.0 // indirect
+ golang.org/x/net v0.39.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-checker-3.2.1/go.sum
new/editorconfig-checker-3.3.0/go.sum
--- old/editorconfig-checker-3.2.1/go.sum 2025-03-15 21:30:51.000000000
+0100
+++ new/editorconfig-checker-3.3.0/go.sum 2025-05-07 08:58:12.000000000
+0200
@@ -5,8 +5,8 @@
github.com/davecgh/go-spew v1.1.1/go.mod
h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/editorconfig/editorconfig-core-go/v2 v2.6.3
h1:XVUp6qW3BIkmM3/1EkrHpa6bL56APOynfXcZEmIgOhs=
github.com/editorconfig/editorconfig-core-go/v2 v2.6.3/go.mod
h1:ThHVc+hqbUsmE1wmK/MASpQEhCleWu1JDJDNhUOMy0c=
-github.com/gabriel-vasile/mimetype v1.4.8
h1:FfZ3gj38NjllZIeJAmMhr+qKL8Wu+nOoI3GqacKw1NM=
-github.com/gabriel-vasile/mimetype v1.4.8/go.mod
h1:ByKUIKGjh1ODkGM1asKUbQZOLGrPjydw3hYPU2YU9t8=
+github.com/gabriel-vasile/mimetype v1.4.9
h1:5k+WDwEsD9eTLL8Tz3L0VnmVh9QxGjRmjBvAG7U/oYY=
+github.com/gabriel-vasile/mimetype v1.4.9/go.mod
h1:WnSQhFKJuBlRyLiKohA/2DtIlPFAbguNaG7QCHcyGok=
github.com/gkampitakis/ciinfo v0.3.1
h1:lzjbemlGI4Q+XimPg64ss89x8Mf3xihJqy/0Mgagapo=
github.com/gkampitakis/ciinfo v0.3.1/go.mod
h1:1NIwaOcFChN4fa/B0hEBdAb6npDlFL8Bwx4dfRLRqAo=
github.com/gkampitakis/go-diff v1.3.2
h1:Qyn0J9XJSDTgnsgHRdz9Zp24RaJeKMUHg2+PDZZdC4M=
@@ -43,10 +43,10 @@
github.com/tidwall/sjson v1.2.5/go.mod
h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28=
golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM=
golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
-golang.org/x/net v0.36.0 h1:vWF2fRbw4qslQsQzgFqZff+BItCvGFQqKzKIzx1rmoA=
-golang.org/x/net v0.36.0/go.mod h1:bFmbeoIPfrw4sMHNhb4J9f6+tPziuGjq7Jk/38fxi1I=
-golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
-golang.org/x/text v0.23.0/go.mod
h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
+golang.org/x/net v0.39.0 h1:ZCu7HMWDxpXpaiKdhzIfaltL9Lp31x/3fCP11bc6/fY=
+golang.org/x/net v0.39.0/go.mod h1:X7NRbYVEA+ewNkCNyJ513WmMdQ3BineSwVtN2zD/d+E=
+golang.org/x/text v0.25.0 h1:qVyWApTSYLk/drJRO5mDlNYskwQznZmkpV2c8q9zls4=
+golang.org/x/text v0.25.0/go.mod
h1:WEdwpYrmk1qmdHvhkSTNPm3app7v4rsT8F2UD6+VHIA=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod
h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA=
gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-checker-3.2.1/pkg/config/config.go
new/editorconfig-checker-3.3.0/pkg/config/config.go
--- old/editorconfig-checker-3.2.1/pkg/config/config.go 2025-03-15
21:30:51.000000000 +0100
+++ new/editorconfig-checker-3.3.0/pkg/config/config.go 2025-05-07
08:58:12.000000000 +0200
@@ -21,51 +21,86 @@
// defaultExcludes are an array to produce the correct string from
var defaultExcludes = []string{
- "\\.git[\\/]",
- "[\\/]node_modules[\\/]",
- "^\\.yarn/",
- "^yarn\\.lock$",
- "^package-lock\\.json$",
- "^composer\\.lock$",
- "^Cargo\\.lock$",
- "^Gemfile\\.lock$",
- "^\\.pnp\\.cjs$",
- "^\\.pnp\\.js$",
- "^\\.pnp\\.loader\\.mjs$",
- "\\.snap$",
- "\\.otf$",
- "\\.woff$",
- "\\.woff2$",
+ // source control related files and folders
+ "\\.git/",
+ "\\.jj/",
+ // package manager, generated, & lock files
+ // Cargo (Rust)
+ "Cargo\\.lock$",
+ // Composer (PHP)
+ "composer\\.lock$",
+ // RubyGems (Ruby)
+ "Gemfile\\.lock$",
+ // Go Modules (Go)
+ "go\\.(mod|sum)$",
+ // Gradle (Java)
+ "gradle/wrapper/gradle-wrapper\\.properties$",
+ "gradlew(\\.bat)?$",
+ "(buildscript-)?gradle\\.lockfile?$",
+ // Maven (Java)
+ "\\.mvn/wrapper/maven-wrapper\\.properties$",
+ "\\.mvn/wrapper/MavenWrapperDownloader\\.java$",
+ "mvnw(\\.cmd)?$",
+ // NodeJS
+ "/node_modules/",
+ // npm (NodeJS)
+ "npm-shrinkwrap\\.json$",
+ "package-lock\\.json$",
+ // pip (Python)
+ "Pipfile\\.lock$",
+ // Poetry (Python)
+ "poetry\\.lock$",
+ // pnpm (NodeJS)
+ "pnpm-lock\\.yaml$",
+ // Terraform & OpenTofu
+ "\\.terraform\\.lock\\.hcl$",
+ // uv (Python)
+ "uv\\.lock$",
+ // yarn (NodeJS)
+ "\\.pnp\\.c?js$",
+ "\\.pnp\\.loader\\.mjs$",
+ "\\.yarn/",
+ "yarn\\.lock$",
+ // font files
"\\.eot$",
+ "\\.otf$",
"\\.ttf$",
+ "\\.woff2?$",
+ // image & video formats
+ "\\.avif$",
"\\.gif$",
+ "\\.ico$",
+ "\\.jpe?g$",
+ "\\.mp4$",
+ "\\.p[bgnp]m$",
"\\.png$",
- "\\.jpg$",
- "\\.jpeg$",
+ "\\.svg$",
+ "\\.tiff?$",
"\\.webp$",
- "\\.avif$",
- "\\.pnm$",
- "\\.pbm$",
- "\\.pgm$",
- "\\.ppm$",
- "\\.mp4$",
"\\.wmv$",
- "\\.svg$",
- "\\.ico$",
+ // other binary or container formats
"\\.bak$",
"\\.bin$",
+ "\\.docx?$",
+ "\\.exe$",
"\\.pdf$",
- "\\.zip$",
- "\\.gz$",
- "\\.tar$",
+ "\\.snap$",
+ "\\.xlsx?$",
+ // archive formats
"\\.7z$",
"\\.bz2$",
+ "\\.gz$",
+ "\\.jar$",
+ "\\.tar$",
+ "\\.tgz$",
+ "\\.war$",
+ "\\.zip$",
+ // log & (git) patch files
"\\.log$",
"\\.patch$",
- "\\.css\\.map$",
- "\\.js\\.map$",
- "min\\.css$",
- "min\\.js$",
+ // generated or minified CSS and JavaScript files
+ "\\.(css|js)\\.map$",
+ "min\\.(css|js)$",
}
// keep synced with pkg/validation/validation.go#L20
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-checker-3.2.1/pkg/config/config_test.go
new/editorconfig-checker-3.3.0/pkg/config/config_test.go
--- old/editorconfig-checker-3.2.1/pkg/config/config_test.go 2025-03-15
21:30:51.000000000 +0100
+++ new/editorconfig-checker-3.3.0/pkg/config/config_test.go 2025-05-07
08:58:12.000000000 +0200
@@ -86,7 +86,7 @@
}
actual = c.GetExcludesAsRegularExpression()
- expected =
`testfiles|testdata|\.git[\/]|[\/]node_modules[\/]|^\.yarn/|^yarn\.lock$|^package-lock\.json$|^composer\.lock$|^Cargo\.lock$|^Gemfile\.lock$|^\.pnp\.cjs$|^\.pnp\.js$|^\.pnp\.loader\.mjs$|\.snap$|\.otf$|\.woff$|\.woff2$|\.eot$|\.ttf$|\.gif$|\.png$|\.jpg$|\.jpeg$|\.webp$|\.avif$|\.pnm$|\.pbm$|\.pgm$|\.ppm$|\.mp4$|\.wmv$|\.svg$|\.ico$|\.bak$|\.bin$|\.pdf$|\.zip$|\.gz$|\.tar$|\.7z$|\.bz2$|\.log$|\.patch$|\.css\.map$|\.js\.map$|min\.css$|min\.js$`
+ expected =
`testfiles|testdata|\.git/|\.jj/|Cargo\.lock$|composer\.lock$|Gemfile\.lock$|go\.(mod|sum)$|gradle/wrapper/gradle-wrapper\.properties$|gradlew(\.bat)?$|(buildscript-)?gradle\.lockfile?$|\.mvn/wrapper/maven-wrapper\.properties$|\.mvn/wrapper/MavenWrapperDownloader\.java$|mvnw(\.cmd)?$|/node_modules/|npm-shrinkwrap\.json$|package-lock\.json$|Pipfile\.lock$|poetry\.lock$|pnpm-lock\.yaml$|\.terraform\.lock\.hcl$|uv\.lock$|\.pnp\.c?js$|\.pnp\.loader\.mjs$|\.yarn/|yarn\.lock$|\.eot$|\.otf$|\.ttf$|\.woff2?$|\.avif$|\.gif$|\.ico$|\.jpe?g$|\.mp4$|\.p[bgnp]m$|\.png$|\.svg$|\.tiff?$|\.webp$|\.wmv$|\.bak$|\.bin$|\.docx?$|\.exe$|\.pdf$|\.snap$|\.xlsx?$|\.7z$|\.bz2$|\.gz$|\.jar$|\.tar$|\.tgz$|\.war$|\.zip$|\.log$|\.patch$|\.(css|js)\.map$|min\.(css|js)$`
if actual != expected {
t.Errorf("expected %s, got %s", expected, actual)
@@ -113,7 +113,7 @@
mergeConfig := Config{
ShowVersion: true,
- Version: "v3.2.1", // x-release-please-version
+ Version: "v3.3.0", // x-release-please-version
Help: true,
DryRun: true,
Path: "some-other",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-checker-3.2.1/pkg/error/error.go
new/editorconfig-checker-3.3.0/pkg/error/error.go
--- old/editorconfig-checker-3.2.1/pkg/error/error.go 2025-03-15
21:30:51.000000000 +0100
+++ new/editorconfig-checker-3.3.0/pkg/error/error.go 2025-05-07
08:58:12.000000000 +0200
@@ -75,7 +75,7 @@
config.Logger.Debug("comparing against error %d(%s)",
j, nextError.Message)
if nextError.Message.Error() ==
thisError.Message.Error() && nextError.LineNumber ==
thisError.LineNumber+thisError.AdditionalIdenticalErrorCount+1 {
thisError.AdditionalIdenticalErrorCount++ //
keep track of how many consecutive lines we've seen
- i = i + j + 1 //
make sure the outer loop jumps over the consecutive errors we just found
+ i++ //
make sure the outer loop jumps over the consecutive errors we just found
} else {
break // if they are different errors we can
stop comparing messages
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editorconfig-checker-3.2.1/pkg/error/error_test.go
new/editorconfig-checker-3.3.0/pkg/error/error_test.go
--- old/editorconfig-checker-3.2.1/pkg/error/error_test.go 2025-03-15
21:30:51.000000000 +0100
+++ new/editorconfig-checker-3.3.0/pkg/error/error_test.go 2025-05-07
08:58:12.000000000 +0200
@@ -185,6 +185,36 @@
}
}
+func TestConsolidateErrorCounts(t *testing.T) {
+ input := []ValidationError{
+ // A block of errors, followed by a small number of errors
+ {LineNumber: 2, Message: errors.New("wrong indentation type")},
+ {LineNumber: 3, Message: errors.New("wrong indentation type")},
+ {LineNumber: 4, Message: errors.New("wrong indentation type")},
+ {LineNumber: 5, Message: errors.New("wrong indentation type")},
+ // one line gap
+ {LineNumber: 7, Message: errors.New("wrong indentation type")},
+ // one line gap
+ {LineNumber: 9, Message: errors.New("wrong indentation type")},
+ {LineNumber: 10, Message: errors.New("wrong indentation type")},
+ {LineNumber: 11, Message: errors.New("wrong indentation type")},
+ }
+
+ expected := []ValidationError{
+ {LineNumber: 2, AdditionalIdenticalErrorCount: 3, Message:
errors.New("wrong indentation type")},
+ {LineNumber: 7, Message: errors.New("wrong indentation type")},
+ {LineNumber: 9, AdditionalIdenticalErrorCount: 2, Message:
errors.New("wrong indentation type")},
+ }
+
+ actual := ConsolidateErrors(input, config.Config{})
+
+ if !slices.EqualFunc(expected, actual, func(e1 ValidationError, e2
ValidationError) bool { return e1.Equal(e2) }) {
+ t.Log("consolidation expectation :", expected)
+ t.Log("consolidation actual returned value:", actual)
+ t.Error("returned list of validation errors deviated from the
expected set")
+ }
+}
+
func TestConsolidatingInterleavedErrors(t *testing.T) {
t.Skip("Consolidating non-consecutive errors is not supported by the
current implementation")
/*
++++++ editorconfig-checker.obsinfo ++++++
--- /var/tmp/diff_new_pack.hEMlt6/_old 2025-05-07 19:21:31.659860994 +0200
+++ /var/tmp/diff_new_pack.hEMlt6/_new 2025-05-07 19:21:31.663861161 +0200
@@ -1,5 +1,5 @@
name: editorconfig-checker
-version: 3.2.1
-mtime: 1742070651
-commit: 6a81239415a6d3a4e41a753d2f30b5db73db32d9
+version: 3.3.0
+mtime: 1746601092
+commit: 90a8919b913e39eef3a6a7011a4ecc67466a98d7
++++++ vendor.tar.gz ++++++
++++ 2857 lines of diff (skipped)