johnsonjh/gfcp

View on GitHub
gfcp_snsi.go

Summary

Maintainability
B
6 hrs
Test Coverage

Method Snsi.Reset has 96 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (s *Snsi) Reset() {
    atomic.StoreUint64(
        &s.GFcpBytesSent,
        0,
    )
Severity: Major
Found in gfcp_snsi.go - About 2 hrs to fix

    Method Snsi.ToSlice has 75 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (
        s *Snsi,
    ) ToSlice() []string {
        snsi := s.Copy()
        return []string{
    Severity: Minor
    Found in gfcp_snsi.go - About 2 hrs to fix

      Method Snsi.Copy has 74 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

      func (
          s *Snsi,
      ) Copy() *Snsi {
          d := newSnsi()
          d.GFcpBytesSent = atomic.LoadUint64(
      Severity: Minor
      Found in gfcp_snsi.go - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status