From 74165ac506e040fdad9c67245058f0e85b588620 Mon Sep 17 00:00:00 2001 From: kevmoo Date: Sat, 14 Mar 2026 20:13:28 -0700 Subject: [PATCH 1/2] Ignore avoid_classes_with_only_static_members lint on existing classes --- lib/src/vector_math_operations/matrix.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/vector_math_operations/matrix.dart b/lib/src/vector_math_operations/matrix.dart index 946a5ce8..f4bdc5ce 100644 --- a/lib/src/vector_math_operations/matrix.dart +++ b/lib/src/vector_math_operations/matrix.dart @@ -7,6 +7,7 @@ part of '../../vector_math_operations.dart'; // ignore: avoid_classes_with_only_static_members /// Static methods operating on 4x4 matrices packed column major into a /// Float32List. +// ignore: avoid_classes_with_only_static_members class Matrix44Operations { /// Compute the determinant of the 4x4 [matrix] starting at [offset]. static double determinant(Float32List matrix, int offset) { @@ -278,6 +279,7 @@ class Matrix44Operations { // ignore: avoid_classes_with_only_static_members /// Static methods operating on 4x4 matrices packed column major into a /// Float32x4List. +// ignore: avoid_classes_with_only_static_members class Matrix44SIMDOperations { /// [out] = [A] * [B]; Starting at [outOffset], [aOffset], and [bOffset]. static void multiply( From 89de2f6102a5767fc794a5730c0b9860306ad5c9 Mon Sep 17 00:00:00 2001 From: kevmoo Date: Mon, 16 Mar 2026 09:15:16 -0700 Subject: [PATCH 2/2] remove unused ignores --- analysis_options.yaml | 1 + benchmark/matrix_bench.dart | 2 -- lib/src/vector_math_operations/matrix.dart | 2 -- test/geometry_test.dart | 2 -- test/matrix4_test.dart | 2 -- test/noise_test.dart | 2 -- 6 files changed, 1 insertion(+), 10 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index 64017129..d5da7c37 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -26,4 +26,5 @@ linter: - prefer_expression_function_bodies - prefer_final_locals - unnecessary_await_in_return + - unnecessary_ignore - use_string_buffers diff --git a/benchmark/matrix_bench.dart b/benchmark/matrix_bench.dart index 195b0c8a..5150cb72 100644 --- a/benchmark/matrix_bench.dart +++ b/benchmark/matrix_bench.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// ignore_for_file: deprecated_member_use_from_same_package - import 'dart:math' as math; import 'dart:typed_data'; diff --git a/lib/src/vector_math_operations/matrix.dart b/lib/src/vector_math_operations/matrix.dart index f4bdc5ce..a04a62e3 100644 --- a/lib/src/vector_math_operations/matrix.dart +++ b/lib/src/vector_math_operations/matrix.dart @@ -4,7 +4,6 @@ part of '../../vector_math_operations.dart'; -// ignore: avoid_classes_with_only_static_members /// Static methods operating on 4x4 matrices packed column major into a /// Float32List. // ignore: avoid_classes_with_only_static_members @@ -276,7 +275,6 @@ class Matrix44Operations { } } -// ignore: avoid_classes_with_only_static_members /// Static methods operating on 4x4 matrices packed column major into a /// Float32x4List. // ignore: avoid_classes_with_only_static_members diff --git a/test/geometry_test.dart b/test/geometry_test.dart index e2803dd1..1e73ff13 100644 --- a/test/geometry_test.dart +++ b/test/geometry_test.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// ignore_for_file: deprecated_member_use_from_same_package - import 'dart:typed_data'; import 'package:test/test.dart'; diff --git a/test/matrix4_test.dart b/test/matrix4_test.dart index 71440a6f..9bacbd0d 100644 --- a/test/matrix4_test.dart +++ b/test/matrix4_test.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// ignore_for_file: deprecated_member_use_from_same_package - import 'dart:math' as math; import 'dart:typed_data'; diff --git a/test/noise_test.dart b/test/noise_test.dart index a8da0421..3dde5416 100644 --- a/test/noise_test.dart +++ b/test/noise_test.dart @@ -2,8 +2,6 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// ignore_for_file: deprecated_member_use_from_same_package - import 'package:test/test.dart'; import 'package:vector_math/vector_math.dart';