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
d3af057a
Commit
d3af057a
authored
Oct 31, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the same Rubocop config fro CE and EE
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
7a1a90f2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
14 deletions
+17
-14
.rubocop.yml
.rubocop.yml
+2
-5
CHANGELOG.md
CHANGELOG.md
+0
-1
app/policies/project_policy.rb
app/policies/project_policy.rb
+15
-8
No files found.
.rubocop.yml
View file @
d3af057a
...
...
@@ -479,7 +479,7 @@ Style/WordArray:
# branches, and conditions.
Metrics/AbcSize
:
Enabled
:
true
Max
:
6
4
Max
:
6
0
# Avoid excessive block nesting.
Metrics/BlockNesting
:
...
...
@@ -494,7 +494,7 @@ Metrics/ClassLength:
# of test cases needed to validate a method.
Metrics/CyclomaticComplexity
:
Enabled
:
true
Max
:
1
8
Max
:
1
7
# Limit lines to 80 characters.
Metrics/LineLength
:
...
...
@@ -727,9 +727,6 @@ Performance/TimesMap:
Rails
:
Enabled
:
true
Rails/UniqBeforePluck
:
Enabled
:
false
# Enforces consistent use of action filter methods.
Rails/ActionFilter
:
Enabled
:
true
...
...
CHANGELOG.md
View file @
d3af057a
...
...
@@ -222,7 +222,6 @@ Please view this file on the master branch, on stable branches it's out of date.
-
Fix an issue with the "Commits" section of the cycle analytics summary. !6513
-
Fix errors importing project feature and milestone models using GitLab project import
-
Make JWT messages Docker-compatible
-
Fix an issue with the "Commits" section of the cycle analytics summary. !6513
-
Fix duplicate branch entry in the merge request version compare dropdown
-
Respect the fork_project permission when forking projects
-
Only update issuable labels if they have been changed
...
...
app/policies/project_policy.rb
View file @
d3af057a
...
...
@@ -217,14 +217,6 @@ class ProjectPolicy < BasePolicy
unless
project
.
container_registry_enabled
cannot!
(
*
named_abilities
(
:container_image
))
end
# EE-only
if
defined?
(
License
)
&&
License
.
block_changes?
cannot!
:create_issue
cannot!
:create_merge_request
cannot!
:push_code
cannot!
:push_code_to_protected_branches
end
end
def
anonymous_rules
...
...
@@ -271,4 +263,19 @@ class ProjectPolicy < BasePolicy
:"admin_
#{
name
}
"
]
end
# EE-specific
module
EeDisabledFeaturePermissions
def
disabled_features!
super
if
License
.
block_changes?
cannot!
:create_issue
cannot!
:create_merge_request
cannot!
:push_code
cannot!
:push_code_to_protected_branches
end
end
end
prepend
EeDisabledFeaturePermissions
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