Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CoffeeLint rules #1899

Merged
merged 7 commits into from
Mar 5, 2019
Merged

Add CoffeeLint rules #1899

merged 7 commits into from
Mar 5, 2019

Conversation

javierm
Copy link

@javierm javierm commented Mar 4, 2019

Objectives

  • Enable CoffeeLint in Hound
  • Replace existing CoffeeLint rules with the ones we use in the code
  • Update code not following the defined rules

Does this PR need a Backport to CONSUL?

Yes.

Notes

As we do in the rest of the code, we're adding a rule setting the max line length to 100 characters, but we're not updating existing code in order to follow that rule.

_paq.push(['setUserId', current_user_id]);
_paq.push(['setCustomDimension', customDimensionId = 1, customDimensionValue = verification_level]);
_paq.push(['setUserId', current_user_id])
_paq.push(['setCustomDimension', customDimensionId = 1, customDimensionValue = verification_level])

Choose a reason for hiding this comment

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

Line exceeds maximum allowed length. Length is 105, max is 100.

@@ -3,7 +3,7 @@

buildGraph = (el) ->
url = $(el).data 'graph'
conf = bindto: el, data: {x: 'x', url: url, mimeType: 'json'}, axis: { x: {type: 'timeseries',tick: { format: '%Y-%m-%d' } }}
conf = bindto: el, data: { x: 'x', url: url, mimeType: 'json' }, axis: { x: { type: 'timeseries', tick: { format: '%Y-%m-%d' } } }

Choose a reason for hiding this comment

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

Line exceeds maximum allowed length. Length is 134, max is 100.

App.Banners.update_font_color("#js-banner-title", "#banner_font_color_picker", $(this).val());
App.Banners.update_font_color("#js-banner-description", "#banner_font_color_picker", $(this).val());
App.Banners.update_font_color("#js-banner-title", "#banner_font_color_picker", $(this).val())
App.Banners.update_font_color("#js-banner-description", "#banner_font_color_picker", $(this).val())

Choose a reason for hiding this comment

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

Line exceeds maximum allowed length. Length is 107, max is 100.


$("#banner_font_color").on
change: ->
App.Banners.update_font_color("#js-banner-title", "#banner_font_color_picker", $(this).val());
App.Banners.update_font_color("#js-banner-description", "#banner_font_color_picker", $(this).val());
App.Banners.update_font_color("#js-banner-title", "#banner_font_color_picker", $(this).val())

Choose a reason for hiding this comment

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

Line exceeds maximum allowed length. Length is 101, max is 100.


$("#banner_background_color").on
change: ->
App.Banners.update_background_color("#js-banner-background", "#banner_background_color_picker", $(this).val());
App.Banners.update_background_color("#js-banner-background", "#banner_background_color_picker", $(this).val())

Choose a reason for hiding this comment

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

Line exceeds maximum allowed length. Length is 118, max is 100.

@@ -26,18 +26,18 @@ App.Banners =

$("#banner_background_color_picker").on
change: ->
App.Banners.update_background_color("#js-banner-background", "#banner_background_color", $(this).val());
App.Banners.update_background_color("#js-banner-background", "#banner_background_color", $(this).val())

Choose a reason for hiding this comment

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

Line exceeds maximum allowed length. Length is 111, max is 100.

Copy link

@voodoorai2000 voodoorai2000 left a comment

Choose a reason for hiding this comment

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

👏

@javierm javierm merged commit 80a844f into master Mar 5, 2019
@javierm javierm deleted the coffeelint branch March 6, 2019 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants