<commit_before>tenets:
  - name: ignore-defered-returns
    actions:
      codelingo/review:
        comment: Values returned from defered functions should not be ignored.
    query: |
      import codelingo/ast/go

      @review comment
      go.defer_stmt(depth = any):
        go.call_expr:
          any_of:
            edge("calls"):
              go.func_decl:
                go.func_type:
                  go.field_list
                  go.field_list
            edge("calls"):
              go.func_lit:
                go.func_type:
                  go.field_list
                  go.field_list<commit_msg>Simplify Tenet according to review comments<commit_after>tenets:
  - name: ignore-defered-returns
    actions:
      codelingo/review:
        comment: Values returned from defered functions should not be ignored.
    query: |
      import codelingo/ast/go

      @review comment
      go.defer_stmt(depth = any):
        go.call_expr:
          any_of:
            edge("calls"):
              go.func_decl:
                go.func_type:
                  go.field_list
                  go.field_list
            go.func_lit:
              go.func_type:
                go.field_list
                go.field_list
{'fraction_non_alphanumeric': 0.07368421052631578, 'fraction_numerical': 0.0, 'mean_word_length': 1.3542857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6958016', 'n_tokens_mistral': 354, 'n_tokens_neox': 340, 'n_words': 71}