crm_formatter 1.0.7.pre.rc.1 → 2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -2
- data/.rspec_status +7 -0
- data/.rubocop.yml +10 -0
- data/.rubocop_todo.yml +188 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +21 -0
- data/README.md +202 -145
- data/Rakefile +75 -5
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/crm_formatter.gemspec +59 -13
- data/lib/crm_formatter.rb +46 -3
- data/lib/crm_formatter/address.rb +143 -122
- data/lib/crm_formatter/{extensions.csv → csv/extensions.csv} +0 -0
- data/lib/crm_formatter/csv/seed.csv +2 -0
- data/lib/crm_formatter/phone.rb +28 -20
- data/lib/crm_formatter/version.rb +4 -2
- data/lib/crm_formatter/web.rb +115 -248
- data/lib/crm_formatter/wrap.rb +54 -0
- data/menu.rb +3 -1
- data/non_utf8_examples.txt +40 -0
- data/result.txt +964 -0
- data/rubocop.json +1 -0
- metadata +211 -16
- data/bin/crm_formatter +0 -4
- data/gem_notes_crm_formatter.txt +0 -138
- data/lib/crm_formatter/helpers.rb +0 -23
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: false
|
2
|
+
|
3
|
+
require 'csv'
|
4
|
+
|
5
|
+
module CrmFormatter
|
6
|
+
class Wrap
|
7
|
+
attr_accessor :crm_data, :global_hash
|
8
|
+
|
9
|
+
def initialize
|
10
|
+
@crm_data = {}
|
11
|
+
@global_hash = grab_global_hash
|
12
|
+
end
|
13
|
+
|
14
|
+
def grab_global_hash
|
15
|
+
keys = %i[row_id act_name street city state zip full_addr phone url street_f city_f state_f zip_f full_addr_f phone_f url_f url_path web_neg address_status phone_status web_status utf_status]
|
16
|
+
@global_hash = Hash[keys.map { |a| [a, nil] }]
|
17
|
+
end
|
18
|
+
|
19
|
+
def run(args={})
|
20
|
+
import_crm_data(args)
|
21
|
+
format_data
|
22
|
+
puts @crm_data.inspect
|
23
|
+
@crm_data
|
24
|
+
end
|
25
|
+
|
26
|
+
def import_crm_data(args={})
|
27
|
+
@crm_data = { stats: nil, data: nil, file_path: nil }
|
28
|
+
@crm_data.merge!(args)
|
29
|
+
utf_result = Utf8Sanitizer.sanitize(@crm_data)
|
30
|
+
@crm_data.merge!(utf_result)
|
31
|
+
end
|
32
|
+
|
33
|
+
def format_data
|
34
|
+
return unless @crm_data[:data][:valid_data].any?
|
35
|
+
adr_obj = CrmFormatter::Address.new
|
36
|
+
phone_obj = CrmFormatter::Phone.new
|
37
|
+
web_obj = CrmFormatter::Web.new
|
38
|
+
|
39
|
+
@crm_data[:data][:valid_data].map! do |valid_hash|
|
40
|
+
local_hash = @global_hash
|
41
|
+
crmf_url_hsh = web_obj.format_url(valid_hash[:url])
|
42
|
+
crmf_phone_hsh = phone_obj.validate_phone(valid_hash[:phone])
|
43
|
+
|
44
|
+
adr_hsh = valid_hash.slice(:street, :city, :state, :zip)
|
45
|
+
crmf_adr_hsh = adr_obj.format_full_address(adr_hsh)
|
46
|
+
local_hash = local_hash.merge(valid_hash)
|
47
|
+
local_hash = local_hash.merge(crmf_url_hsh)
|
48
|
+
local_hash = local_hash.merge(crmf_phone_hsh)
|
49
|
+
local_hash = local_hash.merge(crmf_adr_hsh)
|
50
|
+
local_hash
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
data/menu.rb
CHANGED
@@ -0,0 +1,40 @@
|
|
1
|
+
["2,heritagemazdatowson.com,Heritage Mazda Towson,1630 York Rd_\xED\xBF\x8Cˌ_\xED\xEE\xE4\xF3\xC1\xED_\x8C\xE7_\xED\xBF\x8Cˌ___\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ__,Lutherville,MD,21093,(877) 361-1038\r\n",
|
2
|
+
"2,heritagemazdatowson.com,Heritage Mazda Towson,1630 York Rd,Lutherville,MD,21093,(877) 361-1038",
|
3
|
+
"4,greatwesternautosales.com,Great Western Auto Sales,2705 Fremont Dr,Ca_\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_____\xED\xBF\x8Cˌ__\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_on City,CO,81212,(719) 345-4144\r\n",
|
4
|
+
"4,greatwesternautosales.com,Great Western Auto Sales,2705 Fremont Dr,Caon City,CO,81212,(719) 345-4144",
|
5
|
+
"11,arrowbuickgmc.com,Larry Reid's Arrow_\xED\xBF\x8Cˌ_\xED\xEE\xE4\xF3\xC1\xED_\x8C\xE7_\xED\xBF\x8Cˌ____\xED\xBF\x8Cˌ___ Buick GMC Truck,1111 MN-110,Inver Grove Heights,MN,55077,(651) 552-2222\r\n",
|
6
|
+
"11,arrowbuickgmc.com,Larry Reid's Arrow Buick GMC Truck,1111 MN-110,Inver Grove Heights,MN,55077,(651) 552-2222",
|
7
|
+
"17,onealsautomart.com,Oneals Automart Carfax_\xED\xBF\x8Cˌ_\xED\xEE\xE4\xF3\xC1\xED_\x8C\xE7_\xED\xBF\x8Cˌ____\xED\xBF\x8Cˌ___ Advantage Dealer___\xED\xBF\x8Cˌ_____\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ__\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ___\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ___,1666 Old Spanish Trail,Slidell,LA,70458,(985) 641-1246\r\n",
|
8
|
+
"17,onealsautomart.com,Oneals Automart Carfax Advantage Dealer,1666 Old Spanish Trail,Slidell,LA,70458,(985) 641-1246",
|
9
|
+
"19,signatureautoworld.com,Signature Auto Group___\xED\xBF\x8Cˌ_____\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ___,9265 4th Ave,Brooklyn,NY,11209,(718) 616-2277\r\n",
|
10
|
+
"19,signatureautoworld.com,Signature Auto Group,9265 4th Ave,Brooklyn,NY,11209,(718) 616-2277",
|
11
|
+
"21,cityautoplazachryslerdodgejeep.com,City Auto Plaza - CDJR,3151 US-50,Ca_\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_____\xED\xBF\x8Cˌ__\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_on City,CO,81212,(866) 493-5421\r\n",
|
12
|
+
"21,cityautoplazachryslerdodgejeep.com,City Auto Plaza - CDJR,3151 US-50,Caon City,CO,81212,(866) 493-5421",
|
13
|
+
"24,bridgewateracura.com,Bill Vince___\xED\xBF\x8Cˌ_____\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ____\xED\xBF\x8Cˌ___\xED\xBF\x8Cˌ_s Bridgewater Acura,1231 US-22,Bridgewater,NJ,8807,(908) 704-0300\r\n",
|
14
|
+
"24,bridgewateracura.com,Bill Vinces Bridgewater Acura,1231 US-22,Bridgewater,NJ,8807,(908) 704-0300",
|
15
|
+
"28,modernsubaru.com,Modern Subaru of Boone,185 Modern Dr_\xED\xBF\x8Cˌ_\xED\xEE\xE4\xF3\xC1\xED_\x8C\xE7_\xED\xBF\x8Cˌ___\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ__,Boone,NC,28607,(888) 693-1304\r\n",
|
16
|
+
"28,modernsubaru.com,Modern Subaru of Boone,185 Modern Dr,Boone,NC,28607,(888) 693-1304",
|
17
|
+
"31,powerfordnm.com,Power Ford,1101 Monta_\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_____\xED\xBF\x8Cˌ__\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_o Rd NE,Albuquerque,NM,87107,(866) 640-5531\r\n",
|
18
|
+
"31,powerfordnm.com,Power Ford,1101 Montao Rd NE,Albuquerque,NM,87107,(866) 640-5531",
|
19
|
+
"32,spiritchryslerjeepdodge.com,Spirit Chrysler Dodge Jeep_\xED\xBF\x8Cˌ_\xED\xEE\xE4\xF3\xC1\xED_\x8C\xE7_\xED\xBF\x8Cˌ____\xED\xBF\x8Cˌ___,4611 Avenue Q,Lubbock,TX,79412,(888) 407-1471\r\n",
|
20
|
+
"32,spiritchryslerjeepdodge.com,Spirit Chrysler Dodge Jeep,4611 Avenue Q,Lubbock,TX,79412,(888) 407-1471",
|
21
|
+
"34,demontronddcj.com,DeMontrond_\xED\xBF\x8Cˌ_\xED\xEE\xE4\xF3\xC1\xED_\x8C\xE7_\xED\xBF\x8Cˌ____\xED\xBF\x8Cˌ___ Chrysler Dodge Jeep RAM in Conroe,888 IH 45 South,Conroe,TX,77304,(888) 865-1894\r\n",
|
22
|
+
"34,demontronddcj.com,DeMontrond Chrysler Dodge Jeep RAM in Conroe,888 IH 45 South,Conroe,TX,77304,(888) 865-1894",
|
23
|
+
"42,subaruofpembrokepines.com,Subaru of Pembroke Pines,16100 Pines Blvd_\xED\xBF\x8Cˌ_\xED\xEE\xE4\xF3\xC1\xED_\x8C\xE7_\xED\xBF\x8Cˌ___\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ__,Pembroke Pines,FL,33027,(888) 821-9697\r\n",
|
24
|
+
"42,subaruofpembrokepines.com,Subaru of Pembroke Pines,16100 Pines Blvd,Pembroke Pines,FL,33027,(888) 821-9697",
|
25
|
+
"48,schneidersauto.net,Schneider___\xED\xBF\x8Cˌ_____\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ____\xED\xBF\x8Cˌ___\xED\xBF\x8Cˌ_s Saturn and Chevrolet Repair,607 E Los Angeles Ave,Simi Valley,CA,93065,(805) 581-2349\r\n",
|
26
|
+
"48,schneidersauto.net,Schneiders Saturn and Chevrolet Repair,607 E Los Angeles Ave,Simi Valley,CA,93065,(805) 581-2349",
|
27
|
+
"65,montanoacura.com,Monta_\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_____\xED\xBF\x8Cˌ__\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_o Acura,1200 S Renaissance Blvd NE,Albuquerque,NM,87107,(505) 345-8741\r\n",
|
28
|
+
"65,montanoacura.com,Montao Acura,1200 S Renaissance Blvd NE,Albuquerque,NM,87107,(505) 345-8741",
|
29
|
+
"67,victoryplymouth.com,Victory Honda of Plymouth,315 Ann Arbor Rd W_\xED\xBF\x8Cˌ_\xED\xEE\xE4\xF3\xC1\xED_\x8C\xE7_\xED\xBF\x8Cˌ___\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ__,Plymouth,MI,48170,(888) 313-3801\r\n",
|
30
|
+
"67,victoryplymouth.com,Victory Honda of Plymouth,315 Ann Arbor Rd W,Plymouth,MI,48170,(888) 313-3801",
|
31
|
+
"73,bobrichardscdjr.com,Bob Richards_\xED\xBF\x8Cˌ_\xED\xEE\xE4\xF3\xC1\xED_\x8C\xE7_\xED\xBF\x8Cˌ____\xED\xBF\x8Cˌ___ Chrysler Dodge Jeep,1666 Jefferson Davis Hwy,Graniteville,SC,29829,(877) 798-9128\r\n",
|
32
|
+
"73,bobrichardscdjr.com,Bob Richards Chrysler Dodge Jeep,1666 Jefferson Davis Hwy,Graniteville,SC,29829,(877) 798-9128",
|
33
|
+
"80,lindnerauto.com,Lindner Chevrolet,2805 Fremont Dr,Ca_\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_____\xED\xBF\x8Cˌ__\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_on City,CO,81212,(866) 847-4022\r\n",
|
34
|
+
"80,lindnerauto.com,Lindner Chevrolet,2805 Fremont Dr,Caon City,CO,81212,(866) 847-4022",
|
35
|
+
"84,henryvalencia.net,\"Henry Valencia, Inc.\",613 N Paseo De Onate,Espa_\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_____\xED\xBF\x8Cˌ__\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ_ola,NM,87532,(866) 512-6302\r\n",
|
36
|
+
"84,henryvalencia.net,\"Henry Valencia, Inc.\",613 N Paseo De Onate,Espaola,NM,87532,(866) 512-6302",
|
37
|
+
"92,victorynissanwest.com,Victory Nissan of Dickson,2219 Hwy 46 South_\xED\xBF\x8Cˌ_\xED\xEE\xE4\xF3\xC1\xED_\x8C\xE7_\xED\xBF\x8Cˌ___\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ__,Dickson,TN,37055,(888) 476-7046\r\n",
|
38
|
+
"92,victorynissanwest.com,Victory Nissan of Dickson,2219 Hwy 46 South,Dickson,TN,37055,(888) 476-7046",
|
39
|
+
"98,jimsautosalesla.com,\"Jim___\xED\xBF\x8Cˌ_____\xED\xBF\x8Cˌ_\xED\xBF\x8Cˌ____\xED\xBF\x8Cˌ___\xED\xBF\x8Cˌ_s Auto Sales, INC.\",2002 Pacific Coast Hwy,Lomita,CA,90717,(310) 784-0600\r\n",
|
40
|
+
"98,jimsautosalesla.com,\"Jims Auto Sales, INC.\",2002 Pacific Coast Hwy,Lomita,CA,90717,(310) 784-0600"]
|
data/result.txt
ADDED
@@ -0,0 +1,964 @@
|
|
1
|
+
Inspecting 17 files
|
2
|
+
CCCCCEWEEECEWWCEC
|
3
|
+
|
4
|
+
Offenses:
|
5
|
+
|
6
|
+
crm_formatter.gemspec:2:24: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
7
|
+
lib = File.expand_path("../lib", __FILE__)
|
8
|
+
^^^^^^^^
|
9
|
+
crm_formatter.gemspec:5:9: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
10
|
+
require "crm_formatter/version"
|
11
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
12
|
+
crm_formatter.gemspec:8:24: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
13
|
+
spec.name = "crm_formatter"
|
14
|
+
^^^^^^^^^^^^^^^
|
15
|
+
crm_formatter.gemspec:10:25: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
16
|
+
spec.authors = ["Adam Booth"]
|
17
|
+
^^^^^^^^^^^^
|
18
|
+
crm_formatter.gemspec:11:25: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
19
|
+
spec.email = ["4rlm@protonmail.ch"]
|
20
|
+
^^^^^^^^^^^^^^^^^^^^
|
21
|
+
crm_formatter.gemspec:12:24: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
22
|
+
spec.homepage = "https://github.com/4rlm/crm_formatter"
|
23
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
24
|
+
crm_formatter.gemspec:13:24: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
25
|
+
spec.license = "MIT"
|
26
|
+
^^^^^
|
27
|
+
crm_formatter.gemspec:15:24: C: %q-literals should be delimited by ( and ).
|
28
|
+
spec.summary = %q{Reformat, Normalize, and Scrub CRM Contact Data, Addresses, Phones and URLs}
|
29
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
30
|
+
crm_formatter.gemspec:15:24: C: Use %q only for strings that contain both single quotes and double quotes.
|
31
|
+
spec.summary = %q{Reformat, Normalize, and Scrub CRM Contact Data, Addresses, Phones and URLs}
|
32
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
33
|
+
crm_formatter.gemspec:15:81: C: Line is too long. [102/80]
|
34
|
+
spec.summary = %q{Reformat, Normalize, and Scrub CRM Contact Data, Addresses, Phones and URLs}
|
35
|
+
^^^^^^^^^^^^^^^^^^^^^^
|
36
|
+
crm_formatter.gemspec:16:24: C: %q-literals should be delimited by ( and ).
|
37
|
+
spec.description = %q{Reformat, Normalize, and Scrub CRM Contact Data, Addresses, Phones and URLs. Originally developed for proprietary use in an enterprise software suite. Recently decided to make them open source in a gem. It's a work in progress as there are additional features being added in near future. Also creating additonal gems with similar CRM office efficiency objectives. Please contact me if you have any questions or comments.}
|
38
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
39
|
+
crm_formatter.gemspec:16:24: C: Use %q only for strings that contain both single quotes and double quotes.
|
40
|
+
spec.description = %q{Reformat, Normalize, and Scrub CRM Contact Data, Addresses, Phones and URLs. Originally developed for proprietary use in an enterprise software suite. Recently decided to make them open source in a gem. It's a work in progress as there are additional features being added in near future. Also creating additonal gems with similar CRM office efficiency objectives. Please contact me if you have any questions or comments.}
|
41
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
42
|
+
crm_formatter.gemspec:16:81: C: Line is too long. [451/80]
|
43
|
+
spec.description = %q{Reformat, Normalize, and Scrub CRM Contact Data, Addresses, Phones and URLs. Originally developed for proprietary use in an enterprise software suite. Recently decided to make them open source in a gem. It's a work in progress as there are additional features being added in near future. Also creating additonal gems with similar CRM office efficiency objectives. Please contact me if you have any questions or comments.}
|
44
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
45
|
+
crm_formatter.gemspec:19:19: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
46
|
+
spec.metadata["allowed_push_host"] = "rubygems.org"
|
47
|
+
^^^^^^^^^^^^^^^^^^^
|
48
|
+
crm_formatter.gemspec:19:42: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
49
|
+
spec.metadata["allowed_push_host"] = "rubygems.org"
|
50
|
+
^^^^^^^^^^^^^^
|
51
|
+
crm_formatter.gemspec:21:11: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
52
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
53
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
54
|
+
crm_formatter.gemspec:22:7: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
55
|
+
"public gem pushes."
|
56
|
+
^^^^^^^^^^^^^^^^^^^^
|
57
|
+
crm_formatter.gemspec:25:13: C: Unnecessary spacing detected.
|
58
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
59
|
+
^^^^^^^^
|
60
|
+
crm_formatter.gemspec:25:22: C: Operator = should be surrounded by a single space.
|
61
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
62
|
+
^
|
63
|
+
crm_formatter.gemspec:29:24: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
64
|
+
spec.bindir = "exe"
|
65
|
+
^^^^^
|
66
|
+
crm_formatter.gemspec:31:25: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
67
|
+
spec.require_paths = ["lib"]
|
68
|
+
^^^^^
|
69
|
+
crm_formatter.gemspec:35:23: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
70
|
+
spec.add_dependency "activesupport", "~> 5.2.0"
|
71
|
+
^^^^^^^^^^^^^^^
|
72
|
+
crm_formatter.gemspec:35:40: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
73
|
+
spec.add_dependency "activesupport", "~> 5.2.0"
|
74
|
+
^^^^^^^^^^
|
75
|
+
crm_formatter.gemspec:56:35: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
76
|
+
spec.add_development_dependency "rubocop", '~> 0.42.0'
|
77
|
+
^^^^^^^^^
|
78
|
+
crm_formatter.gemspec:57:35: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
79
|
+
spec.add_development_dependency "byebug", '~> 10.0', '>= 10.0.2'
|
80
|
+
^^^^^^^^
|
81
|
+
crm_formatter.gemspec:58:35: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
82
|
+
spec.add_development_dependency "bundler", ">= 1.14.0"
|
83
|
+
^^^^^^^^^
|
84
|
+
crm_formatter.gemspec:58:46: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
85
|
+
spec.add_development_dependency "bundler", ">= 1.14.0"
|
86
|
+
^^^^^^^^^^^
|
87
|
+
crm_formatter.gemspec:59:35: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
88
|
+
spec.add_development_dependency "rake", '>= 11.5.1'
|
89
|
+
^^^^^^
|
90
|
+
crm_formatter.gemspec:60:35: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
91
|
+
spec.add_development_dependency "rspec", ">= 3.0.0"
|
92
|
+
^^^^^^^
|
93
|
+
crm_formatter.gemspec:60:44: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
94
|
+
spec.add_development_dependency "rspec", ">= 3.0.0"
|
95
|
+
^^^^^^^^^^
|
96
|
+
crm_formatter.gemspec:61:35: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
97
|
+
spec.add_development_dependency "irbtools"
|
98
|
+
^^^^^^^^^^
|
99
|
+
crm_formatter.gemspec:67:1: C: Extra blank line detected.
|
100
|
+
crm_formatter.gemspec:76:1: C: Extra empty line detected at block body end.
|
101
|
+
Gemfile:1:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
102
|
+
source "https://rubygems.org"
|
103
|
+
^^^^^^^^^^^^^^^^^^^^^^
|
104
|
+
Gemfile:3:21: C: Space between { and | missing.
|
105
|
+
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
106
|
+
^^
|
107
|
+
menu.rb:1:18: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
108
|
+
require_relative "lib/crm_formatter/address.rb"
|
109
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
110
|
+
menu.rb:5:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
111
|
+
system "clear"
|
112
|
+
^^^^^^^
|
113
|
+
menu.rb:6:6: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
114
|
+
puts "Welcome!"
|
115
|
+
^^^^^^^^^^
|
116
|
+
Rakefile:1:9: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
117
|
+
require "bundler/gem_tasks"
|
118
|
+
^^^^^^^^^^^^^^^^^^^
|
119
|
+
Rakefile:2:9: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
120
|
+
require "rspec/core/rake_task"
|
121
|
+
^^^^^^^^^^^^^^^^^^^^^^
|
122
|
+
Rakefile:8:1: C: Extra blank line detected.
|
123
|
+
Rakefile:10:6: C: Use the new Ruby 1.9 hash syntax.
|
124
|
+
task :default => :spec
|
125
|
+
^^^^^^^^^^^
|
126
|
+
Rakefile:11:6: C: Use the new Ruby 1.9 hash syntax.
|
127
|
+
task :test => :spec
|
128
|
+
^^^^^^^^
|
129
|
+
Rakefile:13:1: C: Extra blank line detected.
|
130
|
+
Rakefile:18:11: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
131
|
+
require "active_support/all"
|
132
|
+
^^^^^^^^^^^^^^^^^^^^
|
133
|
+
Rakefile:24:1: C: Extra blank line detected.
|
134
|
+
Rakefile:25:1: C: Extra blank line detected.
|
135
|
+
Rakefile:26:1: C: Extra blank line detected.
|
136
|
+
Rakefile:27:1: C: Extra blank line detected.
|
137
|
+
Rakefile:28:1: C: Extra blank line detected.
|
138
|
+
Rakefile:29:1: C: Extra blank line detected.
|
139
|
+
Rakefile:30:1: C: Extra blank line detected.
|
140
|
+
Rakefile:31:1: C: Extra blank line detected.
|
141
|
+
Rakefile:32:1: C: Extra blank line detected.
|
142
|
+
Rakefile:33:1: C: Extra blank line detected.
|
143
|
+
Rakefile:34:1: C: Extra blank line detected.
|
144
|
+
Rakefile:38:1: C: Extra blank line detected.
|
145
|
+
Rakefile:53:1: C: Incorrect indentation detected (column 0 instead of 2).
|
146
|
+
#############################
|
147
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
148
|
+
Rakefile:58:3: C: Incorrect indentation detected (column 2 instead of 0).
|
149
|
+
# alias cd-lib="cd ~/Desktop/gemdev/crm_formatter/lib"
|
150
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
151
|
+
bin/console:3:9: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
152
|
+
require "bundler/setup"
|
153
|
+
^^^^^^^^^^^^^^^
|
154
|
+
bin/console:4:9: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
155
|
+
require "crm_formatter"
|
156
|
+
^^^^^^^^^^^^^^^
|
157
|
+
bin/console:13:9: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
158
|
+
require "irb"
|
159
|
+
^^^^^
|
160
|
+
lib/crm_formatter/address.rb:36:22: E: unexpected token error
|
161
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
162
|
+
street = street&.gsub(/\s/, ' ')&.strip
|
163
|
+
^^
|
164
|
+
lib/crm_formatter/address.rb:36:39: E: unexpected token error
|
165
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
166
|
+
street = street&.gsub(/\s/, ' ')&.strip
|
167
|
+
^^
|
168
|
+
lib/crm_formatter/address.rb:43:17: E: unexpected token error
|
169
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
170
|
+
street&.gsub!(".", " ")
|
171
|
+
^^
|
172
|
+
lib/crm_formatter/address.rb:44:17: E: unexpected token error
|
173
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
174
|
+
street&.gsub!(",", " ")
|
175
|
+
^^
|
176
|
+
lib/crm_formatter/address.rb:46:17: E: unexpected token error
|
177
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
178
|
+
street&.gsub!(" North ", " N ")
|
179
|
+
^^
|
180
|
+
lib/crm_formatter/address.rb:47:17: E: unexpected token error
|
181
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
182
|
+
street&.gsub!(" South ", " S ")
|
183
|
+
^^
|
184
|
+
lib/crm_formatter/address.rb:48:17: E: unexpected token error
|
185
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
186
|
+
street&.gsub!(" East ", " E ")
|
187
|
+
^^
|
188
|
+
lib/crm_formatter/address.rb:49:17: E: unexpected token error
|
189
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
190
|
+
street&.gsub!(" West ", " W ")
|
191
|
+
^^
|
192
|
+
lib/crm_formatter/address.rb:50:17: E: unexpected token error
|
193
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
194
|
+
street&.gsub!(" Ne ", " NE ")
|
195
|
+
^^
|
196
|
+
lib/crm_formatter/address.rb:51:17: E: unexpected token error
|
197
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
198
|
+
street&.gsub!(" Nw ", " NW ")
|
199
|
+
^^
|
200
|
+
lib/crm_formatter/address.rb:52:17: E: unexpected token error
|
201
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
202
|
+
street&.gsub!(" Se ", " SE ")
|
203
|
+
^^
|
204
|
+
lib/crm_formatter/address.rb:53:17: E: unexpected token error
|
205
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
206
|
+
street&.gsub!(" Sw ", " SW ")
|
207
|
+
^^
|
208
|
+
lib/crm_formatter/address.rb:55:17: E: unexpected token error
|
209
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
210
|
+
street&.gsub!("Avenue", "Ave")
|
211
|
+
^^
|
212
|
+
lib/crm_formatter/address.rb:56:17: E: unexpected token error
|
213
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
214
|
+
street&.gsub!("Boulevard", "Blvd")
|
215
|
+
^^
|
216
|
+
lib/crm_formatter/address.rb:57:17: E: unexpected token error
|
217
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
218
|
+
street&.gsub!("Drive", "Dr")
|
219
|
+
^^
|
220
|
+
lib/crm_formatter/address.rb:58:17: E: unexpected token error
|
221
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
222
|
+
street&.gsub!("Expressway", "Expy")
|
223
|
+
^^
|
224
|
+
lib/crm_formatter/address.rb:59:17: E: unexpected token error
|
225
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
226
|
+
street&.gsub!("Freeway", "Fwy")
|
227
|
+
^^
|
228
|
+
lib/crm_formatter/address.rb:60:17: E: unexpected token error
|
229
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
230
|
+
street&.gsub!("Highway", "Hwy")
|
231
|
+
^^
|
232
|
+
lib/crm_formatter/address.rb:61:17: E: unexpected token error
|
233
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
234
|
+
street&.gsub!("Lane", "Ln")
|
235
|
+
^^
|
236
|
+
lib/crm_formatter/address.rb:62:17: E: unexpected token error
|
237
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
238
|
+
street&.gsub!("Parkway", "Pkwy")
|
239
|
+
^^
|
240
|
+
lib/crm_formatter/address.rb:63:17: E: unexpected token error
|
241
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
242
|
+
street&.gsub!("Road", "Rd")
|
243
|
+
^^
|
244
|
+
lib/crm_formatter/address.rb:64:17: E: unexpected token error
|
245
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
246
|
+
street&.gsub!("Route", "Rte")
|
247
|
+
^^
|
248
|
+
lib/crm_formatter/address.rb:65:17: E: unexpected token error
|
249
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
250
|
+
street&.gsub!("Street", "St")
|
251
|
+
^^
|
252
|
+
lib/crm_formatter/address.rb:66:17: E: unexpected token error
|
253
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
254
|
+
street&.gsub!("Terrace", "Ter")
|
255
|
+
^^
|
256
|
+
lib/crm_formatter/address.rb:67:17: E: unexpected token error
|
257
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
258
|
+
street&.gsub!("Trail", "Trl")
|
259
|
+
^^
|
260
|
+
lib/crm_formatter/address.rb:68:17: E: unexpected token error
|
261
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
262
|
+
street&.gsub!("Turnpike", "Tpke")
|
263
|
+
^^
|
264
|
+
lib/crm_formatter/address.rb:69:17: E: unexpected token error
|
265
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
266
|
+
street&.gsub!("|", " ")
|
267
|
+
^^
|
268
|
+
lib/crm_formatter/address.rb:70:17: E: unexpected token error
|
269
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
270
|
+
street&.gsub!("•", " ")
|
271
|
+
^^
|
272
|
+
lib/crm_formatter/address.rb:71:17: E: unexpected token error
|
273
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
274
|
+
street&.gsub!("Welcome to", " ")
|
275
|
+
^^
|
276
|
+
lib/crm_formatter/address.rb:72:17: E: unexpected token error
|
277
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
278
|
+
street&.gsub!("var address = \"", " ")
|
279
|
+
^^
|
280
|
+
lib/crm_formatter/address.rb:74:17: E: unexpected token error
|
281
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
282
|
+
street&.strip!
|
283
|
+
^^
|
284
|
+
lib/crm_formatter/address.rb:75:17: E: unexpected token error
|
285
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
286
|
+
street&.squeeze!(" ")
|
287
|
+
^^
|
288
|
+
lib/crm_formatter/address.rb:84:18: E: unexpected token error
|
289
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
290
|
+
city = city&.gsub(/\s/, ' ')&.strip
|
291
|
+
^^
|
292
|
+
lib/crm_formatter/address.rb:84:35: E: unexpected token error
|
293
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
294
|
+
city = city&.gsub(/\s/, ' ')&.strip
|
295
|
+
^^
|
296
|
+
lib/crm_formatter/address.rb:85:25: E: unexpected token error
|
297
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
298
|
+
city = nil if city&.scan(/[0-9]/)&.any?
|
299
|
+
^^
|
300
|
+
lib/crm_formatter/address.rb:85:40: E: unexpected token error
|
301
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
302
|
+
city = nil if city&.scan(/[0-9]/)&.any?
|
303
|
+
^^
|
304
|
+
lib/crm_formatter/address.rb:86:25: E: unexpected token error
|
305
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
306
|
+
city = nil if city&.downcase&.include?('category')
|
307
|
+
^^
|
308
|
+
lib/crm_formatter/address.rb:87:25: E: unexpected token error
|
309
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
310
|
+
city = nil if city&.downcase&.include?('model')
|
311
|
+
^^
|
312
|
+
lib/crm_formatter/address.rb:88:25: E: unexpected token error
|
313
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
314
|
+
city = nil if city&.downcase&.include?('make')
|
315
|
+
^^
|
316
|
+
lib/crm_formatter/address.rb:89:25: E: unexpected token error
|
317
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
318
|
+
city = nil if city&.downcase&.include?('inventory')
|
319
|
+
^^
|
320
|
+
lib/crm_formatter/address.rb:90:25: E: unexpected token error
|
321
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
322
|
+
city = nil if city&.downcase&.include?('tracker')
|
323
|
+
^^
|
324
|
+
lib/crm_formatter/address.rb:91:25: E: unexpected token error
|
325
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
326
|
+
city = nil if city&.downcase&.include?('push')
|
327
|
+
^^
|
328
|
+
lib/crm_formatter/address.rb:92:25: E: unexpected token error
|
329
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
330
|
+
city = nil if city&.downcase&.include?("(")
|
331
|
+
^^
|
332
|
+
lib/crm_formatter/address.rb:93:25: E: unexpected token error
|
333
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
334
|
+
city = nil if city&.downcase&.include?(")")
|
335
|
+
^^
|
336
|
+
lib/crm_formatter/address.rb:94:25: E: unexpected token error
|
337
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
338
|
+
city = nil if city&.downcase&.include?("[")
|
339
|
+
^^
|
340
|
+
lib/crm_formatter/address.rb:95:25: E: unexpected token error
|
341
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
342
|
+
city = nil if city&.downcase&.include?("]")
|
343
|
+
^^
|
344
|
+
lib/crm_formatter/address.rb:96:11: E: unexpected token error
|
345
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
346
|
+
city&.gsub!("|", " ")
|
347
|
+
^^
|
348
|
+
lib/crm_formatter/address.rb:97:11: E: unexpected token error
|
349
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
350
|
+
city&.gsub!("•", " ")
|
351
|
+
^^
|
352
|
+
lib/crm_formatter/address.rb:108:44: E: unexpected token kDO_BLOCK
|
353
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
354
|
+
invalid_city = city_parts.select do |city_part|
|
355
|
+
^^
|
356
|
+
lib/crm_formatter/address.rb:113:29: E: unexpected token error
|
357
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
358
|
+
city = nil if city&.downcase&.include?("/")
|
359
|
+
^^
|
360
|
+
lib/crm_formatter/address.rb:114:29: E: unexpected token error
|
361
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
362
|
+
city = nil if city&.downcase&.include?("www")
|
363
|
+
^^
|
364
|
+
lib/crm_formatter/address.rb:115:29: E: unexpected token error
|
365
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
366
|
+
city = nil if city&.downcase&.include?("*")
|
367
|
+
^^
|
368
|
+
lib/crm_formatter/address.rb:116:29: E: unexpected token error
|
369
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
370
|
+
city = nil if city&.downcase&.include?("number")
|
371
|
+
^^
|
372
|
+
lib/crm_formatter/address.rb:117:29: E: unexpected token error
|
373
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
374
|
+
city = nil if city&.downcase&.include?("stock")
|
375
|
+
^^
|
376
|
+
lib/crm_formatter/address.rb:118:29: E: unexpected token error
|
377
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
378
|
+
city = nil if city&.downcase&.include?(":")
|
379
|
+
^^
|
380
|
+
lib/crm_formatter/address.rb:119:29: E: unexpected token error
|
381
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
382
|
+
city = nil if city&.downcase&.include?("ID")
|
383
|
+
^^
|
384
|
+
lib/crm_formatter/address.rb:121:15: E: unexpected token error
|
385
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
386
|
+
city&.strip!
|
387
|
+
^^
|
388
|
+
lib/crm_formatter/address.rb:122:15: E: unexpected token error
|
389
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
390
|
+
city&.squeeze!(" ")
|
391
|
+
^^
|
392
|
+
lib/crm_formatter/address.rb:127:18: E: unexpected token error
|
393
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
394
|
+
city = city&.split(' ')&.map(&:capitalize).join(' ')
|
395
|
+
^^
|
396
|
+
lib/crm_formatter/address.rb:127:30: E: unexpected token error
|
397
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
398
|
+
city = city&.split(' ')&.map(&:capitalize).join(' ')
|
399
|
+
^^
|
400
|
+
lib/crm_formatter/address.rb:134:20: E: unexpected token error
|
401
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
402
|
+
state = state&.gsub(/\s/, ' ')&.strip
|
403
|
+
^^
|
404
|
+
lib/crm_formatter/address.rb:134:37: E: unexpected token error
|
405
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
406
|
+
state = state&.gsub(/\s/, ' ')&.strip
|
407
|
+
^^
|
408
|
+
lib/crm_formatter/address.rb:150:35: E: unexpected token error
|
409
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
410
|
+
state_code = valid_state&.last
|
411
|
+
^^
|
412
|
+
lib/crm_formatter/address.rb:162:16: E: unexpected token error
|
413
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
414
|
+
zip = zip&.gsub(/\s/, ' ')&.strip
|
415
|
+
^^
|
416
|
+
lib/crm_formatter/address.rb:162:33: E: unexpected token error
|
417
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
418
|
+
zip = zip&.gsub(/\s/, ' ')&.strip
|
419
|
+
^^
|
420
|
+
lib/crm_formatter/address.rb:163:16: E: unexpected token error
|
421
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
422
|
+
zip = zip&.split('-')&.first
|
423
|
+
^^
|
424
|
+
lib/crm_formatter/address.rb:163:28: E: unexpected token error
|
425
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
426
|
+
zip = zip&.split('-')&.first
|
427
|
+
^^
|
428
|
+
lib/crm_formatter/address.rb:164:23: E: unexpected token error
|
429
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
430
|
+
zip = nil if zip&.scan(/[A-Za-z]/)&.any?
|
431
|
+
^^
|
432
|
+
lib/crm_formatter/address.rb:164:41: E: unexpected token error
|
433
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
434
|
+
zip = nil if zip&.scan(/[A-Za-z]/)&.any?
|
435
|
+
^^
|
436
|
+
lib/crm_formatter/address.rb:167:10: E: unexpected token error
|
437
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
438
|
+
zip&.strip!
|
439
|
+
^^
|
440
|
+
lib/crm_formatter/address.rb:168:10: E: unexpected token error
|
441
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
442
|
+
zip&.squeeze!(" ")
|
443
|
+
^^
|
444
|
+
lib/crm_formatter/address.rb:174:1: E: unexpected token kEND
|
445
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
446
|
+
end
|
447
|
+
^^^
|
448
|
+
lib/crm_formatter/dictionary.rb:2:3: C: Missing top-level module documentation comment.
|
449
|
+
module Dictionary
|
450
|
+
^^^^^^
|
451
|
+
lib/crm_formatter/dictionary.rb:3:1: C: Extra empty line detected at module body beginning.
|
452
|
+
lib/crm_formatter/dictionary.rb:6:7: W: Remove debugger entry point binding.pry.
|
453
|
+
binding.pry
|
454
|
+
^^^^^^^^^^^
|
455
|
+
lib/crm_formatter/dictionary.rb:10:3: C: Inconsistent indentation detected.
|
456
|
+
DICTIONARY = { pronouns: ["A", "The", "Their", "Some", "None"], adjectives: ["a really long list I won't reproduce here"], nouns: ["another really long list I won't reproduce here"]}
|
457
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
458
|
+
lib/crm_formatter/dictionary.rb:10:16: C: Freeze mutable objects assigned to constants.
|
459
|
+
DICTIONARY = { pronouns: ["A", "The", "Their", "Some", "None"], adjectives: ["a really long list I won't reproduce here"], nouns: ["another really long list I won't reproduce here"]}
|
460
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
461
|
+
lib/crm_formatter/dictionary.rb:10:28: C: Use %w or %W for an array of words.
|
462
|
+
DICTIONARY = { pronouns: ["A", "The", "Their", "Some", "None"], adjectives: ["a really long list I won't reproduce here"], nouns: ["another really long list I won't reproduce here"]}
|
463
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
464
|
+
lib/crm_formatter/dictionary.rb:10:29: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
465
|
+
DICTIONARY = { pronouns: ["A", "The", "Their", "Some", "None"], adjectives: ["a really long list I won't reproduce here"], nouns: ["another really long list I won't reproduce here"]}
|
466
|
+
^^^
|
467
|
+
lib/crm_formatter/dictionary.rb:10:34: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
468
|
+
DICTIONARY = { pronouns: ["A", "The", "Their", "Some", "None"], adjectives: ["a really long list I won't reproduce here"], nouns: ["another really long list I won't reproduce here"]}
|
469
|
+
^^^^^
|
470
|
+
lib/crm_formatter/dictionary.rb:10:41: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
471
|
+
DICTIONARY = { pronouns: ["A", "The", "Their", "Some", "None"], adjectives: ["a really long list I won't reproduce here"], nouns: ["another really long list I won't reproduce here"]}
|
472
|
+
^^^^^^^
|
473
|
+
lib/crm_formatter/dictionary.rb:10:50: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
474
|
+
DICTIONARY = { pronouns: ["A", "The", "Their", "Some", "None"], adjectives: ["a really long list I won't reproduce here"], nouns: ["another really long list I won't reproduce here"]}
|
475
|
+
^^^^^^
|
476
|
+
lib/crm_formatter/dictionary.rb:10:58: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
477
|
+
DICTIONARY = { pronouns: ["A", "The", "Their", "Some", "None"], adjectives: ["a really long list I won't reproduce here"], nouns: ["another really long list I won't reproduce here"]}
|
478
|
+
^^^^^^
|
479
|
+
lib/crm_formatter/dictionary.rb:10:81: C: Line is too long. [184/80]
|
480
|
+
DICTIONARY = { pronouns: ["A", "The", "Their", "Some", "None"], adjectives: ["a really long list I won't reproduce here"], nouns: ["another really long list I won't reproduce here"]}
|
481
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
482
|
+
lib/crm_formatter/dictionary.rb:10:184: C: Space inside } missing.
|
483
|
+
DICTIONARY = { pronouns: ["A", "The", "Their", "Some", "None"], adjectives: ["a really long list I won't reproduce here"], nouns: ["another really long list I won't reproduce here"]}
|
484
|
+
^
|
485
|
+
lib/crm_formatter/dictionary.rb:12:3: C: Inconsistent indentation detected.
|
486
|
+
def Dictionary.pronoun [33m...[0m
|
487
|
+
^^^^^^^^^^^^^^^^^^^^^^
|
488
|
+
lib/crm_formatter/dictionary.rb:12:7: C: Use self.pronoun instead of Dictionary.pronoun.
|
489
|
+
def Dictionary.pronoun
|
490
|
+
^^^^^^^^^^
|
491
|
+
lib/crm_formatter/dictionary.rb:13:3: C: Use 2 (not 1) spaces for indentation.
|
492
|
+
DICTIONARY[:pronouns].sample
|
493
|
+
^
|
494
|
+
lib/crm_formatter/dictionary.rb:16:3: C: Inconsistent indentation detected.
|
495
|
+
def Dictionary.adjective [33m...[0m
|
496
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
497
|
+
lib/crm_formatter/dictionary.rb:16:7: C: Use self.adjective instead of Dictionary.adjective.
|
498
|
+
def Dictionary.adjective
|
499
|
+
^^^^^^^^^^
|
500
|
+
lib/crm_formatter/dictionary.rb:17:3: C: Use 2 (not 1) spaces for indentation.
|
501
|
+
DICTIONARY[:adjectives].sample
|
502
|
+
^
|
503
|
+
lib/crm_formatter/dictionary.rb:20:3: C: Inconsistent indentation detected.
|
504
|
+
def Dictionary.noun [33m...[0m
|
505
|
+
^^^^^^^^^^^^^^^^^^^
|
506
|
+
lib/crm_formatter/dictionary.rb:20:7: C: Use self.noun instead of Dictionary.noun.
|
507
|
+
def Dictionary.noun
|
508
|
+
^^^^^^^^^^
|
509
|
+
lib/crm_formatter/dictionary.rb:21:3: C: Use 2 (not 1) spaces for indentation.
|
510
|
+
DICTIONARY[:nouns].sample
|
511
|
+
^
|
512
|
+
lib/crm_formatter/dictionary.rb:23:1: C: Extra empty line detected at module body end.
|
513
|
+
lib/crm_formatter/phone.rb:10:22: E: unexpected token error
|
514
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
515
|
+
phone = phone&.gsub(/\s/, ' ')&.strip
|
516
|
+
^^
|
517
|
+
lib/crm_formatter/phone.rb:10:39: E: unexpected token error
|
518
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
519
|
+
phone = phone&.gsub(/\s/, ' ')&.strip
|
520
|
+
^^
|
521
|
+
lib/crm_formatter/tools.rb:30:20: E: unexpected token error
|
522
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
523
|
+
add_to_global&.uniq!
|
524
|
+
^^
|
525
|
+
lib/crm_formatter/tools.rb:72:38: E: unexpected token error
|
526
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
527
|
+
scrub_match = scrub_matches&.uniq&.sort&.join(', ')
|
528
|
+
^^
|
529
|
+
lib/crm_formatter/tools.rb:91:22: E: unexpected token error
|
530
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
531
|
+
flashes = str&.gsub(/[^ A-Za-z]/, '')&.strip&.split(' ')
|
532
|
+
^^
|
533
|
+
lib/crm_formatter/tools.rb:91:46: E: unexpected token error
|
534
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
535
|
+
flashes = str&.gsub(/[^ A-Za-z]/, '')&.strip&.split(' ')
|
536
|
+
^^
|
537
|
+
lib/crm_formatter/tools.rb:92:24: E: unexpected token error
|
538
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
539
|
+
flash = flashes&.reject {|e| e.length < 3 }.join(' ')
|
540
|
+
^^
|
541
|
+
lib/crm_formatter/tools.rb:98:33: E: unexpected token error
|
542
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
543
|
+
str = str.split(' ')&.each { |el| el.capitalize! if el.gsub(/[^ A-Za-z]/, '')&.strip&.length > 2 }&.join(' ')
|
544
|
+
^^
|
545
|
+
lib/crm_formatter/tools.rb:98:90: E: unexpected token error
|
546
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
547
|
+
str = str.split(' ')&.each { |el| el.capitalize! if el.gsub(/[^ A-Za-z]/, '')&.strip&.length > 2 }&.join(' ')
|
548
|
+
^^
|
549
|
+
lib/crm_formatter/tools.rb:98:111: E: unexpected token error
|
550
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
551
|
+
str = str.split(' ')&.each { |el| el.capitalize! if el.gsub(/[^ A-Za-z]/, '')&.strip&.length > 2 }&.join(' ')
|
552
|
+
^^
|
553
|
+
lib/crm_formatter/utf.rb:139:26: E: unexpected token error
|
554
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
555
|
+
wchar = encoded&.gsub(/\s+/, ' ')&.strip
|
556
|
+
^^
|
557
|
+
lib/crm_formatter/utf.rb:139:44: E: unexpected token error
|
558
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
559
|
+
wchar = encoded&.gsub(/\s+/, ' ')&.strip
|
560
|
+
^^
|
561
|
+
lib/crm_formatter/utf.rb:156:32: E: unexpected token error
|
562
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
563
|
+
utf_status = utf_status&.map(&:to_s).join(', ')
|
564
|
+
^^
|
565
|
+
lib/crm_formatter/version.rb:2:13: C: Freeze mutable objects assigned to constants.
|
566
|
+
VERSION = "1.0.8-rc.1"
|
567
|
+
^^^^^^^^^^^^
|
568
|
+
lib/crm_formatter/version.rb:2:13: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
569
|
+
VERSION = "1.0.8-rc.1"
|
570
|
+
^^^^^^^^^^^^
|
571
|
+
lib/crm_formatter/web.rb:43:13: E: unexpected token error
|
572
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
573
|
+
if url&.present?
|
574
|
+
^^
|
575
|
+
lib/crm_formatter/web.rb:76:18: E: unexpected token error
|
576
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
577
|
+
url = url&.split('|')&.first
|
578
|
+
^^
|
579
|
+
lib/crm_formatter/web.rb:76:30: E: unexpected token error
|
580
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
581
|
+
url = url&.split('|')&.first
|
582
|
+
^^
|
583
|
+
lib/crm_formatter/web.rb:77:18: E: unexpected token error
|
584
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
585
|
+
url = url&.split('\\')&.first
|
586
|
+
^^
|
587
|
+
lib/crm_formatter/web.rb:77:31: E: unexpected token error
|
588
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
589
|
+
url = url&.split('\\')&.first
|
590
|
+
^^
|
591
|
+
lib/crm_formatter/web.rb:78:12: E: unexpected token error
|
592
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
593
|
+
url&.gsub!(/\P{ASCII}/, '')
|
594
|
+
^^
|
595
|
+
lib/crm_formatter/web.rb:79:18: E: unexpected token error
|
596
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
597
|
+
url = url&.downcase&.strip
|
598
|
+
^^
|
599
|
+
lib/crm_formatter/web.rb:83:12: E: unexpected token error
|
600
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
601
|
+
url&.strip!
|
602
|
+
^^
|
603
|
+
lib/crm_formatter/web.rb:90:69: E: unexpected token error
|
604
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
605
|
+
url = nil if url.present? && banned_symbols.any? {|symb| url&.include?(symb) }
|
606
|
+
^^
|
607
|
+
lib/crm_formatter/web.rb:109:21: E: unexpected token error
|
608
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
609
|
+
scheme = uri&.scheme
|
610
|
+
^^
|
611
|
+
lib/crm_formatter/web.rb:110:19: E: unexpected token error
|
612
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
613
|
+
host = uri&.host
|
614
|
+
^^
|
615
|
+
lib/crm_formatter/web.rb:122:34: E: unexpected token error
|
616
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
617
|
+
uri_parts = URI(url).host&.split(".")
|
618
|
+
^^
|
619
|
+
lib/crm_formatter/web.rb:173:13: E: unexpected token error
|
620
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
621
|
+
link&.gsub!(url, '')
|
622
|
+
^^
|
623
|
+
lib/crm_formatter/web.rb:174:20: E: unexpected token error
|
624
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
625
|
+
link = link&.split('.net')&.last
|
626
|
+
^^
|
627
|
+
lib/crm_formatter/web.rb:174:35: E: unexpected token error
|
628
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
629
|
+
link = link&.split('.net')&.last
|
630
|
+
^^
|
631
|
+
lib/crm_formatter/web.rb:175:20: E: unexpected token error
|
632
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
633
|
+
link = link&.split('.com')&.last
|
634
|
+
^^
|
635
|
+
lib/crm_formatter/web.rb:175:35: E: unexpected token error
|
636
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
637
|
+
link = link&.split('.com')&.last
|
638
|
+
^^
|
639
|
+
lib/crm_formatter/web.rb:176:20: E: unexpected token error
|
640
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
641
|
+
link = link&.split('.org')&.last
|
642
|
+
^^
|
643
|
+
lib/crm_formatter/web.rb:176:35: E: unexpected token error
|
644
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
645
|
+
link = link&.split('.org')&.last
|
646
|
+
^^
|
647
|
+
lib/crm_formatter/web.rb:199:47: E: unexpected token error
|
648
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
649
|
+
flags = @neg_links.select { |red| link&.include?(red) }
|
650
|
+
^^
|
651
|
+
lib/crm_formatter/web.rb:217:13: E: unexpected token error
|
652
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
653
|
+
href&.gsub!("(", ' ')
|
654
|
+
^^
|
655
|
+
lib/crm_formatter/web.rb:218:13: E: unexpected token error
|
656
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
657
|
+
href&.gsub!(")", ' ')
|
658
|
+
^^
|
659
|
+
lib/crm_formatter/web.rb:219:13: E: unexpected token error
|
660
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
661
|
+
href&.gsub!("[", ' ')
|
662
|
+
^^
|
663
|
+
lib/crm_formatter/web.rb:220:13: E: unexpected token error
|
664
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
665
|
+
href&.gsub!("]", ' ')
|
666
|
+
^^
|
667
|
+
lib/crm_formatter/web.rb:221:13: E: unexpected token error
|
668
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
669
|
+
href&.gsub!(",", ' ')
|
670
|
+
^^
|
671
|
+
lib/crm_formatter/web.rb:222:13: E: unexpected token error
|
672
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
673
|
+
href&.gsub!("'", ' ')
|
674
|
+
^^
|
675
|
+
lib/crm_formatter/web.rb:227:30: E: unexpected token error
|
676
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
677
|
+
flags << invalid_text&.match(href)
|
678
|
+
^^
|
679
|
+
lib/crm_formatter/web.rb:228:20: E: unexpected token error
|
680
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
681
|
+
href = href&.downcase
|
682
|
+
^^
|
683
|
+
lib/crm_formatter/web.rb:229:20: E: unexpected token error
|
684
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
685
|
+
href = href&.strip
|
686
|
+
^^
|
687
|
+
lib/crm_formatter/web.rb:231:48: E: unexpected token error
|
688
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
689
|
+
flags << @neg_hrefs.select { |red| href&.include?(red) }
|
690
|
+
^^
|
691
|
+
lib/crm_formatter/web.rb:244:12: E: unexpected token error
|
692
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
693
|
+
url&.gsub!("www.www", "www")
|
694
|
+
^^
|
695
|
+
lib/crm_formatter/web.rb:259:1: E: unexpected token kEND
|
696
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
697
|
+
end
|
698
|
+
^^^
|
699
|
+
lib/crm_formatter/wrap.rb:4:3: C: Missing top-level class documentation comment.
|
700
|
+
class Wrap
|
701
|
+
^^^^^
|
702
|
+
lib/crm_formatter/wrap.rb:5:1: C: Extra empty line detected at class body beginning.
|
703
|
+
lib/crm_formatter/wrap.rb:7:18: C: Space inside { missing.
|
704
|
+
utf_args = {pollute_seeds: false, seed_hashes: true, seed_csv: false}
|
705
|
+
^
|
706
|
+
lib/crm_formatter/wrap.rb:7:75: C: Space inside } missing.
|
707
|
+
utf_args = {pollute_seeds: false, seed_hashes: true, seed_csv: false}
|
708
|
+
^
|
709
|
+
lib/crm_formatter/wrap.rb:17:7: W: Useless assignment to variable - formatted_urls. Did you mean format_urls?
|
710
|
+
formatted_urls = format_urls
|
711
|
+
^^^^^^^^^^^^^^
|
712
|
+
lib/crm_formatter/wrap.rb:20:1: C: Extra blank line detected.
|
713
|
+
lib/crm_formatter/wrap.rb:21:5: C: Method has too many lines. [12/10]
|
714
|
+
def format_urls(args={}) [33m...[0m
|
715
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
716
|
+
lib/crm_formatter/wrap.rb:21:21: W: Unused method argument - args. If it's necessary, use _ or _args as an argument name to indicate that it won't be used. You can also write as format_urls(*) if you want the method to accept any arguments but don't care about them.
|
717
|
+
def format_urls(args={})
|
718
|
+
^^^^
|
719
|
+
lib/crm_formatter/wrap.rb:21:25: C: Surrounding space missing in default value assignment.
|
720
|
+
def format_urls(args={})
|
721
|
+
^
|
722
|
+
lib/crm_formatter/wrap.rb:22:19: W: Useless assignment to variable - args.
|
723
|
+
import_data(args={}) ## data sent to @crm_data
|
724
|
+
^^^^
|
725
|
+
lib/crm_formatter/wrap.rb:22:23: C: Surrounding space missing for operator =.
|
726
|
+
import_data(args={}) ## data sent to @crm_data
|
727
|
+
^
|
728
|
+
lib/crm_formatter/wrap.rb:32:11: W: Useless assignment to variable - local.
|
729
|
+
local = local.merge(formatted_hash)
|
730
|
+
^^^^^
|
731
|
+
lib/crm_formatter/wrap.rb:38:1: C: Extra blank line detected.
|
732
|
+
lib/crm_formatter/wrap.rb:40:25: C: Surrounding space missing in default value assignment.
|
733
|
+
def import_data(args={})
|
734
|
+
^
|
735
|
+
lib/crm_formatter/wrap.rb:41:14: C: Space inside { missing.
|
736
|
+
args = {file_path: @utf.grab_seed_file_path}
|
737
|
+
^
|
738
|
+
lib/crm_formatter/wrap.rb:41:49: C: Space inside } missing.
|
739
|
+
args = {file_path: @utf.grab_seed_file_path}
|
740
|
+
^
|
741
|
+
lib/crm_formatter/wrap.rb:46:1: C: Extra blank line detected.
|
742
|
+
lib/crm_formatter/wrap.rb:47:9: C: Do not prefix reader method names with get_.
|
743
|
+
def grab_seed_web_criteria
|
744
|
+
^^^^^^^^^^^^
|
745
|
+
lib/crm_formatter/wrap.rb:48:81: C: Line is too long. [267/80]
|
746
|
+
neg_urls = %w(approv avis budget collis eat enterprise facebook financ food google gourmet hertz hotel hyatt insur invest loan lube mobility motel motorola parts quick rent repair restaur rv ryder service softwar travel twitter webhost yellowpages yelp youtube)
|
747
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
748
|
+
lib/crm_formatter/wrap.rb:50:19: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
749
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
750
|
+
^^^^^^^
|
751
|
+
lib/crm_formatter/wrap.rb:50:28: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
752
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
753
|
+
^^^^^^^^^^^^
|
754
|
+
lib/crm_formatter/wrap.rb:50:42: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
755
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
756
|
+
^^^^^^^^^^^^^^
|
757
|
+
lib/crm_formatter/wrap.rb:50:58: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
758
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
759
|
+
^^^^^^
|
760
|
+
lib/crm_formatter/wrap.rb:50:66: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
761
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
762
|
+
^^^^^
|
763
|
+
lib/crm_formatter/wrap.rb:50:73: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
764
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
765
|
+
^^^^^^^^^
|
766
|
+
lib/crm_formatter/wrap.rb:50:81: C: Line is too long. [521/80]
|
767
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
768
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
769
|
+
lib/crm_formatter/wrap.rb:50:84: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
770
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
771
|
+
^^^^^^^^^
|
772
|
+
lib/crm_formatter/wrap.rb:50:95: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
773
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
774
|
+
^^^^^^^
|
775
|
+
lib/crm_formatter/wrap.rb:50:104: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
776
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
777
|
+
^^^^^^
|
778
|
+
lib/crm_formatter/wrap.rb:50:112: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
779
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
780
|
+
^^^^^^^^^^
|
781
|
+
lib/crm_formatter/wrap.rb:50:124: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
782
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
783
|
+
^^^^^^^^^^^
|
784
|
+
lib/crm_formatter/wrap.rb:50:137: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
785
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
786
|
+
^^^^^^^^^^
|
787
|
+
lib/crm_formatter/wrap.rb:50:149: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
788
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
789
|
+
^^^^^^^
|
790
|
+
lib/crm_formatter/wrap.rb:50:158: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
791
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
792
|
+
^^^^^^^^^
|
793
|
+
lib/crm_formatter/wrap.rb:50:169: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
794
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
795
|
+
^^^^^^
|
796
|
+
lib/crm_formatter/wrap.rb:50:177: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
797
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
798
|
+
^^^^^^
|
799
|
+
lib/crm_formatter/wrap.rb:50:185: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
800
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
801
|
+
^^^^^
|
802
|
+
lib/crm_formatter/wrap.rb:50:192: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
803
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
804
|
+
^^^^^^^
|
805
|
+
lib/crm_formatter/wrap.rb:50:201: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
806
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
807
|
+
^^^^^^^
|
808
|
+
lib/crm_formatter/wrap.rb:50:210: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
809
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
810
|
+
^^^^^^^
|
811
|
+
lib/crm_formatter/wrap.rb:50:219: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
812
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
813
|
+
^^^^^^^^
|
814
|
+
lib/crm_formatter/wrap.rb:50:229: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
815
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
816
|
+
^^^^^^^^^
|
817
|
+
lib/crm_formatter/wrap.rb:50:240: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
818
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
819
|
+
^^^^^^^^^^
|
820
|
+
lib/crm_formatter/wrap.rb:50:252: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
821
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
822
|
+
^^^^^^^
|
823
|
+
lib/crm_formatter/wrap.rb:50:261: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
824
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
825
|
+
^^^^^^^^
|
826
|
+
lib/crm_formatter/wrap.rb:50:271: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
827
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
828
|
+
^^^^^^
|
829
|
+
lib/crm_formatter/wrap.rb:50:279: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
830
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
831
|
+
^^^^^
|
832
|
+
lib/crm_formatter/wrap.rb:50:286: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
833
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
834
|
+
^^^^^^^^^^^^^
|
835
|
+
lib/crm_formatter/wrap.rb:50:301: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
836
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
837
|
+
^^^^^^^
|
838
|
+
lib/crm_formatter/wrap.rb:50:310: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
839
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
840
|
+
^^^^^^^^^
|
841
|
+
lib/crm_formatter/wrap.rb:50:321: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
842
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
843
|
+
^^^^^^^
|
844
|
+
lib/crm_formatter/wrap.rb:50:330: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
845
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
846
|
+
^^^^^^
|
847
|
+
lib/crm_formatter/wrap.rb:50:338: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
848
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
849
|
+
^^^^^^^^^^
|
850
|
+
lib/crm_formatter/wrap.rb:50:350: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
851
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
852
|
+
^^^^^^^
|
853
|
+
lib/crm_formatter/wrap.rb:50:359: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
854
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
855
|
+
^^^^^^^^^
|
856
|
+
lib/crm_formatter/wrap.rb:50:370: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
857
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
858
|
+
^^^^^^^^^^^^^^^
|
859
|
+
lib/crm_formatter/wrap.rb:50:387: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
860
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
861
|
+
^^^^^^^^^^^^
|
862
|
+
lib/crm_formatter/wrap.rb:50:401: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
863
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
864
|
+
^^^^^^^^
|
865
|
+
lib/crm_formatter/wrap.rb:50:411: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
866
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
867
|
+
^^^^^^^^^
|
868
|
+
lib/crm_formatter/wrap.rb:50:422: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
869
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
870
|
+
^^^^^
|
871
|
+
lib/crm_formatter/wrap.rb:50:429: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
872
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
873
|
+
^^^^^^^^^^^^^
|
874
|
+
lib/crm_formatter/wrap.rb:50:444: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
875
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
876
|
+
^^^^^^
|
877
|
+
lib/crm_formatter/wrap.rb:50:452: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
878
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
879
|
+
^^^^^^^
|
880
|
+
lib/crm_formatter/wrap.rb:50:461: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
881
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
882
|
+
^^^^^^^
|
883
|
+
lib/crm_formatter/wrap.rb:50:470: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
884
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
885
|
+
^^^^^^^^
|
886
|
+
lib/crm_formatter/wrap.rb:50:480: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
887
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
888
|
+
^^^^^^^^
|
889
|
+
lib/crm_formatter/wrap.rb:50:490: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
890
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
891
|
+
^^^^^^^^
|
892
|
+
lib/crm_formatter/wrap.rb:50:500: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
893
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
894
|
+
^^^^^^^^^^^^
|
895
|
+
lib/crm_formatter/wrap.rb:50:514: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
896
|
+
pos_urls = ["acura", "alfa romeo", "aston martin", "audi", "bmw", "bentley", "bugatti", "buick", "cdjr", "cadillac", "chevrolet", "chrysler", "dodge", "ferrari", "fiat", "ford", "gmc", "group", "group", "honda", "hummer", "hyundai", "infiniti", "isuzu", "jaguar", "jeep", "kia", "lamborghini", "lexus", "lincoln", "lotus", "mini", "maserati", "mazda", "mclaren", "mercedes-benz", "mitsubishi", "nissan", "porsche", "ram", "rolls-royce", "saab", "scion", "smart", "subaru", "suzuki", "toyota", "volkswagen", "volvo"]
|
897
|
+
^^^^^^^
|
898
|
+
lib/crm_formatter/wrap.rb:55:81: C: Line is too long. [467/80]
|
899
|
+
# neg_links = %w(: .biz .co .edu .gov .jpg .net // afri anounc book business buy bye call cash cheap click collis cont distrib download drop event face feature feed financ find fleet form gas generat graphic hello home hospi hour hours http info insta inventory item join login mail mailto mobile movie museu music news none offer part phone policy priva pump rate regist review schedul school service shop site test ticket tire tv twitter watch www yelp youth)
|
900
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
901
|
+
lib/crm_formatter/wrap.rb:57:81: C: Line is too long. [549/80]
|
902
|
+
# neg_hrefs = %w(? .com .jpg @ * afri after anounc apply approved blog book business buy call care career cash charit cheap check click collis commerc cont contrib deal distrib download employ event face feature feed financ find fleet form gas generat golf here holiday hospi hour info insta inventory join later light login mail mobile movie museu music news none now oil part pay phone policy priva pump quick quote rate regist review saving schedul service shop sign site speci ticket tire today transla travel truck tv twitter watch youth)
|
903
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
904
|
+
lib/crm_formatter/wrap.rb:61:7: W: Useless assignment to variable - oa_args.
|
905
|
+
oa_args = {neg_exts: neg_exts, pos_urls: pos_urls, neg_urls: neg_urls}
|
906
|
+
^^^^^^^
|
907
|
+
lib/crm_formatter/wrap.rb:61:17: C: Space inside { missing.
|
908
|
+
oa_args = {neg_exts: neg_exts, pos_urls: pos_urls, neg_urls: neg_urls}
|
909
|
+
^
|
910
|
+
lib/crm_formatter/wrap.rb:61:76: C: Space inside } missing.
|
911
|
+
oa_args = {neg_exts: neg_exts, pos_urls: pos_urls, neg_urls: neg_urls}
|
912
|
+
^
|
913
|
+
lib/crm_formatter/wrap.rb:64:1: C: Extra blank line detected.
|
914
|
+
lib/crm_formatter/wrap.rb:65:1: C: Extra blank line detected.
|
915
|
+
lib/crm_formatter/wrap.rb:68:21: W: Unused method argument - hash. If it's necessary, use _ or _hash as an argument name to indicate that it won't be used. You can also write as export(*) if you want the method to accept any arguments but don't care about them.
|
916
|
+
def self.export(hash)
|
917
|
+
^^^^
|
918
|
+
lib/crm_formatter/wrap.rb:85:1: C: Extra blank line detected.
|
919
|
+
lib/crm_formatter/wrap.rb:85:1: C: Extra empty line detected at class body end.
|
920
|
+
lib/crm_formatter/wrap.rb:87:1: C: Extra empty line detected at module body end.
|
921
|
+
lib/crm_formatter.rb:1:9: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
922
|
+
require "crm_formatter/version"
|
923
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
924
|
+
lib/crm_formatter.rb:2:9: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
925
|
+
require "crm_formatter/dictionary"
|
926
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
927
|
+
lib/crm_formatter.rb:12:1: C: Missing top-level module documentation comment.
|
928
|
+
module CrmFormatter
|
929
|
+
^^^^^^
|
930
|
+
lib/crm_formatter.rb:13:1: C: Extra empty line detected at module body beginning.
|
931
|
+
lib/crm_formatter.rb:23:5: W: Remove debugger entry point binding.pry.
|
932
|
+
binding.pry if urls.any?
|
933
|
+
^^^^^^^^^^^
|
934
|
+
lib/crm_formatter.rb:30:5: W: Remove debugger entry point binding.pry.
|
935
|
+
binding.pry
|
936
|
+
^^^^^^^^^^^
|
937
|
+
lib/crm_formatter.rb:34:1: C: Extra blank line detected.
|
938
|
+
lib/crm_formatter.rb:35:1: C: Extra blank line detected.
|
939
|
+
lib/crm_formatter.rb:36:1: C: Extra blank line detected.
|
940
|
+
lib/crm_formatter.rb:37:1: C: Extra blank line detected.
|
941
|
+
lib/crm_formatter.rb:38:1: C: Extra blank line detected.
|
942
|
+
lib/crm_formatter.rb:38:1: C: Extra empty line detected at module body end.
|
943
|
+
spec/crm_formatter_spec.rb:5:6: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
944
|
+
it "has a version number" do
|
945
|
+
^^^^^^^^^^^^^^^^^^^^^^
|
946
|
+
spec/crm_formatter_spec.rb:9:6: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
947
|
+
it "does something useful" do
|
948
|
+
^^^^^^^^^^^^^^^^^^^^^^^
|
949
|
+
spec/crm_formatter_spec.rb:27:1: C: Extra empty line detected at block body end.
|
950
|
+
spec/dictionary_spec.rb:23:1: E: unexpected token kEND
|
951
|
+
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
|
952
|
+
end
|
953
|
+
^^^
|
954
|
+
spec/spec_helper.rb:1:9: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
955
|
+
require "bundler/setup"
|
956
|
+
^^^^^^^^^^^^^^^
|
957
|
+
spec/spec_helper.rb:2:9: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
958
|
+
require "crm_formatter"
|
959
|
+
^^^^^^^^^^^^^^^
|
960
|
+
spec/spec_helper.rb:7:49: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
961
|
+
config.example_status_persistence_file_path = ".rspec_status"
|
962
|
+
^^^^^^^^^^^^^^^
|
963
|
+
|
964
|
+
17 files inspected, 303 offenses detected
|