Skip to content

Commit 097b4ae

Browse files
committed
fix: formatting
1 parent a5c133d commit 097b4ae

File tree

8 files changed

+180
-180
lines changed

8 files changed

+180
-180
lines changed

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Gitpod workspace configuration for go-chaincfg
1+
# Gitpod workspace configuration for the local repository.
22
# This file creates a repeatable cloud development environment.
33
# It ensures dependencies are installed and the codebase is vetted
44
# and tested on workspace start.

.goreleaser.yml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -5,73 +5,73 @@
55
version: 2
66

77
before:
8-
hooks:
9-
- make test
8+
hooks:
9+
- make test
1010
changelog:
11-
sort: asc
12-
filters:
13-
exclude:
14-
- '^.github:'
15-
- '^.vscode:'
16-
- '^test:'
11+
sort: asc
12+
filters:
13+
exclude:
14+
- '^.github:'
15+
- '^.vscode:'
16+
- '^test:'
1717

1818
# ---------------------------
1919
# Builder
2020
# ---------------------------
2121
builds:
22-
- env:
23-
- CGO_ENABLED=0
24-
goos:
25-
- linux
26-
- windows
27-
- darwin
28-
skip: true
22+
- env:
23+
- CGO_ENABLED=0
24+
goos:
25+
- linux
26+
- windows
27+
- darwin
28+
skip: true
2929

3030
# ---------------------------
3131
# Github Release
3232
# ---------------------------
3333
release:
34-
prerelease: "false"
35-
name_template: "Release v{{.Version}}"
34+
prerelease: "false"
35+
name_template: "Release v{{.Version}}"
3636

3737
# ---------------------------
3838
# Announce
3939
# ---------------------------
4040
announce:
4141

42-
# See more at: https://goreleaser.com/customization/announce/#slack
43-
slack:
44-
enabled: false
45-
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Changelog: https://github.com/bsv-blockchain/{{ .ProjectName }}/releases/tag/{{ .Tag }}'
46-
channel: '#test_slack'
47-
# username: ''
48-
# icon_emoji: ''
49-
# icon_url: ''
42+
# See more at: https://goreleaser.com/customization/announce/#slack
43+
slack:
44+
enabled: false
45+
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Changelog: https://github.com/bsv-blockchain/{{ .ProjectName }}/releases/tag/{{ .Tag }}'
46+
channel: '#test_slack'
47+
# username: ''
48+
# icon_emoji: ''
49+
# icon_url: ''
5050

51-
# See more at: https://goreleaser.com/customization/announce/#twitter
52-
twitter:
53-
enabled: false
54-
message_template: '{{ .ProjectName }} {{ .Tag }} is out!'
51+
# See more at: https://goreleaser.com/customization/announce/#twitter
52+
twitter:
53+
enabled: false
54+
message_template: '{{ .ProjectName }} {{ .Tag }} is out!'
5555

56-
# See more at: https://goreleaser.com/customization/announce/#discord
57-
discord:
58-
enabled: false
59-
message_template: '{{ .ProjectName }} {{ .Tag }} is out!'
60-
# Defaults to `GoReleaser`
61-
author: ''
62-
# Defaults to `3888754` - the grey-ish from goreleaser
63-
color: ''
64-
# Defaults to `https://goreleaser.com/static/avatar.png`
65-
icon_url: ''
56+
# See more at: https://goreleaser.com/customization/announce/#discord
57+
discord:
58+
enabled: false
59+
message_template: '{{ .ProjectName }} {{ .Tag }} is out!'
60+
# Defaults to `GoReleaser`
61+
author: ''
62+
# Defaults to `3888754` - the grey-ish from goreleaser
63+
color: ''
64+
# Defaults to `https://goreleaser.com/static/avatar.png`
65+
icon_url: ''
6666

67-
# See more at: https://goreleaser.com/customization/announce/#reddit
68-
reddit:
69-
enabled: false
70-
# Application ID for Reddit Application
71-
application_id: ""
72-
# Username for your Reddit account
73-
username: ""
74-
# Defaults to `{{ .GitURL }}/releases/tag/{{ .Tag }}`
75-
# url_template: 'https://github.com/bsv-blockchain/{{ .ProjectName }}/releases/tag/{{ .Tag }}'
76-
# Defaults to `{{ .ProjectName }} {{ .Tag }} is out!`
77-
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
67+
# See more at: https://goreleaser.com/customization/announce/#reddit
68+
reddit:
69+
enabled: false
70+
# Application ID for Reddit Application
71+
application_id: ""
72+
# Username for your Reddit account
73+
username: ""
74+
# Defaults to `{{ .GitURL }}/releases/tag/{{ .Tag }}`
75+
# url_template: 'https://github.com/bsv-blockchain/{{ .ProjectName }}/releases/tag/{{ .Tag }}'
76+
# Defaults to `{{ .ProjectName }} {{ .Tag }} is out!`
77+
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'

.pre-commit-config.yaml

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -15,62 +15,62 @@
1515
minimum_pre_commit_version: "3.7.0" # requires Python‑based hooks v2.0+
1616

1717
repos:
18-
# ---------------------- Core hygiene hooks --------------------------
19-
- repo: https://github.com/pre-commit/pre-commit-hooks
20-
rev: v4.6.0
21-
hooks:
22-
- id: check-added-large-files
23-
- id: end-of-file-fixer
24-
- id: trailing-whitespace
25-
- id: check-merge-conflict
18+
# ---------------------- Core hygiene hooks --------------------------
19+
- repo: https://github.com/pre-commit/pre-commit-hooks
20+
rev: v4.6.0
21+
hooks:
22+
- id: check-added-large-files
23+
- id: end-of-file-fixer
24+
- id: trailing-whitespace
25+
- id: check-merge-conflict
2626

27-
# ------------------------- Go toolchain -----------------------------
28-
- repo: https://github.com/dnephin/pre-commit-golang
29-
rev: v1.5.2
30-
hooks:
31-
- id: go-fmt
32-
- id: go-imports
33-
- id: go-vet
34-
- id: golangci-lint
35-
args: [ "--config=.golangci.json --verbose" ]
27+
# ------------------------- Go toolchain -----------------------------
28+
- repo: https://github.com/dnephin/pre-commit-golang
29+
rev: v1.5.2
30+
hooks:
31+
- id: go-fmt
32+
- id: go-imports
33+
- id: go-vet
34+
- id: golangci-lint
35+
args: [ "--config=.golangci.json --verbose" ]
3636

37-
# ------------------------ Security scans ---------------------------
38-
- repo: https://github.com/zricethezav/gitleaks
39-
rev: v8.18.2
40-
hooks:
41-
- id: gitleaks
42-
stages: [ commit, push ]
37+
# ------------------------ Security scans ---------------------------
38+
- repo: https://github.com/zricethezav/gitleaks
39+
rev: v8.18.2
40+
hooks:
41+
- id: gitleaks
42+
stages: [ commit, push ]
4343

44-
# ------------------- Commenting rule enforcement -------------------
45-
- repo: local
46-
hooks:
47-
- id: revive-comment-style
48-
name: "revive: enforce GoDoc & comment style from AGENTS.md"
49-
language: system
50-
entry: |
51-
bash -c 'revive -config .revive.toml ./...'
52-
types: [ go ]
53-
fail_fast: true
44+
# ------------------- Commenting rule enforcement -------------------
45+
- repo: local
46+
hooks:
47+
- id: revive-comment-style
48+
name: "revive: enforce GoDoc & comment style from AGENTS.md"
49+
language: system
50+
entry: |
51+
bash -c 'revive -config .revive.toml ./...'
52+
types: [ go ]
53+
fail_fast: true
5454

55-
- id: comment-conventions
56-
name: "custom comment linter (AGENTS.md)"
57-
language: python
58-
entry: scripts/comment_lint.py
59-
types: [ go, markdown ]
60-
pass_filenames: true
61-
additional_dependencies:
62-
- regex==2025.6
63-
- ruamel.yaml==0.18
55+
- id: comment-conventions
56+
name: "custom comment linter (AGENTS.md)"
57+
language: python
58+
entry: scripts/comment_lint.py
59+
types: [ go, markdown ]
60+
pass_filenames: true
61+
additional_dependencies:
62+
- regex==2025.6
63+
- ruamel.yaml==0.18
6464

65-
# --------------------- Commit‑msg validation -----------------------
66-
- repo: https://github.com/antham/commitlint
67-
rev: v0.7.0
68-
hooks:
69-
- id: commitlint
70-
stages: [ commit-msg ]
71-
entry: commitlint -g .github/commitlint.config.js
72-
additional_dependencies:
73-
- "@commitlint/config-conventional@19.3.0"
74-
- "@commitlint/cli@19.3.0"
65+
# --------------------- Commit‑msg validation -----------------------
66+
- repo: https://github.com/antham/commitlint
67+
rev: v0.7.0
68+
hooks:
69+
- id: commitlint
70+
stages: [ commit-msg ]
71+
entry: commitlint -g .github/commitlint.config.js
72+
additional_dependencies:
73+
- "@commitlint/config-conventional@19.3.0"
74+
- "@commitlint/cli@19.3.0"
7575

76-
default_stages: [commit, push]
76+
default_stages: [ commit, push ]

.vscode/extensions.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"recommendations": [
3-
"golang.Go"
4-
]
2+
"recommendations": [
3+
"golang.Go"
4+
]
55
}

.vscode/launch.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"version": "0.2.0",
3-
"configurations": [
4-
{
5-
"name": "Launch",
6-
"type": "go",
7-
"request": "launch",
8-
"mode": "auto",
9-
"program": "${fileDirname}",
10-
"env": {},
11-
"args": []
12-
}
13-
]
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch",
6+
"type": "go",
7+
"request": "launch",
8+
"mode": "auto",
9+
"program": "${fileDirname}",
10+
"env": {},
11+
"args": []
12+
}
13+
]
1414
}

.vscode/settings.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
2-
"[go]": {
3-
"editor.formatOnSave": true,
4-
"editor.codeActionsOnSave": {
5-
"source.organizeImports": "explicit"
6-
}
7-
},
8-
"[go.mod]": {
9-
"editor.formatOnSave": true,
10-
"editor.codeActionsOnSave": {
11-
"source.organizeImports": "explicit"
12-
}
13-
},
14-
"go.useLanguageServer": true,
15-
"gopls": {
16-
"formatting.local": "github.com/bsv-blockchain/go-chaincfg",
17-
"formatting.gofumpt": true
18-
},
19-
"go.lintTool": "golangci-lint",
20-
"go.lintFlags": [
21-
"--verbose"
22-
],
23-
"[go][go.mod]": {
24-
"editor.codeActionsOnSave": {
25-
"source.organizeImports": "explicit"
26-
}
27-
}
2+
"[go]": {
3+
"editor.formatOnSave": true,
4+
"editor.codeActionsOnSave": {
5+
"source.organizeImports": "explicit"
6+
}
7+
},
8+
"[go.mod]": {
9+
"editor.formatOnSave": true,
10+
"editor.codeActionsOnSave": {
11+
"source.organizeImports": "explicit"
12+
}
13+
},
14+
"go.useLanguageServer": true,
15+
"gopls": {
16+
"formatting.local": "github.com/bsv-blockchain/go-chaincfg",
17+
"formatting.gofumpt": true
18+
},
19+
"go.lintTool": "golangci-lint",
20+
"go.lintFlags": [
21+
"--verbose"
22+
],
23+
"[go][go.mod]": {
24+
"editor.codeActionsOnSave": {
25+
"source.organizeImports": "explicit"
26+
}
27+
}
2828
}

.vscode/tasks.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"version": "2.0.0",
3-
"tasks": [
4-
{
5-
"label": "make",
6-
"type": "shell",
7-
"command": "make",
8-
"problemMatcher": [
9-
"$go"
10-
],
11-
"group": {
12-
"kind": "build",
13-
"isDefault": true
14-
}
15-
}
16-
]
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "make",
6+
"type": "shell",
7+
"command": "make",
8+
"problemMatcher": [
9+
"$go"
10+
],
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
}
15+
}
16+
]
1717
}

0 commit comments

Comments
 (0)