Showing 53 of 53 total issues
Line is too long. [105/80] Open
Open
# !> 2015-02-06 17:52:22 +0100: > {"product_suggest":{"text":"fo","completion":{"field":"name_suggest"}}}
- Exclude checks
Freeze mutable objects assigned to constants. Open
Open
VERSION = "0.2.0"
- Read upRead up
- Exclude checks
This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).
Example:
# bad
CONST = [1, 2, 3]
# good
CONST = [1, 2, 3].freeze
Line is too long. [91/80] Open
Open
response.inspect # => "{:id=>\"1\", :name=>\"foo\", :name_suggest=>\"foo\", :price=>11.12}"
- Exclude checks
Line is too long. [116/80] Open
Open
# !> 2015-02-06 17:52:19 +0100: < {"_index":"product_index","_type":"product","_id":"2","_version":1,"created":true}
- Exclude checks
Line is too long. [187/80] Open
Open
# !> 2015-02-06 17:52:22 +0100: < {"valid":true,"_shards":{"total":1,"successful":1,"failed":0},"explanations":[{"index":"product_index","valid":true,"explanation":"ConstantScore(*:*)"}]}
- Exclude checks
Re-enable Metrics/LineLength cop with # rubocop:enable
after disabling it. Open
Open
# rubocop:disable Metrics/LineLength
- Exclude checks
Line is too long. [294/80] Open
Open
# !> 2015-02-06 17:52:22 +0100: < {"count":0,"_shards":{"total":1,"successful":0,"failed":1,"failures":[{"index":"product_index","shard":0,"reason":"BroadcastShardOperationFailedException[[product_index][0] ]; nested: QueryParsingException[[product_index] request does not support [foo]]; "}]}}
- Exclude checks
Line is too long. [178/80] Open
Open
# !> 2015-02-06 17:52:22 +0100: < {"_shards":{"total":1,"successful":1,"failed":0},"product_suggest":[{"text":"fo","offset":0,"length":2,"options":[{"text":"foo","score":1.0}]}]}
- Exclude checks
Line is too long. [86/80] Open
Open
# test_index.seach(name_suggestions: {text: "foo", completion: {field: "name"}})
- Exclude checks
Line is too long. [112/80] Open
Open
response.inspect # => "{:index=>\"product_index\", :type=>\"product\", :id=>\"1\", :version=>1, :created=>true}"
- Exclude checks
Line is too long. [140/80] Open
Open
# !> 2015-02-06 17:52:22 +0100: GET http://localhost:9200/product_index/_validate/query?explain=true [status:200, request:0.006s, query:n/a]
- Exclude checks
Line is too long. [135/80] Open
Open
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-count.html#search-count Elasticsearch count api
- Exclude checks
Line is too long. [128/80] Open
Open
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters.html Elasticsearch suggesters
- Exclude checks