github.com/yoheimuta/protolint@v0.49.8-0.20240515023657-4ecaebb7575d/_example/proto/issue_292/.gostyle.yaml (about)

     1  ---
     2  # Lint directives.
     3  lint:
     4    # Linter rules.
     5    # Run `protolint list` to see all available rules.
     6    rules:
     7      # Determines whether or not to include the default set of linters.
     8      no_default: true
     9  
    10      # Set the default to all linters. This option works the other way around as no_default does.
    11      # If you want to enable this option, delete the comment out below and no_default.
    12      # all_default: true
    13  
    14      # The specific linters to add.
    15      add:
    16        - MESSAGES_HAVE_COMMENT
    17        - SERVICES_HAVE_COMMENT
    18        - RPCS_HAVE_COMMENT
    19        - FIELDS_HAVE_COMMENT
    20        - ENUMS_HAVE_COMMENT
    21        - ENUM_FIELDS_HAVE_COMMENT
    22  
    23    # Linter rules option.
    24    rules_option:
    25      # MESSAGES_HAVE_COMMENT rule option.
    26      messages_have_comment:
    27        # Comments need to begin with the name of the thing being described. default is false.
    28        should_follow_golang_style: true
    29  
    30      # SERVICES_HAVE_COMMENT rule option.
    31      services_have_comment:
    32        # Comments need to begin with the name of the thing being described. default is false.
    33        should_follow_golang_style: true
    34  
    35      # RPCS_HAVE_COMMENT rule option.
    36      rpcs_have_comment:
    37        # Comments need to begin with the name of the thing being described. default is false.
    38        should_follow_golang_style: true
    39  
    40      # FIELDS_HAVE_COMMENT rule option.
    41      fields_have_comment:
    42        # Comments need to begin with the name of the thing being described. default is false.
    43        should_follow_golang_style: true
    44  
    45      # ENUMS_HAVE_COMMENT rule option.
    46      enums_have_comment:
    47        # Comments need to begin with the name of the thing being described. default is false.
    48        should_follow_golang_style: true
    49  
    50      # ENUM_FIELDS_HAVE_COMMENT rule option.
    51      enum_fields_have_comment:
    52        # Comments need to begin with the name of the thing being described. default is false.
    53        should_follow_golang_style: true