synapsecns/sanguine

View on GitHub
services/scribe/graphql/client/client.go

Summary

Maintainability
F
5 days
Test Coverage

File client.go has 811 lines of code (exceeds 500 allowed). Consider refactoring.
Open

// Code generated by github.com/Yamashou/gqlgenc, DO NOT EDIT.

package client

import (
Severity: Major
Found in services/scribe/graphql/client/client.go - About 1 day to fix

    Client has 21 methods (exceeds 20 allowed). Consider refactoring.
    Open

    type Client struct {
        Client *client.Client
    }
    Severity: Minor
    Found in services/scribe/graphql/client/client.go - About 2 hrs to fix

      Method Client.GetLogsRange has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func (c *Client) GetLogsRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, asc *bool, httpRequestOptions ...client.HTTPRequestOption) (*GetLogsRange, error) {
      Severity: Major
      Found in services/scribe/graphql/client/client.go - About 50 mins to fix

        Method Client.GetTransactionsAtHeadRange has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        func (c *Client) GetTransactionsAtHeadRange(ctx context.Context, chainID int, startBlock int, endBlock int, lastIndexed int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetTransactionsAtHeadRange, error) {
        Severity: Major
        Found in services/scribe/graphql/client/client.go - About 50 mins to fix

          Method Client.GetReceiptsRange has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          func (c *Client) GetReceiptsRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetReceiptsRange, error) {
          Severity: Minor
          Found in services/scribe/graphql/client/client.go - About 45 mins to fix

            Method Client.GetTransactionsRange has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            func (c *Client) GetTransactionsRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetTransactionsRange, error) {
            Severity: Minor
            Found in services/scribe/graphql/client/client.go - About 45 mins to fix

              Method Client.GetLogsAtHeadRange has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              func (c *Client) GetLogsAtHeadRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetLogsAtHeadRange, error) {
              Severity: Minor
              Found in services/scribe/graphql/client/client.go - About 45 mins to fix

                Method Client.GetReceiptsAtHeadRange has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                func (c *Client) GetReceiptsAtHeadRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetReceiptsAtHeadRange, error) {
                Severity: Minor
                Found in services/scribe/graphql/client/client.go - About 45 mins to fix

                  Method Client.GetReceipts has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  func (c *Client) GetReceipts(ctx context.Context, chainID int, page int, blockNumber int, httpRequestOptions ...client.HTTPRequestOption) (*GetReceipts, error) {
                  Severity: Minor
                  Found in services/scribe/graphql/client/client.go - About 35 mins to fix

                    Identical blocks of code found in 2 locations. Consider refactoring.
                    Open

                    type Query struct {
                        Logs                     []*model.Log         "json:\"logs\" graphql:\"logs\""
                        LogsRange                []*model.Log         "json:\"logsRange\" graphql:\"logsRange\""
                        Receipts                 []*model.Receipt     "json:\"receipts\" graphql:\"receipts\""
                        ReceiptsRange            []*model.Receipt     "json:\"receiptsRange\" graphql:\"receiptsRange\""
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 1 other location - About 2 hrs to fix
                    services/explorer/consumer/client/client.go on lines 21..40

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 226.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                    func (c *Client) GetLogsRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, asc *bool, httpRequestOptions ...client.HTTPRequestOption) (*GetLogsRange, error) {
                        vars := map[string]interface{}{
                            "chain_id":    chainID,
                            "start_block": startBlock,
                            "end_block":   endBlock,
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 1 other location - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 117..132

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 172.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 4 locations. Consider refactoring.
                    Open

                    func (c *Client) GetLogsAtHeadRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetLogsAtHeadRange, error) {
                        vars := map[string]interface{}{
                            "chain_id":    chainID,
                            "start_block": startBlock,
                            "end_block":   endBlock,
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 3 other locations - About 1 hr to fix
                    services/scribe/graphql/client/client.go on lines 491..505
                    services/scribe/graphql/client/client.go on lines 524..538
                    services/scribe/graphql/client/client.go on lines 640..654

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 160.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 4 locations. Consider refactoring.
                    Open

                    func (c *Client) GetTransactionsRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetTransactionsRange, error) {
                        vars := map[string]interface{}{
                            "chain_id":    chainID,
                            "start_block": startBlock,
                            "end_block":   endBlock,
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 3 other locations - About 1 hr to fix
                    services/scribe/graphql/client/client.go on lines 379..393
                    services/scribe/graphql/client/client.go on lines 491..505
                    services/scribe/graphql/client/client.go on lines 524..538

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 160.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 4 locations. Consider refactoring.
                    Open

                    func (c *Client) GetReceiptsAtHeadRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetReceiptsAtHeadRange, error) {
                        vars := map[string]interface{}{
                            "chain_id":    chainID,
                            "start_block": startBlock,
                            "end_block":   endBlock,
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 3 other locations - About 1 hr to fix
                    services/scribe/graphql/client/client.go on lines 379..393
                    services/scribe/graphql/client/client.go on lines 491..505
                    services/scribe/graphql/client/client.go on lines 640..654

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 160.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 4 locations. Consider refactoring.
                    Open

                    func (c *Client) GetReceiptsRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetReceiptsRange, error) {
                        vars := map[string]interface{}{
                            "chain_id":    chainID,
                            "start_block": startBlock,
                            "end_block":   endBlock,
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 3 other locations - About 1 hr to fix
                    services/scribe/graphql/client/client.go on lines 379..393
                    services/scribe/graphql/client/client.go on lines 524..538
                    services/scribe/graphql/client/client.go on lines 640..654

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 160.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 13 locations. Consider refactoring.
                    Open

                    func (c *Client) GetLogsResolvers(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetLogsResolvers, error) {
                        vars := map[string]interface{}{
                            "chain_id": chainID,
                            "page":     page,
                        }
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 12 other locations - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 174..186
                    services/explorer/consumer/client/client.go on lines 229..241
                    services/explorer/consumer/client/client.go on lines 248..260
                    services/explorer/consumer/client/client.go on lines 285..297
                    services/scribe/graphql/client/client.go on lines 316..328
                    services/scribe/graphql/client/client.go on lines 572..584
                    services/scribe/graphql/client/client.go on lines 606..618
                    services/scribe/graphql/client/client.go on lines 724..736
                    services/scribe/graphql/client/client.go on lines 743..755
                    services/scribe/graphql/client/client.go on lines 798..810
                    services/scribe/graphql/client/client.go on lines 817..829
                    services/scribe/graphql/client/client.go on lines 854..866

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 140.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 13 locations. Consider refactoring.
                    Open

                    func (c *Client) GetTransactionsResolvers(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetTransactionsResolvers, error) {
                        vars := map[string]interface{}{
                            "chain_id": chainID,
                            "page":     page,
                        }
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 12 other locations - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 174..186
                    services/explorer/consumer/client/client.go on lines 229..241
                    services/explorer/consumer/client/client.go on lines 248..260
                    services/explorer/consumer/client/client.go on lines 285..297
                    services/scribe/graphql/client/client.go on lines 316..328
                    services/scribe/graphql/client/client.go on lines 428..440
                    services/scribe/graphql/client/client.go on lines 572..584
                    services/scribe/graphql/client/client.go on lines 606..618
                    services/scribe/graphql/client/client.go on lines 743..755
                    services/scribe/graphql/client/client.go on lines 798..810
                    services/scribe/graphql/client/client.go on lines 817..829
                    services/scribe/graphql/client/client.go on lines 854..866

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 140.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 13 locations. Consider refactoring.
                    Open

                    func (c *Client) GetBlockTime(ctx context.Context, chainID int, blockNumber int, httpRequestOptions ...client.HTTPRequestOption) (*GetBlockTime, error) {
                        vars := map[string]interface{}{
                            "chain_id":     chainID,
                            "block_number": blockNumber,
                        }
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 12 other locations - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 174..186
                    services/explorer/consumer/client/client.go on lines 229..241
                    services/explorer/consumer/client/client.go on lines 248..260
                    services/explorer/consumer/client/client.go on lines 285..297
                    services/scribe/graphql/client/client.go on lines 316..328
                    services/scribe/graphql/client/client.go on lines 428..440
                    services/scribe/graphql/client/client.go on lines 572..584
                    services/scribe/graphql/client/client.go on lines 606..618
                    services/scribe/graphql/client/client.go on lines 724..736
                    services/scribe/graphql/client/client.go on lines 798..810
                    services/scribe/graphql/client/client.go on lines 817..829
                    services/scribe/graphql/client/client.go on lines 854..866

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 140.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 13 locations. Consider refactoring.
                    Open

                    func (c *Client) GetLogs(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetLogs, error) {
                        vars := map[string]interface{}{
                            "chain_id": chainID,
                            "page":     page,
                        }
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 12 other locations - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 174..186
                    services/explorer/consumer/client/client.go on lines 229..241
                    services/explorer/consumer/client/client.go on lines 248..260
                    services/explorer/consumer/client/client.go on lines 285..297
                    services/scribe/graphql/client/client.go on lines 428..440
                    services/scribe/graphql/client/client.go on lines 572..584
                    services/scribe/graphql/client/client.go on lines 606..618
                    services/scribe/graphql/client/client.go on lines 724..736
                    services/scribe/graphql/client/client.go on lines 743..755
                    services/scribe/graphql/client/client.go on lines 798..810
                    services/scribe/graphql/client/client.go on lines 817..829
                    services/scribe/graphql/client/client.go on lines 854..866

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 140.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 13 locations. Consider refactoring.
                    Open

                    func (c *Client) GetReceiptsResolvers(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetReceiptsResolvers, error) {
                        vars := map[string]interface{}{
                            "chain_id": chainID,
                            "page":     page,
                        }
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 12 other locations - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 174..186
                    services/explorer/consumer/client/client.go on lines 229..241
                    services/explorer/consumer/client/client.go on lines 248..260
                    services/explorer/consumer/client/client.go on lines 285..297
                    services/scribe/graphql/client/client.go on lines 316..328
                    services/scribe/graphql/client/client.go on lines 428..440
                    services/scribe/graphql/client/client.go on lines 606..618
                    services/scribe/graphql/client/client.go on lines 724..736
                    services/scribe/graphql/client/client.go on lines 743..755
                    services/scribe/graphql/client/client.go on lines 798..810
                    services/scribe/graphql/client/client.go on lines 817..829
                    services/scribe/graphql/client/client.go on lines 854..866

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 140.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 13 locations. Consider refactoring.
                    Open

                    func (c *Client) GetTransactions(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetTransactions, error) {
                        vars := map[string]interface{}{
                            "chain_id": chainID,
                            "page":     page,
                        }
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 12 other locations - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 174..186
                    services/explorer/consumer/client/client.go on lines 229..241
                    services/explorer/consumer/client/client.go on lines 248..260
                    services/explorer/consumer/client/client.go on lines 285..297
                    services/scribe/graphql/client/client.go on lines 316..328
                    services/scribe/graphql/client/client.go on lines 428..440
                    services/scribe/graphql/client/client.go on lines 572..584
                    services/scribe/graphql/client/client.go on lines 724..736
                    services/scribe/graphql/client/client.go on lines 743..755
                    services/scribe/graphql/client/client.go on lines 798..810
                    services/scribe/graphql/client/client.go on lines 817..829
                    services/scribe/graphql/client/client.go on lines 854..866

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 140.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 13 locations. Consider refactoring.
                    Open

                    func (c *Client) GetLogCount(ctx context.Context, chainID int, contractAddress string, httpRequestOptions ...client.HTTPRequestOption) (*GetLogCount, error) {
                        vars := map[string]interface{}{
                            "chain_id":         chainID,
                            "contract_address": contractAddress,
                        }
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 12 other locations - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 174..186
                    services/explorer/consumer/client/client.go on lines 229..241
                    services/explorer/consumer/client/client.go on lines 248..260
                    services/explorer/consumer/client/client.go on lines 285..297
                    services/scribe/graphql/client/client.go on lines 316..328
                    services/scribe/graphql/client/client.go on lines 428..440
                    services/scribe/graphql/client/client.go on lines 572..584
                    services/scribe/graphql/client/client.go on lines 606..618
                    services/scribe/graphql/client/client.go on lines 724..736
                    services/scribe/graphql/client/client.go on lines 743..755
                    services/scribe/graphql/client/client.go on lines 798..810
                    services/scribe/graphql/client/client.go on lines 817..829

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 140.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 13 locations. Consider refactoring.
                    Open

                    func (c *Client) GetTxSender(ctx context.Context, chainID int, txHash string, httpRequestOptions ...client.HTTPRequestOption) (*GetTxSender, error) {
                        vars := map[string]interface{}{
                            "chain_id": chainID,
                            "tx_hash":  txHash,
                        }
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 12 other locations - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 174..186
                    services/explorer/consumer/client/client.go on lines 229..241
                    services/explorer/consumer/client/client.go on lines 248..260
                    services/explorer/consumer/client/client.go on lines 285..297
                    services/scribe/graphql/client/client.go on lines 316..328
                    services/scribe/graphql/client/client.go on lines 428..440
                    services/scribe/graphql/client/client.go on lines 572..584
                    services/scribe/graphql/client/client.go on lines 606..618
                    services/scribe/graphql/client/client.go on lines 724..736
                    services/scribe/graphql/client/client.go on lines 743..755
                    services/scribe/graphql/client/client.go on lines 817..829
                    services/scribe/graphql/client/client.go on lines 854..866

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 140.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 13 locations. Consider refactoring.
                    Open

                    func (c *Client) GetLastIndexed(ctx context.Context, chainID int, contractAddress string, httpRequestOptions ...client.HTTPRequestOption) (*GetLastIndexed, error) {
                        vars := map[string]interface{}{
                            "chain_id":         chainID,
                            "contract_address": contractAddress,
                        }
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 12 other locations - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 174..186
                    services/explorer/consumer/client/client.go on lines 229..241
                    services/explorer/consumer/client/client.go on lines 248..260
                    services/explorer/consumer/client/client.go on lines 285..297
                    services/scribe/graphql/client/client.go on lines 316..328
                    services/scribe/graphql/client/client.go on lines 428..440
                    services/scribe/graphql/client/client.go on lines 572..584
                    services/scribe/graphql/client/client.go on lines 606..618
                    services/scribe/graphql/client/client.go on lines 724..736
                    services/scribe/graphql/client/client.go on lines 743..755
                    services/scribe/graphql/client/client.go on lines 798..810
                    services/scribe/graphql/client/client.go on lines 854..866

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 140.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 11 locations. Consider refactoring.
                    Open

                    func (c *Client) GetLastStoredBlockNumber(ctx context.Context, chainID int, httpRequestOptions ...client.HTTPRequestOption) (*GetLastStoredBlockNumber, error) {
                        vars := map[string]interface{}{
                            "chain_id": chainID,
                        }
                    
                    
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 10 other locations - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 193..204
                    services/explorer/consumer/client/client.go on lines 211..222
                    services/explorer/consumer/client/client.go on lines 267..278
                    services/explorer/consumer/client/client.go on lines 304..315
                    services/explorer/consumer/client/client.go on lines 322..333
                    services/explorer/graphql/client/client.go on lines 644..655
                    services/scribe/graphql/client/client.go on lines 780..791
                    services/scribe/graphql/client/client.go on lines 836..847
                    services/scribe/graphql/client/client.go on lines 873..884
                    services/scribe/graphql/client/client.go on lines 891..902

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 130.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 11 locations. Consider refactoring.
                    Open

                    func (c *Client) GetReceiptCount(ctx context.Context, chainID int, httpRequestOptions ...client.HTTPRequestOption) (*GetReceiptCount, error) {
                        vars := map[string]interface{}{
                            "chain_id": chainID,
                        }
                    
                    
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 10 other locations - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 193..204
                    services/explorer/consumer/client/client.go on lines 211..222
                    services/explorer/consumer/client/client.go on lines 267..278
                    services/explorer/consumer/client/client.go on lines 304..315
                    services/explorer/consumer/client/client.go on lines 322..333
                    services/explorer/graphql/client/client.go on lines 644..655
                    services/scribe/graphql/client/client.go on lines 762..773
                    services/scribe/graphql/client/client.go on lines 780..791
                    services/scribe/graphql/client/client.go on lines 836..847
                    services/scribe/graphql/client/client.go on lines 891..902

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 130.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 11 locations. Consider refactoring.
                    Open

                    func (c *Client) GetFirstStoredBlockNumber(ctx context.Context, chainID int, httpRequestOptions ...client.HTTPRequestOption) (*GetFirstStoredBlockNumber, error) {
                        vars := map[string]interface{}{
                            "chain_id": chainID,
                        }
                    
                    
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 10 other locations - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 193..204
                    services/explorer/consumer/client/client.go on lines 211..222
                    services/explorer/consumer/client/client.go on lines 267..278
                    services/explorer/consumer/client/client.go on lines 304..315
                    services/explorer/consumer/client/client.go on lines 322..333
                    services/explorer/graphql/client/client.go on lines 644..655
                    services/scribe/graphql/client/client.go on lines 762..773
                    services/scribe/graphql/client/client.go on lines 836..847
                    services/scribe/graphql/client/client.go on lines 873..884
                    services/scribe/graphql/client/client.go on lines 891..902

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 130.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 11 locations. Consider refactoring.
                    Open

                    func (c *Client) GetLastConfirmedBlockNumber(ctx context.Context, chainID int, httpRequestOptions ...client.HTTPRequestOption) (*GetLastConfirmedBlockNumber, error) {
                        vars := map[string]interface{}{
                            "chain_id": chainID,
                        }
                    
                    
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 10 other locations - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 193..204
                    services/explorer/consumer/client/client.go on lines 211..222
                    services/explorer/consumer/client/client.go on lines 267..278
                    services/explorer/consumer/client/client.go on lines 304..315
                    services/explorer/consumer/client/client.go on lines 322..333
                    services/explorer/graphql/client/client.go on lines 644..655
                    services/scribe/graphql/client/client.go on lines 762..773
                    services/scribe/graphql/client/client.go on lines 780..791
                    services/scribe/graphql/client/client.go on lines 873..884
                    services/scribe/graphql/client/client.go on lines 891..902

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 130.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 11 locations. Consider refactoring.
                    Open

                    func (c *Client) GetBlockTimeCount(ctx context.Context, chainID int, httpRequestOptions ...client.HTTPRequestOption) (*GetBlockTimeCount, error) {
                        vars := map[string]interface{}{
                            "chain_id": chainID,
                        }
                    
                    
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 10 other locations - About 1 hr to fix
                    services/explorer/consumer/client/client.go on lines 193..204
                    services/explorer/consumer/client/client.go on lines 211..222
                    services/explorer/consumer/client/client.go on lines 267..278
                    services/explorer/consumer/client/client.go on lines 304..315
                    services/explorer/consumer/client/client.go on lines 322..333
                    services/explorer/graphql/client/client.go on lines 644..655
                    services/scribe/graphql/client/client.go on lines 762..773
                    services/scribe/graphql/client/client.go on lines 780..791
                    services/scribe/graphql/client/client.go on lines 836..847
                    services/scribe/graphql/client/client.go on lines 873..884

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 130.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 4 locations. Consider refactoring.
                    Open

                    type GetTransactionsRange struct {
                        Response []*struct {
                            ChainID   int    "json:\"chain_id\" graphql:\"chain_id\""
                            TxHash    string "json:\"tx_hash\" graphql:\"tx_hash\""
                            Protected bool   "json:\"protected\" graphql:\"protected\""
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 3 other locations - About 50 mins to fix
                    services/explorer/consumer/client/client.go on lines 55..72
                    services/scribe/graphql/client/client.go on lines 189..206
                    services/scribe/graphql/client/client.go on lines 225..242

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 122.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 4 locations. Consider refactoring.
                    Open

                    type GetTransactionsAtHeadRange struct {
                        Response []*struct {
                            ChainID   int    "json:\"chain_id\" graphql:\"chain_id\""
                            TxHash    string "json:\"tx_hash\" graphql:\"tx_hash\""
                            Protected bool   "json:\"protected\" graphql:\"protected\""
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 3 other locations - About 50 mins to fix
                    services/explorer/consumer/client/client.go on lines 55..72
                    services/scribe/graphql/client/client.go on lines 189..206
                    services/scribe/graphql/client/client.go on lines 207..224

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 122.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 4 locations. Consider refactoring.
                    Open

                    type GetTransactions struct {
                        Response []*struct {
                            ChainID   int    "json:\"chain_id\" graphql:\"chain_id\""
                            TxHash    string "json:\"tx_hash\" graphql:\"tx_hash\""
                            Protected bool   "json:\"protected\" graphql:\"protected\""
                    Severity: Major
                    Found in services/scribe/graphql/client/client.go and 3 other locations - About 50 mins to fix
                    services/explorer/consumer/client/client.go on lines 55..72
                    services/scribe/graphql/client/client.go on lines 207..224
                    services/scribe/graphql/client/client.go on lines 225..242

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 122.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 3 locations. Consider refactoring.
                    Open

                    type GetReceiptsAtHeadRange struct {
                        Response []*struct {
                            ChainID           int    "json:\"chain_id\" graphql:\"chain_id\""
                            Type              int    "json:\"type\" graphql:\"type\""
                            PostState         string "json:\"post_state\" graphql:\"post_state\""
                    Severity: Minor
                    Found in services/scribe/graphql/client/client.go and 2 other locations - About 30 mins to fix
                    services/scribe/graphql/client/client.go on lines 114..128
                    services/scribe/graphql/client/client.go on lines 129..143

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 101.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 3 locations. Consider refactoring.
                    Open

                    type GetReceipts struct {
                        Response []*struct {
                            ChainID           int    "json:\"chain_id\" graphql:\"chain_id\""
                            Type              int    "json:\"type\" graphql:\"type\""
                            PostState         string "json:\"post_state\" graphql:\"post_state\""
                    Severity: Minor
                    Found in services/scribe/graphql/client/client.go and 2 other locations - About 30 mins to fix
                    services/scribe/graphql/client/client.go on lines 129..143
                    services/scribe/graphql/client/client.go on lines 144..158

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 101.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    Similar blocks of code found in 3 locations. Consider refactoring.
                    Open

                    type GetReceiptsRange struct {
                        Response []*struct {
                            ChainID           int    "json:\"chain_id\" graphql:\"chain_id\""
                            Type              int    "json:\"type\" graphql:\"type\""
                            PostState         string "json:\"post_state\" graphql:\"post_state\""
                    Severity: Minor
                    Found in services/scribe/graphql/client/client.go and 2 other locations - About 30 mins to fix
                    services/scribe/graphql/client/client.go on lines 114..128
                    services/scribe/graphql/client/client.go on lines 144..158

                    Duplicated Code

                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                    Tuning

                    This issue has a mass of 101.

                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                    Refactorings

                    Further Reading

                    There are no issues that match your filters.

                    Category
                    Status