Class: RubyCritic::Configuration
- Inherits:
-
Object
- Object
- RubyCritic::Configuration
- Defined in:
- lib/rubycritic/configuration.rb
Instance Attribute Summary collapse
-
#base_branch ⇒ Object
Returns the value of attribute base_branch.
-
#base_branch_collection ⇒ Object
Returns the value of attribute base_branch_collection.
-
#base_branch_score ⇒ Object
Returns the value of attribute base_branch_score.
-
#base_root_directory ⇒ Object
Returns the value of attribute base_root_directory.
-
#compare_root_directory ⇒ Object
Returns the value of attribute compare_root_directory.
-
#deduplicate_symlinks ⇒ Object
Returns the value of attribute deduplicate_symlinks.
-
#feature_branch ⇒ Object
Returns the value of attribute feature_branch.
-
#feature_branch_collection ⇒ Object
Returns the value of attribute feature_branch_collection.
-
#feature_branch_score ⇒ Object
Returns the value of attribute feature_branch_score.
-
#feature_root_directory ⇒ Object
Returns the value of attribute feature_root_directory.
-
#formats ⇒ Object
Returns the value of attribute formats.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#no_browser ⇒ Object
Returns the value of attribute no_browser.
-
#open_with ⇒ Object
Returns the value of attribute open_with.
-
#root ⇒ Object
Returns the value of attribute root.
-
#source_control_system ⇒ Object
Returns the value of attribute source_control_system.
-
#suppress_ratings ⇒ Object
Returns the value of attribute suppress_ratings.
-
#threshold_score ⇒ Object
Returns the value of attribute threshold_score.
Instance Method Summary collapse
Instance Attribute Details
#base_branch ⇒ Object
Returns the value of attribute base_branch.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def base_branch @base_branch end |
#base_branch_collection ⇒ Object
Returns the value of attribute base_branch_collection.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def base_branch_collection @base_branch_collection end |
#base_branch_score ⇒ Object
Returns the value of attribute base_branch_score.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def base_branch_score @base_branch_score end |
#base_root_directory ⇒ Object
Returns the value of attribute base_root_directory.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def base_root_directory @base_root_directory end |
#compare_root_directory ⇒ Object
Returns the value of attribute compare_root_directory.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def compare_root_directory @compare_root_directory end |
#deduplicate_symlinks ⇒ Object
Returns the value of attribute deduplicate_symlinks.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def deduplicate_symlinks @deduplicate_symlinks end |
#feature_branch ⇒ Object
Returns the value of attribute feature_branch.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def feature_branch @feature_branch end |
#feature_branch_collection ⇒ Object
Returns the value of attribute feature_branch_collection.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def feature_branch_collection @feature_branch_collection end |
#feature_branch_score ⇒ Object
Returns the value of attribute feature_branch_score.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def feature_branch_score @feature_branch_score end |
#feature_root_directory ⇒ Object
Returns the value of attribute feature_root_directory.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def feature_root_directory @feature_root_directory end |
#formats ⇒ Object
Returns the value of attribute formats.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def formats @formats end |
#mode ⇒ Object
Returns the value of attribute mode.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def mode @mode end |
#no_browser ⇒ Object
Returns the value of attribute no_browser.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def no_browser @no_browser end |
#open_with ⇒ Object
Returns the value of attribute open_with.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def open_with @open_with end |
#root ⇒ Object
Returns the value of attribute root.
7 8 9 |
# File 'lib/rubycritic/configuration.rb', line 7 def root @root end |
#source_control_system ⇒ Object
Returns the value of attribute source_control_system.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def source_control_system @source_control_system end |
#suppress_ratings ⇒ Object
Returns the value of attribute suppress_ratings.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def @suppress_ratings end |
#threshold_score ⇒ Object
Returns the value of attribute threshold_score.
8 9 10 |
# File 'lib/rubycritic/configuration.rb', line 8 def threshold_score @threshold_score end |
Instance Method Details
#set(options) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/rubycritic/configuration.rb', line 15 def set() self.mode = [:mode] || :default self.root = [:root] || 'tmp/rubycritic' self.formats = [:formats] || [:html] self.deduplicate_symlinks = [:deduplicate_symlinks] self. = [:suppress_ratings] self.open_with = [:open_with] self.no_browser = [:no_browser] self.base_branch = [:base_branch] self.feature_branch = [:feature_branch] self.threshold_score = [:threshold_score].to_i end |
#source_control_present? ⇒ Boolean
32 33 34 35 |
# File 'lib/rubycritic/configuration.rb', line 32 def source_control_present? source_control_system && !source_control_system.is_a?(SourceControlSystem::Double) end |