Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Staging --> master v2.1.6 #2204

Merged
merged 31 commits into from
Feb 15, 2017
Merged

Staging --> master v2.1.6 #2204

merged 31 commits into from
Feb 15, 2017

Conversation

gemfarmer
Copy link
Contributor

@gemfarmer gemfarmer commented Feb 9, 2017

Update to v2.1.6
Changes from #2186, #2188, #2195, #2197, #2191

CircleCI

😎 PREVIEW

Changes proposed in this pull request:

/cc @meiqimichelle @shawnbot @coreycaitlin @ericronne

: contentTypes['default']
// Initalize lunr with the fields it will be searching on. I've given title
// a boost of 10 to indicate matches on this field are more important.
var idx = lunr(function () {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'lunr' is not defined.

: contentTypes['default']
// Initalize lunr with the fields it will be searching on. I've given title
// a boost of 10 to indicate matches on this field are more important.
var idx = lunr(function () {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'lunr' is not defined.

this.field('internal', { boost: 100 });
});

for (var key in window.store) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.

this.field('internal', { boost: 100 });
});

for (var key in window.store) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.

var item = store[results[i].ref];

var tags = (item.tag || [])
.map(function(tag) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't make functions within a loop.

var item = store[results[i].ref];

var tags = (item.tag || [])
.map(function(tag) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't make functions within a loop.

);
(function() {
function displaySearchResults(results, store) {
var $searchResults = $('.search-results-container .search-results-container');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

);
(function() {
function displaySearchResults(results, store) {
var $searchResults = $('.search-results-container .search-results-container');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

obj = {}
collections.each do |collection|
collection['docs'].each do |doc|
if doc.data['title'] && doc.data['description'] && doc.data['tag'] && doc.data['permalink']

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [101/100]

str.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '')
end

def create_store(collections)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignment Branch Condition size for create_store is too high. [25.5/15]

obj = {}
collections.each do |collection|
collection['docs'].each do |doc|
if doc.data['title'] && doc.data['description'] && doc.data['tag'] && doc.data['permalink']

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [101/100]

end

def slugify(str)
str.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use tr instead of gsub.

str.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '')
end

def create_store(collections)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignment Branch Condition size for create_store is too high. [25.5/15]

end

def slugify(str)
str.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use tr instead of gsub.

@gemfarmer gemfarmer changed the title Staging --> master 2.1.6 Staging --> master v2.1.6 Feb 9, 2017
@coreycaitlin coreycaitlin merged commit 38b2d09 into master Feb 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants