Skip to content

Commit

Permalink
feat: Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed May 23, 2024
0 parents commit 3a762d0
Show file tree
Hide file tree
Showing 39 changed files with 5,418 additions and 0 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/
68 changes: 68 additions & 0 deletions .ecrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"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$",
"standard\\.mk$"
],
"IgnoreDefaults": true,
"NoColor": false,
"SpacesAfterTabs": false,
"Verbose": false
}
54 changes: 54 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Uses editorconfig to maintain consistent coding styles
# https://editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 4
trim_trailing_whitespace = true

[Makefile*]
indent_style = tab
max_line_length = 20000

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

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

[.ecrc]
indent_size = 2

[*.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
132 changes: 132 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
# Helps Git use the right algorithms for diffs
# https://git-scm.com/docs/gitattributes

# Auto detect text files and perform LF normalization
# https://www.davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
* text=auto

# Front-end
*.css text eol=lf diff=css
*.htm text eol=lf diff=html
*.html text eol=lf diff=html
*.js text eol=lf
*.less text eol=lf diff=css
*.sass text eol=lf diff=css
*.scss text eol=lf diff=css
*.ts text eol=lf
*.xhtml text eol=lf diff=html

# Documents
*.bibtex text diff=bibtex
*.doc diff=astextplain
*.DOC 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 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
*.tex text eol=lf diff=tex
*.adoc text eol=lf
*.textile text eol=lf
*.mustache text eol=lf
*.csv text eol=lf
*.tab text eol=lf
*.tsv text eol=lf
*.txt text eol=lf
*.markdown text eol=lf diff=markdown
*.md text eol=lf diff=markdown
*.mdwn text eol=lf diff=markdown
*.mdown text eol=lf diff=markdown
*.mkd text eol=lf diff=markdown
*.mkdn text eol=lf diff=markdown
*.mdtxt text eol=lf diff=markdown
*.mdtext text eol=lf diff=markdown
*.txt text eol=lf

# "Files"
Dockerfile text eol=lf
Makefile text eol=lf
*README* text eol=lf

# Graphics
*.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 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 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
*.json text eol=lf
*.toml text eol=lf
*.xml text eol=lf
*.yaml text eol=lf
*.yml text eol=lf

# Configs
*.conf text eol=lf
*.config text eol=lf
.editorconfig text eol=lf
.env text eol=lf
.gitattributes text eol=lf
.gitconfig text eol=lf
*.lock text eol=lf -diff
package-lock.json text eol=lf -diff

# Archives
*.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

# Text files where line endings should be preserved
*.patch -text

# Exclude files from exporting
.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore

# Treat all Go files in this repo as binary, with no git magic updating
# line endings. Windows users contributing to Go will need to use a
# modern version of git and editors capable of LF line endings.
*.go -text diff=golang

# Terraform
*.tf text eol=lf
*.tfvars text eol=lf
*.hcl text eol=lf

# Ignore files (like .npmignore or .gitignore)
*.*ignore text eol=lf
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
Loading

0 comments on commit 3a762d0

Please sign in to comment.