Skip to content

Commit

Permalink
Feature/v2 (#3)
Browse files Browse the repository at this point in the history
* refactor: Massive reset of the entire codebase.

* refactor: New implementation.

* fix: Small adjustments to error handling.

* deps: Updated the Go dependencies.

* refactor: Switch to using a table.

* docs: Added a README.

* docs: Added a README.
  • Loading branch information
skyzyx authored Apr 3, 2024
1 parent 95b192e commit f3db823
Show file tree
Hide file tree
Showing 56 changed files with 3,214 additions and 1,729 deletions.
110 changes: 110 additions & 0 deletions .dcignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# Write glob rules for ignored files.
# Check syntax on https://deepcode.freshdesk.com/support/solutions/articles/60000531055-how-can-i-ignore-files-or-directories-
# Used by Snyk; https://docs.snyk.io/features/integrations/ide-tools/visual-studio-code-extension-for-snyk-code

# Hidden directories
.*/

# Python
__pycache__/
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
MANIFEST
htmlcov/
cover/
instance/
docs/_build/
target/
profile_default/
__pypackages__/
celerybeat-schedule
env/
venv/
ENV/
env.bak/
venv.bak/
/site
cython_debug/

# JupyterNotebooks
profile_default/

# Hugo
/public/
/resources/_gen/

# VirtualEnv
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts

# SublimeText
Package Control.cache/
Package Control.ca-certs/

# Windows
$RECYCLE.BIN/

# Linux
*~

# Emacs
*~
#*#
auto-save-list
tramp
*_archive
/eshell/history
/eshell/lastdir
/elpa/
/auto/
dist/
/server/

# macOS
Icon

Network Trash Folder
Temporary Items

# JetBrains
cmake-build-*/
out/

# Vim
*~
tags

# Node
logs
pids
lib-cov
coverage
bower_components
build/Release
node_modules/
jspm_packages/
web_modules/
out
dist

# Rust
debug/
target/

# Packer
packer_cache/
67 changes: 67 additions & 0 deletions .ecrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"Debug": false,
"Exclude": [
"\\.7z$",
"\\.avif",
"\\.bak$",
"\\.bin$",
"\\.bz2$",
"\\.cache$",
"\\.css\\.map$",
"\\.dcignore$",
"\\.ecrc$",
"\\.eot$",
"\\.example$",
"\\.gif$",
"\\.go$",
"\\.golangci.yml$",
"\\.goreleaser.yml$",
"\\.gotmpl$",
"\\.gz$",
"\\.ico$",
"\\.jpeg$",
"\\.jpg$",
"\\.js\\.map$",
"\\.log$",
"\\.mp4$",
"\\.otf$",
"\\.patch$",
"\\.pbm",
"\\.pdf$",
"\\.pgm",
"\\.png$",
"\\.pnm",
"\\.ppm",
"\\.snap$",
"\\.svg$",
"\\.tar$",
"\\.terraform-docs\\.yml$",
"\\.terraform\\.lock\\.hcl$",
"\\.ttf$",
"\\.txt$",
"\\.vscode/.*?\\.json$",
"\\.webp$",
"\\.wmv$",
"\\.woff$",
"\\.woff2$",
"\\.zip$",
"^\\.pnp\\.cjs$",
"^\\.pnp\\.js$",
"^\\.pnp\\.loader\\.mjs$",
"^\\.yarn/",
"^Cargo\\.lock$",
"^composer\\.lock$",
"^package-lock\\.json$",
"^yarn\\.lock$",
"cliff\\.toml$",
"go\\.mod$",
"go\\.sum$",
"min\\.css$",
"min\\.js$",
"package-lock\\.json$"
],
"IgnoreDefaults": true,
"NoColor": false,
"SpacesAfterTabs": false,
"Verbose": false
}
44 changes: 34 additions & 10 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uses editorconfig to maintain consistent coding styles
# http://EditorConfig.org
# https://editorconfig.org

root = true

Expand All @@ -10,21 +10,45 @@ indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 4
trim_trailing_whitespace = true

[*.toml]
indent_size = 4
[Makefile*]
indent_style = tab
max_line_length = 20000

[*.{css,html,js,json,less,sass,scss,yaml,yml}]
# Web
[*.{css,html,js,less,sass,scss}]
indent_size = 2

[*.{tf,tfvars}]
# Configuration formats
[*.{hcl,json,jsonc,toml,yaml,yml}]
indent_size = 2
indent_style = space

[*.md]
max_line_length = 0
trim_trailing_whitespace = false
[.ecrc]
indent_size = 2

[Makefile*]
[*.go]
indent_style = tab

[*.{md,md.tmpl}]
indent_size = 2
max_line_length = 20000

[*.py]
indent_size = 4

[*.sh]
indent_size = 4
max_line_length = 120

# Terraform files
[*.{tf,tftpl,tfvars}]
indent_size = 2
indent_style = space

[.yamllint]
indent_size = 2

[bats/*.sh]
max_line_length = 20000
50 changes: 25 additions & 25 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
*.bibtex text diff=bibtex
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.docx filter=lfs diff=lfs merge=lfs -text
*.DOCX filter=lfs diff=lfs merge=lfs -text
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.pdf filter=lfs diff=lfs merge=lfs -text
*.PDF filter=lfs diff=lfs merge=lfs -text
*.rtf diff=astextplain
*.RTF diff=astextplain
*.md text eol=lf diff=markdown
Expand All @@ -37,7 +37,6 @@
*.tab text eol=lf
*.tsv text eol=lf
*.txt text eol=lf
*.sql text eol=lf
*.markdown text eol=lf diff=markdown
*.md text eol=lf diff=markdown
*.mdwn text eol=lf diff=markdown
Expand All @@ -54,33 +53,34 @@ Makefile text eol=lf
*README* text eol=lf

# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
*.eps binary
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.gif filter=lfs diff=lfs merge=lfs -text
*.tif filter=lfs diff=lfs merge=lfs -text
*.tiff filter=lfs diff=lfs merge=lfs -text
*.ico filter=lfs diff=lfs merge=lfs -text
*.eps filter=lfs diff=lfs merge=lfs -text
*.svg text eol=lf
*.svgz binary
*.webp binary
*.svgz filter=lfs diff=lfs merge=lfs -text
*.webp filter=lfs diff=lfs merge=lfs -text

# Scripts
*.bash text eol=lf
*.fish text eol=lf
*.sh text eol=lf

# These are explicitly windows files and should use crlf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf

# Fonts
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary
*.ttf filter=lfs diff=lfs merge=lfs -text
*.eot filter=lfs diff=lfs merge=lfs -text
*.otf filter=lfs diff=lfs merge=lfs -text
*.woff filter=lfs diff=lfs merge=lfs -text
*.woff2 filter=lfs diff=lfs merge=lfs -text

# Serialization
*.ini text eol=lf
Expand All @@ -101,11 +101,11 @@ Makefile text eol=lf
package-lock.json text eol=lf -diff

# Archives
*.7z binary
*.gz binary
*.tar binary
*.tgz binary
*.zip binary
*.7z filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text

# Database
*.sql text eol=lf
Expand Down
3 changes: 3 additions & 0 deletions .githooks/commit-msg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
# shellcheck disable=2312
gommit check message "$(cat "$1")"
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# @global-owner1 and @global-owner2 will be requested for
# review when someone opens a pull request.
* @skyzyx
7 changes: 7 additions & 0 deletions .github/dco.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
# https://github.com/dcoapp/app
allowRemediationCommits:
individual: true

require:
members: false
28 changes: 28 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
# ----------------------------------------------------------------------------
# goplicate-start:always
- package-ecosystem: docker
directory: /.devcontainer
schedule:
interval: daily

- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
# goplicate-end:always

# ----------------------------------------------------------------------------
# goplicate-start:go
- package-ecosystem: gomod # See documentation for possible values
directory: / # Location of package manifests
schedule:
interval: daily
# goplicate-end:go
Loading

0 comments on commit f3db823

Please sign in to comment.