-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add CoffeeLint rules #1899
Conversation
We already had a CoffeeScript Lint configuration file, but we weren't using it. We're replacing it with a more basic one.
Just like we do in Ruby.
We always use two spaces as indentation.
_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]) |
There was a problem hiding this comment.
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' } } } |
There was a problem hiding this comment.
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()) |
There was a problem hiding this comment.
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()) |
There was a problem hiding this comment.
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()) |
There was a problem hiding this comment.
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()) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
Objectives
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.