Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
neb417 committed Jul 12, 2024
1 parent 83fb919 commit d8fcdbe
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/controllers/concerns/taxed_income.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
end
2 changes: 1 addition & 1 deletion app/services/federal_tax_calculator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ def calculate
rated = bracket.rate * taxable_at_bracket_rate
rated + bracket.cumulative
end
end
end
2 changes: 1 addition & 1 deletion app/services/fica_tax_calculator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ def call
private

attr_accessor :income
end
end
2 changes: 1 addition & 1 deletion app/services/net_income_calculator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ def calculate_incomes
self.quarterly_income = annual_income / 4
self.biannual_income = annual_income / 2
end
end
end
3 changes: 1 addition & 2 deletions app/services/state_tax_calculator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ def call
private

attr_accessor :income

end
end
4 changes: 2 additions & 2 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/callable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ def call(**args)
new(**args).call
end
end
end
end

0 comments on commit d8fcdbe

Please sign in to comment.