Welcome to mirror list, hosted at ThFree Co, Russian Federation.

.protolint.yaml « proto - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c415ec7680a61af0ffe7603781b03bb917eff148 (plain)
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
---
lint:
  rules:
    all_default: true
    remove:
      # Our use of enums isn't conforming to best practices, and it's hard to
      # change retroactively. We may eventually enable these linters and then
      # create exceptions for preexisting definitions.
      - ENUM_FIELD_NAMES_PREFIX
      - ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH
      # We don't specify any line length limits.
      - MAX_LINE_LENGTH
      # Many of our definitions aren't commented at all. We want to eventually
      # opt-in to enable these linting warnings, but right now we just want to
      # get protolint included in our workflow with minimal required changes.
      - FILE_HAS_COMMENT
      - RPCS_HAVE_COMMENT
      - FIELDS_HAVE_COMMENT
      - MESSAGES_HAVE_COMMENT
      - ENUMS_HAVE_COMMENT
      - ENUM_FIELDS_HAVE_COMMENT
      # Many of our fields and messages have prepositions in them, and
      # furthermore this rule doesn't feel all that sensible after all. We thus
      # disable it.
      - FIELD_NAMES_EXCLUDE_PREPOSITIONS
      - MESSAGE_NAMES_EXCLUDE_PREPOSITIONS