Feature: SOFIA-local accounts with login (with optional 2fa) #3061
Annotations
10 errors and 4 warnings
Lint:
app/controllers/sofia_accounts_controller.rb#L1
Metrics/ClassLength: Class has too many lines. [178/100]
|
Lint:
app/controllers/sofia_accounts_controller.rb#L10
Metrics/AbcSize: Assignment Branch Condition size for create is too high. [<7, 42, 7> 43.15/17] (http://c2.com/cgi/wiki?AbcMetric, https://en.wikipedia.org/wiki/ABC_Software_Metric)
|
Lint:
app/controllers/sofia_accounts_controller.rb#L10
Metrics/CyclomaticComplexity: Cyclomatic complexity for create is too high. [8/7]
|
Lint:
app/controllers/sofia_accounts_controller.rb#L10
Metrics/MethodLength: Method has too many lines. [23/10] (https://rubystyle.guide#short-methods)
|
Lint:
app/controllers/sofia_accounts_controller.rb#L40
Metrics/AbcSize: Assignment Branch Condition size for validate_user is too high. [<5, 22, 7> 23.62/17] (http://c2.com/cgi/wiki?AbcMetric, https://en.wikipedia.org/wiki/ABC_Software_Metric)
|
Lint:
app/controllers/sofia_accounts_controller.rb#L40
Metrics/MethodLength: Method has too many lines. [18/10] (https://rubystyle.guide#short-methods)
|
Lint:
app/controllers/sofia_accounts_controller.rb#L62
Metrics/AbcSize: Assignment Branch Condition size for update_password is too high. [<4, 28, 4> 28.57/17] (http://c2.com/cgi/wiki?AbcMetric, https://en.wikipedia.org/wiki/ABC_Software_Metric)
|
Lint:
app/controllers/sofia_accounts_controller.rb#L62
Metrics/MethodLength: Method has too many lines. [17/10] (https://rubystyle.guide#short-methods)
|
Lint:
app/controllers/sofia_accounts_controller.rb#L86
Metrics/AbcSize: Assignment Branch Condition size for enable_otp is too high. [<4, 18, 3> 18.68/17] (http://c2.com/cgi/wiki?AbcMetric, https://en.wikipedia.org/wiki/ABC_Software_Metric)
|
Lint:
app/controllers/sofia_accounts_controller.rb#L86
Metrics/MethodLength: Method has too many lines. [15/10] (https://rubystyle.guide#short-methods)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Lint:
app/controllers/sofia_accounts_controller.rb#L79
Lint/UselessAssignment: Useless assignment to variable - e. (https://rubystyle.guide#underscore-unused-vars)
|
Lint:
spec/controllers/sofia_accounts_controller/activate_account_spec.rb#L45
Lint/UselessAssignment: Useless assignment to variable - request_params. (https://rubystyle.guide#underscore-unused-vars)
|
Lint:
spec/controllers/sofia_accounts_controller/activate_account_spec.rb#L56
Lint/UselessAssignment: Useless assignment to variable - request_params. (https://rubystyle.guide#underscore-unused-vars)
|
Loading