Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
2de1109d
Commit
2de1109d
authored
May 23, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Performance/StartWith cop and fix offenses
parent
bc806831
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
.rubocop.yml
.rubocop.yml
+1
-2
app/helpers/gitlab_markdown_helper.rb
app/helpers/gitlab_markdown_helper.rb
+1
-1
app/helpers/tab_helper.rb
app/helpers/tab_helper.rb
+1
-1
No files found.
.rubocop.yml
View file @
2de1109d
...
...
@@ -985,11 +985,10 @@ Performance/RedundantMerge:
Performance/RedundantSortBy
:
Enabled
:
false
# TODO: Enable StartWith Cop.
# Use `start_with?` instead of a regex match anchored to the beginning of a
# string.
Performance/StartWith
:
Enabled
:
fals
e
Enabled
:
tru
e
# Use `tr` instead of `gsub` when you are replacing the same number of
# characters. Use `delete` instead of `gsub` when you are deleting
...
...
app/helpers/gitlab_markdown_helper.rb
View file @
2de1109d
...
...
@@ -13,7 +13,7 @@ module GitlabMarkdownHelper
def
link_to_gfm
(
body
,
url
,
html_options
=
{})
return
""
if
body
.
blank?
escaped_body
=
if
body
=~
/\A\<img/
escaped_body
=
if
body
.
start_with?
(
'<img'
)
body
else
escape_once
(
body
)
...
...
app/helpers/tab_helper.rb
View file @
2de1109d
...
...
@@ -112,7 +112,7 @@ module TabHelper
end
def
profile_tab_class
if
controller
.
controller_path
=~
/\Aprofiles/
if
controller
.
controller_path
.
start_with?
(
'profiles'
)
return
'active'
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment