Skip to content

Commit d7d9575

Browse files
authored
[FEAT] - Repo Upgrade & Overhaul (#154)
1 parent 38f0b5c commit d7d9575

File tree

138 files changed

+27185
-2984
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+27185
-2984
lines changed

.cursorrules

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Cursor Rules derived from .github/AGENTS.md
2+
3+
## Read AGENTS.md First
4+
All contributors must read `.github/AGENTS.md` for complete guidelines. If any rule here conflicts with that file, **AGENTS.md** takes precedence.
5+
6+
## Coding Standards
7+
- Format with `magex format:fix`.
8+
- Lint with `magex lint` and vet with `magex vet`.
9+
- Run `magex test` before committing.
10+
- Follow Go naming and commenting conventions described in AGENTS.md.
11+
12+
## Commit Messages
13+
- Use the format `<type>(<scope>): <imperative short description>`.
14+
- Types include `feat`, `fix`, `docs`, `test`, `refactor`, `chore`, `build`, `ci`.
15+
16+
## Pull Requests
17+
- Title format: `[Subsystem] Imperative and concise summary of change`.
18+
- Description must include the sections:
19+
1. **What Changed**
20+
2. **Why It Was Necessary**
21+
3. **Testing Performed**
22+
4. **Impact / Risk**
23+
24+
## Dependency Management
25+
- Manage modules with `magex tidy` after import changes.
26+
27+
## Security Reporting
28+
- Do not open public issues for vulnerabilities.
29+
- Follow `SECURITY.md` for responsible disclosure.

.devcontainer.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"customizations": {
3+
"vscode": {
4+
"extensions": [
5+
"golang.Go",
6+
"github.vscode-github-actions",
7+
"eamodio.gitlens"
8+
],
9+
"settings": {
10+
"editor.codeActionsOnSave": {
11+
"source.organizeImports": "explicit"
12+
},
13+
"editor.formatOnSave": true,
14+
"go.lintTool": "golangci-lint",
15+
"go.toolsEnvVars": {
16+
"GOFLAGS": "-buildvcs=false"
17+
},
18+
"go.useLanguageServer": true
19+
}
20+
}
21+
},
22+
"features": {
23+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
24+
"ghcr.io/devcontainers/features/github-cli:1": {}
25+
},
26+
"image": "mcr.microsoft.com/devcontainers/go:0-1.24-bullseye",
27+
"mounts": [
28+
"type=cache,target=/home/vscode/.cache/go-build",
29+
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
30+
],
31+
"name": "go-bsv-middleware dev container",
32+
"postCreateCommand": "magex lint && magex vet && magex test",
33+
"postStartCommand": "go install github.com/mrz1836/mage-x/cmd/magex@latest",
34+
"remoteUser": "vscode",
35+
"runArgs": [
36+
"--cap-drop=ALL",
37+
"--security-opt",
38+
"no-new-privileges:true"
39+
]
40+
}

.dockerignore

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
##
2+
## Specific to .dockerignore
3+
##
4+
5+
.git/
6+
Dockerfile
7+
contrib/
8+
9+
##
10+
## Common with .gitignore
11+
##
12+
13+
# Temporary files
14+
*~
15+
*#
16+
.#*
17+
18+
# Vendors
19+
node_modules/
20+
vendor/
21+
22+
# Binaries for programs and plugins
23+
dist/
24+
gin-bin
25+
*.exe
26+
*.exe~
27+
*.dll
28+
*.so
29+
*.dylib
30+
31+
# Byte-compiled / optimized / DLL files
32+
__pycache__/
33+
**/__pycache__/
34+
*.pyc
35+
*.pyo
36+
*.pyd
37+
.Python
38+
*.py[cod]
39+
*$py.class
40+
.pytest_cache/
41+
.mypy_cache/
42+
43+
# Test binary, build with `go test -c`
44+
*.test
45+
46+
# Output of the go coverage tool, specifically when used with LiteIDE
47+
*.out
48+
49+
# Virtual environments
50+
.venv
51+
../venv
52+
.DS_Store
53+
.AppleDouble
54+
.LSOverride
55+
._*
56+
57+
# Temporary directories in the project
58+
bin
59+
tmp
60+
61+
# Project files not needed in the container
62+
.cursorrules
63+
.editorconfig
64+
.github
65+
.gitpod.yml
66+
.golangci.json
67+
.golangci.yml
68+
.goreleaser.yml
69+
.vscode
70+
docs
71+
LICENSE
72+
README.md
73+
codecov.yml

.editorconfig

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# EditorConfig helps maintain consistent coding styles
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_style = tab
8+
indent_size = 4
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[*.{yml,yaml}]
16+
indent_style = space
17+
indent_size = 2
18+
19+
[*.{json,prettierrc}]
20+
indent_style = space
21+
indent_size = 4
22+
23+
[*.{js,mjs,cjs,ts}]
24+
indent_style = space
25+
indent_size = 4
26+
27+
[*.py]
28+
indent_style = space
29+
indent_size = 4
30+
31+
[{Makefile,*.mk}]
32+
indent_style = tab
33+
34+
[*.{xml,cff}]
35+
indent_style = space
36+
indent_size = 2
37+
38+
[{LICENSE,Dockerfile,.gitignore,.dockerignore,.prettierignore}]
39+
insert_final_newline = true

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Enforce Unix-style line endings for all files
2+
* text=auto eol=lf
3+
4+
# Go source files
5+
*.go text
6+
*.mod text
7+
*.sum text
8+
9+
# Treat binary files appropriately
10+
*.png binary
11+
*.jpg binary
12+
*.gif binary
13+
*.svg text

0 commit comments

Comments
 (0)