diff --git a/.golangci.yml b/.golangci.yml index 43af4c3..1fbb8db 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -41,6 +41,7 @@ linters: - maintidx # maintidx measures the maintainability index of each function. - makezero # Finds slice declarations with non-zero initial length - misspell # Finds commonly misspelled English words in comments + - modernize # Replace and suggests simplifications to code - nakedret # Finds naked returns in functions greater than a specified function length - nestif # Reports deeply nested if statements - nilerr # Finds the code that returns nil even if it checks that the error is not nil. diff --git a/gcc/delivery_rate_estimator.go b/gcc/delivery_rate_estimator.go index 2e176c1..35d4172 100644 --- a/gcc/delivery_rate_estimator.go +++ b/gcc/delivery_rate_estimator.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2025 The Pion community +// SPDX-FileCopyrightText: 2026 The Pion community // SPDX-License-Identifier: MIT package gcc diff --git a/gcc/delivery_rate_estimator_test.go b/gcc/delivery_rate_estimator_test.go index 0324ffb..f4fcf5f 100644 --- a/gcc/delivery_rate_estimator_test.go +++ b/gcc/delivery_rate_estimator_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2025 The Pion community +// SPDX-FileCopyrightText: 2026 The Pion community // SPDX-License-Identifier: MIT package gcc diff --git a/gcc/ewma.go b/gcc/ewma.go index cd487c3..c6c3f43 100644 --- a/gcc/ewma.go +++ b/gcc/ewma.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2025 The Pion community +// SPDX-FileCopyrightText: 2026 The Pion community // SPDX-License-Identifier: MIT package gcc diff --git a/gcc/ewma_test.go b/gcc/ewma_test.go index 9ca371a..3aa4ce6 100644 --- a/gcc/ewma_test.go +++ b/gcc/ewma_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2025 The Pion community +// SPDX-FileCopyrightText: 2026 The Pion community // SPDX-License-Identifier: MIT package gcc diff --git a/gcc/gcc.go b/gcc/gcc.go index c10a0fd..0767d48 100644 --- a/gcc/gcc.go +++ b/gcc/gcc.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2025 The Pion community +// SPDX-FileCopyrightText: 2026 The Pion community // SPDX-License-Identifier: MIT // Package gcc implements a congestion controller based on diff --git a/gcc/loss_rate_controller.go b/gcc/loss_rate_controller.go index cbb22a6..249d733 100644 --- a/gcc/loss_rate_controller.go +++ b/gcc/loss_rate_controller.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2025 The Pion community +// SPDX-FileCopyrightText: 2026 The Pion community // SPDX-License-Identifier: MIT package gcc diff --git a/gcc/loss_rate_controller_test.go b/gcc/loss_rate_controller_test.go index ad0a425..241e128 100644 --- a/gcc/loss_rate_controller_test.go +++ b/gcc/loss_rate_controller_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2025 The Pion community +// SPDX-FileCopyrightText: 2026 The Pion community // SPDX-License-Identifier: MIT package gcc diff --git a/gcc/state.go b/gcc/state.go index 34c99f3..8d6aaae 100644 --- a/gcc/state.go +++ b/gcc/state.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2025 The Pion community +// SPDX-FileCopyrightText: 2026 The Pion community // SPDX-License-Identifier: MIT package gcc diff --git a/gcc/state_test.go b/gcc/state_test.go index eaad70e..dd5f5e1 100644 --- a/gcc/state_test.go +++ b/gcc/state_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2025 The Pion community +// SPDX-FileCopyrightText: 2026 The Pion community // SPDX-License-Identifier: MIT package gcc diff --git a/gcc/usage.go b/gcc/usage.go index d3ccfac..43b0a96 100644 --- a/gcc/usage.go +++ b/gcc/usage.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2025 The Pion community +// SPDX-FileCopyrightText: 2026 The Pion community // SPDX-License-Identifier: MIT package gcc diff --git a/gcc/usage_test.go b/gcc/usage_test.go index e0fc84b..cae525c 100644 --- a/gcc/usage_test.go +++ b/gcc/usage_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2025 The Pion community +// SPDX-FileCopyrightText: 2026 The Pion community // SPDX-License-Identifier: MIT package gcc