Skip to content

Commit

Permalink
Auto corrected by following Lint Ruby Style/MutableConstant
Browse files Browse the repository at this point in the history
  • Loading branch information
Awesome Code committed Jan 30, 2021
1 parent 22ecfa4 commit 7a954a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/synvert/core/rewriter/action.rb
Expand Up @@ -3,7 +3,7 @@
module Synvert::Core
# Action defines rewriter action, add, replace or remove code.
class Rewriter::Action
DEFAULT_OPTIONS = { autoindent: true }
DEFAULT_OPTIONS = { autoindent: true }.freeze
DEFAULT_INDENT = 2

# Initialize an action.
Expand Down
2 changes: 1 addition & 1 deletion lib/synvert/core/rewriter/gem_spec.rb
Expand Up @@ -3,7 +3,7 @@
module Synvert::Core
# GemSpec checks and compares gem version.
class Rewriter::GemSpec
OPERATORS = { eq: '==', lt: '<', gt: '>', lte: '<=', gte: '>=', ne: '!=' }
OPERATORS = { eq: '==', lt: '<', gt: '>', lte: '<=', gte: '>=', ne: '!=' }.freeze

# Initialize a gem_spec.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/synvert/core/rewriter/instance.rb
Expand Up @@ -64,7 +64,7 @@ def reset
# @return current filename
attr_accessor :current_node, :current_file

DEFAULT_OPTIONS = { sort_by: 'begin_pos' }
DEFAULT_OPTIONS = { sort_by: 'begin_pos' }.freeze

# Initialize an instance.
#
Expand Down

0 comments on commit 7a954a3

Please sign in to comment.