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 9, 2021
1 parent bb9f383 commit 239a5fd
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 @@ -4,7 +4,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 @@ -4,7 +4,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 @@ -65,7 +65,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 239a5fd

Please sign in to comment.