Skip to content

Update RuboCop configuration and dependencies for improved linting an…

29b225b
Select commit
Loading
Failed to load commit list.
Merged

Rubocop config updates #384

Update RuboCop configuration and dependencies for improved linting an…
29b225b
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL succeeded Dec 28, 2025 in 2s

No new alerts in code changed by this pull request

Annotations

Check failure on line 382 in lib/ruby_units/unit.rb

See this annotation in the file changed.

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.

Check failure on line 399 in lib/ruby_units/unit.rb

See this annotation in the file changed.

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.

Check failure on line 2064 in lib/ruby_units/unit.rb

See this annotation in the file changed.

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.

Check failure on line 2079 in lib/ruby_units/unit.rb

See this annotation in the file changed.

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.

Check failure on line 2121 in lib/ruby_units/unit.rb

See this annotation in the file changed.

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.

Check failure on line 2132 in lib/ruby_units/unit.rb

See this annotation in the file changed.

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '9'' and with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '9'' and with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '9'' and with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '9'9/' and with many repetitions of '9'.

Check failure on line 2143 in lib/ruby_units/unit.rb

See this annotation in the file changed.

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '9#' and with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '9#' and with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '9#9/' and with many repetitions of '9'.

Check failure on line 2154 in lib/ruby_units/unit.rb

See this annotation in the file changed.

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on a
library input
may run slow on strings with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '9st' and with many repetitions of '9'.
This
regular expression
that depends on a
library input
may run slow on strings starting with '9st' and with many repetitions of '9'.