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

[561] Provide style guide references for each check #562

Merged
merged 1 commit into from
Nov 15, 2016

Conversation

rnelson0
Copy link
Collaborator

No description provided.

@@ -146,6 +158,7 @@ def check
elsif token.type == :RBRACE || token.type == :SEMIC
level_tokens[indent_depth_idx].each do |arrow_tok|
unless arrow_tok.column == indent_depth[indent_depth_idx] || level_tokens[indent_depth_idx].size == 1
puts indent_depth
Copy link
Owner

Choose a reason for hiding this comment

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

Looks like some debugging puts calls got committed?

@@ -168,6 +181,7 @@ def check

def fix(problem)
new_ws_len = (problem[:indent_depth] - (problem[:newline_indent].length + problem[:token].prev_code_token.to_manifest.length + 1))
puts "#{new_ws_len}, #{problem[:indent_depth]}, #{problem[:newline_indent].length}, #{problem[:token].prev_code_token.to_manifest.length + 1}, #{problem[:token].inspect}"
Copy link
Owner

Choose a reason for hiding this comment

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

Another debugging puts?

@rnelson0 rnelson0 force-pushed the plugin_style_guide_links branch from 217e7c3 to 42d8728 Compare October 27, 2016 01:59
@rnelson0
Copy link
Collaborator Author

@rodjek Good catch, thanks! Not at all sure what mistake I made there, maybe time to rm/clone again, as one does :)

@ghoneycutt
Copy link
Contributor

The style guide is also numbered, so you could say section 12.1 or whatever. I like the links though :)

@rnelson0 rnelson0 merged commit fe47744 into master Nov 15, 2016
@rnelson0 rnelson0 deleted the plugin_style_guide_links branch November 15, 2016 01:37
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.

3 participants