-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
REEK
129 lines (129 loc) · 10.8 KB
/
REEK
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
lib/csv_pirate.rb -- 0 warnings
lib/csv_pirate/pirate_ship.rb -- 17 warnings:
CsvPirate::PirateShip::ActMethods#has_csv_pirate_ship calls options[:blackjack] 3 times (DuplicateMethodCall)
CsvPirate::PirateShip::ActMethods#has_csv_pirate_ship calls options[:booty] 4 times (DuplicateMethodCall)
CsvPirate::PirateShip::ActMethods#has_csv_pirate_ship calls options[:chart] 4 times (DuplicateMethodCall)
CsvPirate::PirateShip::ActMethods#has_csv_pirate_ship calls options[:gibbet] 3 times (DuplicateMethodCall)
CsvPirate::PirateShip::ActMethods#has_csv_pirate_ship calls options[:grub] 3 times (DuplicateMethodCall)
CsvPirate::PirateShip::ActMethods#has_csv_pirate_ship calls options[:grub].nil? twice (DuplicateMethodCall)
CsvPirate::PirateShip::ActMethods#has_csv_pirate_ship calls options[:mop] twice (DuplicateMethodCall)
CsvPirate::PirateShip::ActMethods#has_csv_pirate_ship calls options[:shrouds] 3 times (DuplicateMethodCall)
CsvPirate::PirateShip::ActMethods#has_csv_pirate_ship calls options[:swab] 3 times (DuplicateMethodCall)
CsvPirate::PirateShip::ActMethods#has_csv_pirate_ship calls options[:swag] 3 times (DuplicateMethodCall)
CsvPirate::PirateShip::ActMethods#has_csv_pirate_ship calls options[:swag].nil? 3 times (DuplicateMethodCall)
CsvPirate::PirateShip::ActMethods#has_csv_pirate_ship calls options[:waggoner] 3 times (DuplicateMethodCall)
CsvPirate::PirateShip::ActMethods#has_csv_pirate_ship has approx 31 statements (TooManyStatements)
CsvPirate::PirateShip::ActMethods#has_csv_pirate_ship refers to options more than self (FeatureEnvy)
CsvPirate::PirateShip::ClassMethods#get_chronometer calls self.piratey_options twice (DuplicateMethodCall)
CsvPirate::PirateShip::ClassMethods#get_chronometer calls self.piratey_options[:chronometer] twice (DuplicateMethodCall)
CsvPirate::PirateShip::ClassMethods#piratey_args calls self.piratey_options 14 times (DuplicateMethodCall)
lib/csv_pirate/railtie.rb -- 1 warning:
CsvPirate::Railtie has no descriptive comment (IrresponsibleModule)
lib/csv_pirate/the_capn.rb -- 106 warnings:
CsvPirate::TheCapn has at least 21 instance variables (TooManyInstanceVariables)
CsvPirate::TheCapn has at least 36 methods (TooManyMethods)
CsvPirate::TheCapn has no descriptive comment (IrresponsibleModule)
CsvPirate::TheCapn tests (TheCapn.parlay and TheCapn.parlance(1)) at least 4 times (RepeatedConditional)
CsvPirate::TheCapn tests TheCapn.parlance(1) at least 3 times (RepeatedConditional)
CsvPirate::TheCapn tests TheCapn.parlance(2) at least 8 times (RepeatedConditional)
CsvPirate::TheCapn tests obj.nil? at least 6 times (RepeatedConditional)
CsvPirate::TheCapn#binnacle calls compass.to_s twice (DuplicateMethodCall)
CsvPirate::TheCapn#binnacle has approx 7 statements (TooManyStatements)
CsvPirate::TheCapn#binnacle has boolean parameter 'humanize' (BooleanParameter)
CsvPirate::TheCapn#binnacle is controlled by argument humanize (ControlParameter)
CsvPirate::TheCapn#binnacle refers to compass more than self (FeatureEnvy)
CsvPirate::TheCapn#block_and_tackle has the variable name 'k' (UncommunicativeVariableName)
CsvPirate::TheCapn#block_and_tackle has the variable name 'v' (UncommunicativeVariableName)
CsvPirate::TheCapn#boatswain calls self.swabbie twice (DuplicateMethodCall)
CsvPirate::TheCapn#boatswain has approx 7 statements (TooManyStatements)
CsvPirate::TheCapn#coxswain calls self.swabbie twice (DuplicateMethodCall)
CsvPirate::TheCapn#data_hash_from_row calls my_booty.reject twice (DuplicateMethodCall)
CsvPirate::TheCapn#data_hash_from_row calls self.booty 4 times (DuplicateMethodCall)
CsvPirate::TheCapn#data_hash_from_row calls x.to_sym twice (DuplicateMethodCall)
CsvPirate::TheCapn#data_hash_from_row has approx 15 statements (TooManyStatements)
CsvPirate::TheCapn#data_hash_from_row has boolean parameter 'exclude_id' (BooleanParameter)
CsvPirate::TheCapn#data_hash_from_row has boolean parameter 'exclude_timestamps' (BooleanParameter)
CsvPirate::TheCapn#data_hash_from_row has the variable name 'a' (UncommunicativeVariableName)
CsvPirate::TheCapn#data_hash_from_row has the variable name 'x' (UncommunicativeVariableName)
CsvPirate::TheCapn#data_hash_from_row is controlled by argument exclude_id (ControlParameter)
CsvPirate::TheCapn#data_hash_from_row is controlled by argument exclude_timestamps (ControlParameter)
CsvPirate::TheCapn#dead_mans_chest calls self.maroon twice (DuplicateMethodCall)
CsvPirate::TheCapn#dig_for_treasure calls grub twice (DuplicateMethodCall)
CsvPirate::TheCapn#dig_for_treasure calls self.swag twice (DuplicateMethodCall)
CsvPirate::TheCapn#dig_for_treasure has the variable name 'x' (UncommunicativeVariableName)
CsvPirate::TheCapn#filibuster has approx 6 statements (TooManyStatements)
CsvPirate::TheCapn#filibuster refers to base more than self (FeatureEnvy)
CsvPirate::TheCapn#find_aye doesn't depend on instance state (UtilityFunction)
CsvPirate::TheCapn#find_aye refers to columns more than self (FeatureEnvy)
CsvPirate::TheCapn#find_aye_arr doesn't depend on instance state (UtilityFunction)
CsvPirate::TheCapn#find_aye_arr refers to col more than self (FeatureEnvy)
CsvPirate::TheCapn#find_aye_arr refers to columns more than self (FeatureEnvy)
CsvPirate::TheCapn#find_aye_arr refers to data_hash more than self (FeatureEnvy)
CsvPirate::TheCapn#flies has the variable name 'x' (UncommunicativeVariableName)
CsvPirate::TheCapn#initialize calls args.first 17 times (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls args.first[:chronometer] twice (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls self.astrolabe twice (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls self.blackjack twice (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls self.booty 4 times (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls self.brigantine twice (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls self.chart 4 times (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls self.gibbet 3 times (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls self.grub 4 times (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls self.grub.nil? twice (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls self.mop twice (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls self.shrouds 3 times (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls self.swab 3 times (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls self.swag 3 times (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls self.swag.nil? twice (DuplicateMethodCall)
CsvPirate::TheCapn#initialize calls self.waggoner 3 times (DuplicateMethodCall)
CsvPirate::TheCapn#jolly_roger calls TheCapn.parlance(1) 3 times (DuplicateMethodCall)
CsvPirate::TheCapn#jolly_roger calls TheCapn.parlay 3 times (DuplicateMethodCall)
CsvPirate::TheCapn#jolly_roger calls self.buried_treasure twice (DuplicateMethodCall)
CsvPirate::TheCapn#northwest_passage calls self.chart twice (DuplicateMethodCall)
CsvPirate::TheCapn#northwest_passage has the variable name 'i' (UncommunicativeVariableName)
CsvPirate::TheCapn#poop_deck calls self.analemma twice (DuplicateMethodCall)
CsvPirate::TheCapn#prize refers to plunder more than self (FeatureEnvy)
CsvPirate::TheCapn#run_through has the variable name 'k' (UncommunicativeVariableName)
CsvPirate::TheCapn#run_through has the variable name 'v' (UncommunicativeVariableName)
CsvPirate::TheCapn#sand_glass calls self.chronometer twice (DuplicateMethodCall)
CsvPirate::TheCapn#save_object has the variable name 'k' (UncommunicativeVariableName)
CsvPirate::TheCapn#save_object has the variable name 'v' (UncommunicativeVariableName)
CsvPirate::TheCapn#save_object refers to obj more than self (FeatureEnvy)
CsvPirate::TheCapn#self.create calls args.first 15 times (DuplicateMethodCall)
CsvPirate::TheCapn#self.marlinespike has approx 7 statements (TooManyStatements)
CsvPirate::TheCapn#self.mutiny calls TheCapn.parlance(1) twice (DuplicateMethodCall)
CsvPirate::TheCapn#self.mutiny calls TheCapn.parlance(2) 6 times (DuplicateMethodCall)
CsvPirate::TheCapn#self.mutiny calls carrack.grub 4 times (DuplicateMethodCall)
CsvPirate::TheCapn#self.mutiny calls carrack.spyglasses 7 times (DuplicateMethodCall)
CsvPirate::TheCapn#self.mutiny calls carrack.swag twice (DuplicateMethodCall)
CsvPirate::TheCapn#self.mutiny calls cutthroat.grub 8 times (DuplicateMethodCall)
CsvPirate::TheCapn#self.mutiny calls cutthroat.grub.class twice (DuplicateMethodCall)
CsvPirate::TheCapn#self.mutiny calls gully.send(carrack.spyglasses) twice (DuplicateMethodCall)
CsvPirate::TheCapn#self.mutiny contains iterators nested 2 deep (NestedIterators)
CsvPirate::TheCapn#self.mutiny has approx 26 statements (TooManyStatements)
CsvPirate::TheCapn#self.parlance calls self.parlay twice (DuplicateMethodCall)
CsvPirate::TheCapn#self.rinse contains iterators nested 2 deep (NestedIterators)
CsvPirate::TheCapn#send_aye calls self.find_aye_arr(data_hash, columns) twice (DuplicateMethodCall)
CsvPirate::TheCapn#send_aye calls self.grub twice (DuplicateMethodCall)
CsvPirate::TheCapn#sounding contains iterators nested 2 deep (NestedIterators)
CsvPirate::TheCapn#sounding has the variable name 'x' (UncommunicativeVariableName)
CsvPirate::TheCapn#to_memory calls (buccaneers << obj) 5 times (DuplicateMethodCall)
CsvPirate::TheCapn#to_memory calls (buccaneers << self.grub.new(data_hash)) twice (DuplicateMethodCall)
CsvPirate::TheCapn#to_memory calls obj.nil? 6 times (DuplicateMethodCall)
CsvPirate::TheCapn#to_memory calls obj.save(false) 3 times (DuplicateMethodCall)
CsvPirate::TheCapn#to_memory calls permanence[:find_or_create] twice (DuplicateMethodCall)
CsvPirate::TheCapn#to_memory calls permanence[:find_or_new] twice (DuplicateMethodCall)
CsvPirate::TheCapn#to_memory calls permanence[:find_or_save] twice (DuplicateMethodCall)
CsvPirate::TheCapn#to_memory calls permanence[:update_or_create] twice (DuplicateMethodCall)
CsvPirate::TheCapn#to_memory calls permanence[:update_or_new] twice (DuplicateMethodCall)
CsvPirate::TheCapn#to_memory calls permanence[:update_or_save] twice (DuplicateMethodCall)
CsvPirate::TheCapn#to_memory calls self.grub 10 times (DuplicateMethodCall)
CsvPirate::TheCapn#to_memory calls self.grub.create(data_hash) 3 times (DuplicateMethodCall)
CsvPirate::TheCapn#to_memory calls self.save_object(obj, data_hash) 3 times (DuplicateMethodCall)
CsvPirate::TheCapn#to_memory has approx 30 statements (TooManyStatements)
CsvPirate::TheCapn#to_memory has boolean parameter 'exclude_id' (BooleanParameter)
CsvPirate::TheCapn#to_memory has boolean parameter 'exclude_timestamps' (BooleanParameter)
CsvPirate::TheCapn#unfurl calls self.gibbet twice (DuplicateMethodCall)
CsvPirate::TheCapn#unfurl calls self.waggoner twice (DuplicateMethodCall)
CsvPirate::TheCapn#unfurl has approx 7 statements (TooManyStatements)
lib/csv_pirate/version.rb -- 0 warnings