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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
cc7a7aad
Commit
cc7a7aad
authored
Dec 26, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Require our own custom cops; Remove missing cops
Also try to use the same config from EE
parent
29749f92
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
.rubocop.yml
.rubocop.yml
+3
-0
rubocop/rubocop.rb
rubocop/rubocop.rb
+0
-3
No files found.
.rubocop.yml
View file @
cc7a7aad
...
...
@@ -3,6 +3,7 @@ inherit_gem:
-
rubocop-default.yml
inherit_from
:
.rubocop_todo.yml
require
:
./rubocop/rubocop
AllCops
:
TargetRailsVersion
:
4.2
...
...
@@ -24,8 +25,10 @@ Gitlab/ModuleWithInstanceVariables:
Exclude
:
# We ignore Rails helpers right now because it's hard to workaround it
-
app/helpers/**/*_helper.rb
-
ee/app/helpers/**/*_helper.rb
# We ignore Rails mailers right now because it's hard to workaround it
-
app/mailers/emails/**/*.rb
-
ee/**/emails/**/*.rb
# We ignore spec helpers because it usually doesn't matter
-
spec/support/**/*.rb
-
features/steps/**/*.rb
rubocop/rubocop.rb
View file @
cc7a7aad
require_relative
'cop/active_record_dependent'
require_relative
'cop/gitlab/module_with_instance_variables'
require_relative
'cop/include_sidekiq_worker'
require_relative
'cop/migration/add_column'
...
...
@@ -18,6 +17,4 @@ require_relative 'cop/migration/update_column_in_batches'
require_relative
'cop/migration/update_large_table'
require_relative
'cop/project_path_helper'
require_relative
'cop/rspec/env_assignment'
require_relative
'cop/rspec/single_line_hook'
require_relative
'cop/rspec/verbose_include_metadata'
require_relative
'cop/sidekiq_options_queue'
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