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

[Linter] Cleanup the github sources checks #200

Merged
merged 3 commits into from
Nov 28, 2014
Merged

Conversation

joshkalpin
Copy link
Member

Code climate hates this function so I pulled it apart a little bit. Also since you can't have a gist that starts with www., added a check for
that as well. Related to #48 as this is another small improvement to the linter.

Code climate hates this function so I pulled it apart a little bit. Also
since you can't have a gist that starts with `www.`, added a check for
that as well.
@@ -377,8 +380,6 @@ def _validate_social_media_url(s)

# @!group All specs validation helpers

private
Copy link
Member

Choose a reason for hiding this comment

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

why?

Copy link
Member Author

Choose a reason for hiding this comment

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

There is already a private label higher up in the file. I can add it back if we want it for consistencies sake.

def perform_github_uri_checks(git, git_uri)
if git_uri.host.start_with?('www.')
results.add_warning('github_sources', 'Github repositories should ' \
'not use `www` in their URL.')
Copy link
Member

Choose a reason for hiding this comment

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

second line of the method call should be indented 2 spaces

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

segiddins added a commit that referenced this pull request Nov 28, 2014
[Linter] Cleanup the github sources checks
@segiddins segiddins merged commit 8c0ae56 into master Nov 28, 2014
@segiddins segiddins deleted the cleanup-github-checks branch November 28, 2014 19:49
Ashton-W pushed a commit to Ashton-W/Core that referenced this pull request Nov 2, 2015
[Linter] Cleanup the github sources checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants