From d8fcdbe7f75fa1f2c68b843eb65357c106124689 Mon Sep 17 00:00:00 2001 From: Benjamin Randolph Date: Fri, 12 Jul 2024 07:57:33 -0600 Subject: [PATCH] Lint. --- app/controllers/concerns/taxed_income.rb | 4 ++-- app/services/federal_tax_calculator.rb | 2 +- app/services/fica_tax_calculator.rb | 2 +- app/services/net_income_calculator.rb | 2 +- app/services/state_tax_calculator.rb | 3 +-- config/application.rb | 4 ++-- lib/modules/callable.rb | 2 +- 7 files changed, 9 insertions(+), 10 deletions(-) diff --git a/app/controllers/concerns/taxed_income.rb b/app/controllers/concerns/taxed_income.rb index f7e1982..8d3f184 100644 --- a/app/controllers/concerns/taxed_income.rb +++ b/app/controllers/concerns/taxed_income.rb @@ -31,8 +31,8 @@ def state_tax(income:) end def net_income(annual_income:) - income = annual_income - (fica_tax(income:annual_income) + federal_tax(income:annual_income) + state_tax(income:annual_income)) + income = annual_income - (fica_tax(income: annual_income) + federal_tax(income: annual_income) + state_tax(income: annual_income)) @net_income ||= NetIncomeCalculator.call(annual_income: income) end -end \ No newline at end of file +end diff --git a/app/services/federal_tax_calculator.rb b/app/services/federal_tax_calculator.rb index fc843c1..3e447e5 100644 --- a/app/services/federal_tax_calculator.rb +++ b/app/services/federal_tax_calculator.rb @@ -19,4 +19,4 @@ def calculate rated = bracket.rate * taxable_at_bracket_rate rated + bracket.cumulative end -end \ No newline at end of file +end diff --git a/app/services/fica_tax_calculator.rb b/app/services/fica_tax_calculator.rb index 25fd37b..abe190f 100644 --- a/app/services/fica_tax_calculator.rb +++ b/app/services/fica_tax_calculator.rb @@ -12,4 +12,4 @@ def call private attr_accessor :income -end \ No newline at end of file +end diff --git a/app/services/net_income_calculator.rb b/app/services/net_income_calculator.rb index 51eafee..36d45a8 100644 --- a/app/services/net_income_calculator.rb +++ b/app/services/net_income_calculator.rb @@ -20,4 +20,4 @@ def calculate_incomes self.quarterly_income = annual_income / 4 self.biannual_income = annual_income / 2 end -end \ No newline at end of file +end diff --git a/app/services/state_tax_calculator.rb b/app/services/state_tax_calculator.rb index 4a4a825..d50a3b6 100644 --- a/app/services/state_tax_calculator.rb +++ b/app/services/state_tax_calculator.rb @@ -13,5 +13,4 @@ def call private attr_accessor :income - -end \ No newline at end of file +end diff --git a/config/application.rb b/config/application.rb index 2028ce3..cf4b42d 100644 --- a/config/application.rb +++ b/config/application.rb @@ -24,8 +24,8 @@ class Application < Rails::Application config.load_defaults 7.0 # Load in all modules - config.autoload_paths << Rails.root.join('lib', 'modules') - config.eager_load_paths << Rails.root.join('lib', 'modules') + config.autoload_paths << Rails.root.join("lib", "modules") + config.eager_load_paths << Rails.root.join("lib", "modules") # Configuration for the application, engines, and railties goes here. # diff --git a/lib/modules/callable.rb b/lib/modules/callable.rb index 862c578..d1c0740 100644 --- a/lib/modules/callable.rb +++ b/lib/modules/callable.rb @@ -6,4 +6,4 @@ def call(**args) new(**args).call end end -end \ No newline at end of file +end