Repository Analysis

apernet/hysteria

Hysteria is a powerful, lightning fast and censorship resistant proxy.

1.2 Likely human-written View on GitHub
1.2
Adjusted Score
1.2
Raw Score
100%
Time Factor
2026-05-23
Last Push
21,613
Stars
Go
Language
36,329
Lines of Code
224
Files
45
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 5LOW 40

Pattern Findings

45 matches across 4 categories. Click a row to expand file-level details.

Over-Commented Block19 hits · 19 pts
SeverityFileLineSnippet
LOWcore/internal/congestion/bbr/windowed_filter.go1package bbr
LOWcore/internal/congestion/bbr/windowed_filter.go21// (or higher) than everything else in the window and it is the most recent.
LOWcore/internal/congestion/bbr/bandwidth_sampler.go21type sendTimeState struct {
LOWcore/internal/congestion/bbr/bandwidth_sampler.go281
LOWcore/internal/congestion/bbr/bandwidth_sampler.go321 sampler.isAppLimited,
LOWcore/internal/congestion/bbr/bandwidth_sampler.go341// that due to the packet loss, the number of bytes on each curve might get
LOWcore/internal/congestion/bbr/bandwidth_sampler.go361// ack_rate = (bytes(A_1) - bytes(A_0)) / (time(A_1) - time(A_0))
LOWcore/internal/congestion/bbr/bandwidth_sampler.go381// method.
LOWcore/internal/congestion/bbr/bandwidth_sampler.go401// 41. In this case, when we sample bandwidth for packets 21 to 40, the S_0/A_0
LOW…internal/congestion/bbr/packet_number_indexed_queue.go1package bbr
LOWapp/internal/url/url.go1// Copyright 2009 The Go Authors. All rights reserved.
LOWapp/internal/url/url.go101// appearing in a URL string, according to RFC 3986.
LOWapp/internal/url/url.go181
LOWapp/internal/url/url.go221 // for non-ASCII bytes.
LOWapp/internal/url/url.go341 }
LOWapp/internal/url/url.go381// and no password set.
LOWapp/internal/url/url.go801// To obtain the path, String uses u.EscapedPath().
LOWscripts/install_server.sh1#!/usr/bin/env bash
LOWextras/outbounds/acl/compile.go161}
Excessive Try-Catch Wrapping20 hits · 18 pts
SeverityFileLineSnippet
MEDIUMhyperbole.py83def check_command(args):
MEDIUMhyperbole.py151def get_toolchain():
MEDIUMhyperbole.py167def get_lib_version():
LOWhyperbole.py89 except Exception:
LOWhyperbole.py118 except Exception:
LOWhyperbole.py146 except Exception:
LOWhyperbole.py157 except Exception:
LOWhyperbole.py174 except Exception:
LOWhyperbole.py296 except Exception:
LOWhyperbole.py361 except Exception:
LOWhyperbole.py374 except Exception:
LOWhyperbole.py395 except Exception:
LOWhyperbole.py416 except Exception:
LOWhyperbole.py428 except Exception:
LOWhyperbole.py434 except Exception:
LOWhyperbole.py446 except Exception:
LOWhyperbole.py453 except Exception:
LOWapp/internal/utils/certloader_test_tlsclient.py31 except Exception as e:
MEDIUMapp/internal/utils/certloader_test_tlsclient.py32 print(f"Error: {e}")
MEDIUMapp/internal/utils/certloader_test_tlsclient.py7def check_tls(server, ca_cert, sni, alpn):
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippet
LOWhyperbole.py167
LOWhyperbole.py196
LOWhyperbole.py399
LOWhyperbole.py497
LOWapp/internal/sockopts/fd_control_unix_socket_test.py8
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWextras/outbounds/ob_direct.go418 // Don't forget to close the UDPConn if binding fails