Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Eengineer1 committed Jul 8, 2022
0 parents commit 9db69f1
Show file tree
Hide file tree
Showing 25 changed files with 1,416 additions and 0 deletions.
74 changes: 74 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Bug Report
description: File a bug report
title: "[Bug]: "
labels: ["bug"]
body:
- type: textarea
id: what-happened
attributes:
label: What went wrong?
description: Also tell us, what did you expect to happen?
placeholder: Tell us more about this potential bug.
validations:
required: true
body:
- type: textarea
id: repro
attributes:
label: How can we reproduce this bug?
description: "How do you trigger this bug? Please walk us through it step-by-step."
value: |
1.
2.
3.
...
validations:
required: true
- type: dropdown
id: environment
attributes:
label: Environment
description: What environment does this bug affect?
options:
- Mainnet
- Testnet
- Both mainnet/testnet
- Not applicable
validations:
required: true
- type: input
id: prevalence
attributes:
label: Bug prevalence
description: "How often do you or others encounter this bug?"
placeholder: "Whenever I visit the user account page (1-2 times a week)"
- type: dropdown
id: app-clients
attributes:
label: Which browser/client application did you encounter the bug in? (if applicable)
description: "Tell us what app/client you found the bug in. You can select multiple options if necessary."
multiple: true
options:
- Chrome / Chromium
- Brave
- Safari
- Microsoft Edge
- Mozilla Firefox
- API (RPC/REST/gRPC)
- Keplr/other wallet app
- Other
- Not applicable
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy-paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/cheqd/.github/blob/main/CODE_OF_CONDUCT.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
blank_issues_enabled: true

contact_links:
- name: System Status
url: https://status.cheqd.net
about: System status reporting tool for cheqd services

- name: Technical Documentation
url: https://docs.cheqd.io
about: Technical Documentation for cheqd projects

- name: Community Slack
url: http://cheqd.link/join-cheqd-slack
about: Community Slack for Q&A and discussions
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Feature Request
description: Request a new feature
title: "[feature]: "
labels: ["feature-request"]
body:
- type: textarea
id: feature-info
attributes:
label: What is the feature you'd like to see?
description: Also tell what prompted this idea?
placeholder: I would like to see...
validations:
required: true
- type: textarea
id: examples
attributes:
label: Are there any examples of where similar features are available?
description: Feel free to provide any links, screenshots, mockups etc that would help illustrate this idea better.
placeholder: An example of this feature is...
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/cheqd/.github/blob/main/CODE_OF_CONDUCT.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true
2 changes: 2 additions & 0 deletions .github/linters/.ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
skip_list:
- "command-instead-of-module"
13 changes: 13 additions & 0 deletions .github/linters/.checkov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
compact: false
directory:
- ./digital-ocean
- ./hetzner
download-external-modules: true
evaluate-variables: true
external-modules-download-path: .external_modules
framework:
- all
output: cli
repo-id: cheqd/cheqd-infra
skip-fixes: false
soft-fail: false
37 changes: 37 additions & 0 deletions .github/linters/.commitlint.rules.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
module.exports = {
rules: {
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
],
],
'scope-case': [2, 'always', 'lower-case'],
'scope-empty': [1, 'never'],
'subject-case': [
2,
'always',
['sentence-case'],
],
'subject-empty': [1, 'never'],
'subject-full-stop': [1, 'never', '.'],
'header-max-length': [2, 'always', 100],
'body-leading-blank': [1, 'always'],
'body-max-line-length': [2, 'always', 1000],
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [2, 'always', 100],
},
};
18 changes: 18 additions & 0 deletions .github/linters/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"env": {
"node": true,
"jest/globals": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "jest"],
"rules": {}
}
25 changes: 25 additions & 0 deletions .github/linters/.golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
run:
timeout: 5m


linters:
enable:
- deadcode
- errcheck
- gosimple
- gofumpt
- govet
- ineffassign
- misspell
- nestif
- staticcheck
- structcheck
- typecheck
- unused
- varcheck


linters-settings:
misspell:
ignore-words:
- cheqd
15 changes: 15 additions & 0 deletions .github/linters/.hadolint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Set threshold level (error | warning | info | style | ignore | none)
failure-threshold: warning

# List of ignored rules
# See list for reference: https://github.com/hadolint/hadolint#rules
ignored:

# Override default levels for specific rules
override:
error:
warning:
info:
- DL3008
- DL3027
style:
139 changes: 139 additions & 0 deletions .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
default: false # includes/excludes all rules by default

# Heading levels should only increment by one level at a time <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md001>
MD001: true

# Heading style <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md003>
MD003:
style: 'consistent'

# Unordered list style <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md004>
MD004:
style: 'consistent'

# Inconsistent indentation for list items at the same level <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md005>
MD005: true

# Consider starting bulleted lists at the beginning of the line <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md006>
MD006: true

# Unordered list indentation <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md007>
MD007: false

# Trailing spaces <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md009>
MD009: true

# Hard tabs <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md010>
MD010: false

# Reversed link syntax <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md011>
MD011: true

# Multiple consecutive blank lines <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md012>
MD012:
maximum: 2

# Line length <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md013>
MD013: false

# Dollar signs used before commands without showing output <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md014>
MD014: true

# No space after hash on atx style heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md018>
MD018: true

# Multiple spaces after hash on atx style heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md019>
MD019: true

# No space inside hashes on closed atx style heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md020>
MD020: true

# Multiple spaces inside hashes on closed atx style heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md021>
MD021: true

# Headings should be surrounded by blank lines <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md022>
MD022: true

# Headings must start at the beginning of the line <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md023>
MD023: true

# Multiple headings with the same content <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md024>
MD024:
allow_different_nesting: true

# Multiple top level headings in the same document <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md025>
MD025: false

# Trailing punctuation in heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md026>
MD026: true

# Multiple spaces after blockquote symbol <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md027>
MD027: true

# Blank line inside blockquote <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md028>
MD028: false

# Ordered list item prefix <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md029>
MD029:
style: 'one_or_ordered'

# Spaces after list markers <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md030>
MD030: true

# Fenced code blocks should be surrounded by blank lines <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md031>
MD031: true

# Lists should be surrounded by blank lines <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md032>
MD032: true

# Inline HTML <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md033>
MD033:
allowed_elements: ['a']

# Bare URL used <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md034>
MD034: true

# Horizontal rule style <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md035>
MD035:
style: 'consistent'

# Emphasis used instead of a heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md036>
MD036: true

# Spaces inside emphasis markers <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md037>
MD037: true

# Spaces inside code span elements <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md038>
MD038: true

# Spaces inside link text <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md039>
MD039: true

# Fenced code blocks should have a language specified <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md040>
MD040: true

# First line in file should be a top level heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md041>
MD041: true

# No empty links <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md042>
MD042: true

# Required heading structure <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md043>
MD043: false

# Proper names should have the correct capitalization <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md044>
MD044: false

# Images should have alternate text (alt text) <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md045>
MD045: true

# Code block style <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md046>
MD046:
style: 'consistent'

# Files should end with a single newline character <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md047>
MD047: true

# Code fence style <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md048>
MD048:
style: 'consistent'
13 changes: 13 additions & 0 deletions .github/linters/mlc_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"aliveStatusCodes": [0, 200, 206, 403, 501, 999],
"replacementPatterns": [
{
"pattern": "\" %}",
"replacement": ""
},
{
"pattern": "&quot; %}",
"replacement": ""
}
]
}
Loading

0 comments on commit 9db69f1

Please sign in to comment.