Skip to content

Commit 333c1f3

Browse files
fedekunzecolin-axner
andauthoredMar 12, 2021
repo utils (notional-labs#84)
* repo utils * Update .mergify.yml Co-authored-by: colin axnér <[email protected]>
1 parent 7f97424 commit 333c1f3

File tree

5 files changed

+284
-0
lines changed

5 files changed

+284
-0
lines changed
 

‎.clang-format

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
---
2+
Language: Proto
3+
# BasedOnStyle: LLVM
4+
AccessModifierOffset: -2
5+
AlignAfterOpenBracket: Align
6+
AlignConsecutiveAssignments: true
7+
AlignConsecutiveDeclarations: true
8+
AlignEscapedNewlines: Right
9+
AlignOperands: true
10+
AlignTrailingComments: true
11+
AllowAllParametersOfDeclarationOnNextLine: true
12+
AllowShortBlocksOnASingleLine: true
13+
AllowShortCaseLabelsOnASingleLine: false
14+
AllowShortFunctionsOnASingleLine: Empty
15+
AllowShortIfStatementsOnASingleLine: false
16+
AllowShortLoopsOnASingleLine: false
17+
AlwaysBreakAfterDefinitionReturnType: None
18+
AlwaysBreakAfterReturnType: None
19+
AlwaysBreakBeforeMultilineStrings: false
20+
AlwaysBreakTemplateDeclarations: false
21+
BinPackArguments: true
22+
BinPackParameters: true
23+
BraceWrapping:
24+
AfterClass: false
25+
AfterControlStatement: false
26+
AfterEnum: false
27+
AfterFunction: false
28+
AfterNamespace: false
29+
AfterObjCDeclaration: false
30+
AfterStruct: false
31+
AfterUnion: false
32+
AfterExternBlock: false
33+
BeforeCatch: false
34+
BeforeElse: false
35+
IndentBraces: false
36+
SplitEmptyFunction: true
37+
SplitEmptyRecord: true
38+
SplitEmptyNamespace: true
39+
BreakBeforeBinaryOperators: None
40+
BreakBeforeBraces: Attach
41+
BreakBeforeInheritanceComma: false
42+
BreakBeforeTernaryOperators: true
43+
BreakConstructorInitializersBeforeComma: false
44+
BreakConstructorInitializers: BeforeColon
45+
BreakAfterJavaFieldAnnotations: false
46+
BreakStringLiterals: true
47+
ColumnLimit: 120
48+
CommentPragmas: '^ IWYU pragma:'
49+
CompactNamespaces: false
50+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
51+
ConstructorInitializerIndentWidth: 4
52+
ContinuationIndentWidth: 4
53+
Cpp11BracedListStyle: true
54+
DerivePointerAlignment: false
55+
DisableFormat: false
56+
ExperimentalAutoDetectBinPacking: false
57+
FixNamespaceComments: true
58+
ForEachMacros:
59+
- foreach
60+
- Q_FOREACH
61+
- BOOST_FOREACH
62+
IncludeBlocks: Preserve
63+
IncludeCategories:
64+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
65+
Priority: 2
66+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
67+
Priority: 3
68+
- Regex: '.*'
69+
Priority: 1
70+
IncludeIsMainRegex: '(Test)?$'
71+
IndentCaseLabels: false
72+
IndentPPDirectives: None
73+
IndentWidth: 2
74+
IndentWrappedFunctionNames: false
75+
JavaScriptQuotes: Leave
76+
JavaScriptWrapImports: true
77+
KeepEmptyLinesAtTheStartOfBlocks: true
78+
MacroBlockBegin: ''
79+
MacroBlockEnd: ''
80+
MaxEmptyLinesToKeep: 1
81+
NamespaceIndentation: None
82+
ObjCBlockIndentWidth: 2
83+
ObjCSpaceAfterProperty: false
84+
ObjCSpaceBeforeProtocolList: true
85+
PenaltyBreakAssignment: 2
86+
PenaltyBreakBeforeFirstCallParameter: 19
87+
PenaltyBreakComment: 300
88+
PenaltyBreakFirstLessLess: 120
89+
PenaltyBreakString: 1000
90+
PenaltyExcessCharacter: 1000000
91+
PenaltyReturnTypeOnItsOwnLine: 60
92+
PointerAlignment: Right
93+
RawStringFormats:
94+
- Delimiters:
95+
- pb
96+
Language: TextProto
97+
BasedOnStyle: google
98+
ReflowComments: true
99+
SortIncludes: true
100+
SortUsingDeclarations: true
101+
SpaceAfterCStyleCast: false
102+
SpaceAfterTemplateKeyword: true
103+
SpaceBeforeAssignmentOperators: true
104+
SpaceBeforeParens: ControlStatements
105+
SpaceInEmptyParentheses: false
106+
SpacesBeforeTrailingComments: 1
107+
SpacesInAngles: false
108+
SpacesInContainerLiterals: false
109+
SpacesInCStyleCastParentheses: false
110+
SpacesInParentheses: false
111+
SpacesInSquareBrackets: false
112+
Standard: Cpp11
113+
TabWidth: 8
114+
UseTab: Never
115+
...
116+

‎.gitignore

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# OS
2+
.DS_Store
3+
*.swp
4+
*.swo
5+
*.swl
6+
*.swm
7+
*.swn
8+
*.pyc
9+
10+
# private files
11+
private[.-]*
12+
private
13+
14+
# Build
15+
vendor
16+
build
17+
docs/_build
18+
docs/tutorial
19+
docs/node_modules
20+
docs/modules
21+
dist
22+
tools-stamp
23+
buf-stamp
24+
artifacts
25+
26+
# Data - ideally these don't exist
27+
baseapp/data/*
28+
client/lcd/keys/*
29+
mytestnet
30+
31+
# Testing
32+
coverage.txt
33+
profile.out
34+
sim_log_file
35+
36+
# Vagrant
37+
.vagrant/
38+
*.box
39+
*.log
40+
vagrant
41+
42+
# IDE
43+
.idea
44+
*.iml
45+
.dir-locals.el
46+
.vscode
47+
48+
# Graphviz
49+
dependency-graph.png
50+
51+
# Latex
52+
*.aux
53+
*.out
54+
*.synctex.gz

‎.golangci.yml

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
run:
2+
tests: false
3+
# # timeout for analysis, e.g. 30s, 5m, default is 1m
4+
# timeout: 5m
5+
6+
linters:
7+
disable-all: true
8+
enable:
9+
- bodyclose
10+
- deadcode
11+
- depguard
12+
- dogsled
13+
# - errcheck
14+
- goconst
15+
- gocritic
16+
- gofmt
17+
- goimports
18+
- golint
19+
- gosec
20+
- gosimple
21+
- govet
22+
- ineffassign
23+
- interfacer
24+
- maligned
25+
- misspell
26+
- nakedret
27+
- prealloc
28+
- scopelint
29+
- staticcheck
30+
- structcheck
31+
- stylecheck
32+
- typecheck
33+
- unconvert
34+
- unused
35+
- unparam
36+
- misspell
37+
# - wsl
38+
- nolintlint
39+
40+
issues:
41+
exclude-rules:
42+
- text: "Use of weak random number generator"
43+
linters:
44+
- gosec
45+
- text: "comment on exported var"
46+
linters:
47+
- golint
48+
- text: "don't use an underscore in package name"
49+
linters:
50+
- golint
51+
- text: "ST1003:"
52+
linters:
53+
- stylecheck
54+
# FIXME: Disabled until golangci-lint updates stylecheck with this fix:
55+
# https://github.com/dominikh/go-tools/issues/389
56+
- text: "ST1016:"
57+
linters:
58+
- stylecheck
59+
max-issues-per-linter: 10000
60+
max-same-issues: 10000
61+
62+
linters-settings:
63+
dogsled:
64+
max-blank-identifiers: 3
65+
maligned:
66+
# print struct with more effective memory layout or not, false by default
67+
suggest-new: true
68+
nolintlint:
69+
allow-unused: false
70+
allow-leading-space: true
71+
require-explanation: false
72+
require-specific: false

‎.mergify.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pull_request_rules:
2+
- name: automerge to main with label automerge and branch protection passing
3+
conditions:
4+
- "#approved-reviews-by>1"
5+
- base=main
6+
- label=automerge
7+
actions:
8+
merge:
9+
method: squash
10+
strict: true

‎SECURITY.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Security
2+
3+
> **IMPORTANT**: If you find a security issue, you can contact our team directly at
4+
security@interchain.berlin, or report it to our [bug bounty program](https://hackerone.com/tendermint) on HackerOne. *DO NOT* open a public issue on the repository.
5+
6+
## Bug Bounty
7+
8+
As part of our [Coordinated Vulnerability Disclosure Policy](https://tendermint.com/security), we operate a
9+
[bug bounty program](https://hackerone.com/tendermint) with Hacker One.
10+
11+
See the policy linked above for more details on submissions and rewards and read
12+
this [blog post](https://blog.cosmos.network/bug-bounty-program-for-tendermint-cosmos-833c67693586) for the program scope.
13+
14+
The following is a list of examples of the kinds of bugs we're most interested
15+
in for the IBC Golang repository. Please refer to the corresponding repositories for vulnerabilities on the [Cosmos SDK]((https://github.com/cosmos/cosmos-sdk/blob/master/SECURITY.md)) and [Tendermint](https://github.com/tendermint/tendermint/blob/master/SECURITY.md) repositories.
16+
17+
### IBC Core
18+
19+
- [`02-client`](https://github.com/cosmos/ibc-go/tree/modules/core/02-client)
20+
- [`03-connection`](https://github.com/cosmos/ibc-go/tree/modules/core/03-connection)
21+
- [`04-channel`](https://github.com/cosmos/ibc-go/tree/modules/core/04-channel)
22+
- [`05-port`](https://github.com/cosmos/ibc-go/tree/modules/core/05-port)
23+
- [`23-commitment`](https://github.com/cosmos/ibc-go/tree/modules/core/23-commitment)
24+
- [`24-host`](https://github.com/cosmos/ibc-go/tree/modules/core/24-host)
25+
26+
### IBC Applications
27+
28+
- [`transfer`](https://github.com/cosmos/ibc-go/tree/modules/apps/transfer)
29+
30+
### Light Clients
31+
32+
- [`07-tendermint`](https://github.com/cosmos/ibc-go/tree/modules/light-clients/07-tendermint)

0 commit comments

Comments
 (0)
Please sign in to comment.