forked from hyperledger/fabric-protos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprototool.yaml
45 lines (43 loc) · 1.22 KB
/
prototool.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright the Hyperledger Fabric contributors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
lint:
file_header:
is_commented: true
content: |
// Copyright the Hyperledger Fabric contributors. All rights reserved.
//
// SPDX-License-Identifier: Apache-2.0
group: google
rules:
add:
- PACKAGES_SAME_IN_DIR
- FILE_NAMES_LOWER_SNAKE_CASE
- FILE_OPTIONS_GO_PACKAGE_NOT_LONG_FORM
- FILE_OPTIONS_GO_PACKAGE_SAME_IN_DIR
- FILE_OPTIONS_JAVA_MULTIPLE_FILES_SAME_IN_DIR
- FILE_OPTIONS_REQUIRE_GO_PACKAGE
- GOGO_NOT_IMPORTED
- IMPORTS_NOT_WEAK
- MESSAGE_FIELDS_NOT_FLOATS
- PACKAGE_IS_DECLARED
- PACKAGE_LOWER_SNAKE_CASE
- PACKAGE_NO_KEYWORDS
- PACKAGES_SAME_IN_DIR
- SYNTAX_PROTO3
- MESSAGE_FIELDS_NOT_FLOATS
- WKT_DIRECTLY_IMPORTED
- WKT_DURATION_SUFFIX
remove:
ignores:
- id: PACKAGES_SAME_IN_DIR
files:
- msp
- id: MESSAGE_FIELD_NAMES_LOWER_SNAKE_CASE
files:
- common/ledger.proto
- gossip/message.proto
- peer/chaincode_shim.proto
- peer/lifecycle/db.proto
- peer/proposal.proto
- peer/transaction.proto
- token/operations.proto