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
9a2f6fff
Commit
9a2f6fff
authored
Mar 08, 2018
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some cop violations and ignore Struct ones
parent
3549e457
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
13 additions
and
11 deletions
+13
-11
.rubocop.yml
.rubocop.yml
+1
-0
lib/declarative_policy/delegate_dsl.rb
lib/declarative_policy/delegate_dsl.rb
+1
-1
lib/declarative_policy/preferred_scope.rb
lib/declarative_policy/preferred_scope.rb
+1
-1
lib/declarative_policy/rule_dsl.rb
lib/declarative_policy/rule_dsl.rb
+1
-1
lib/gitlab/auth/result.rb
lib/gitlab/auth/result.rb
+1
-1
lib/gitlab/ci/pipeline/chain/command.rb
lib/gitlab/ci/pipeline/chain/command.rb
+1
-1
lib/gitlab/health_checks/metric.rb
lib/gitlab/health_checks/metric.rb
+1
-1
lib/gitlab/health_checks/result.rb
lib/gitlab/health_checks/result.rb
+1
-1
lib/gitlab/middleware/release_env.rb
lib/gitlab/middleware/release_env.rb
+1
-1
lib/gitlab/slash_commands/result.rb
lib/gitlab/slash_commands/result.rb
+1
-1
lib/haml_lint/inline_javascript.rb
lib/haml_lint/inline_javascript.rb
+1
-1
qa/qa/page/project/settings/ci_cd.rb
qa/qa/page/project/settings/ci_cd.rb
+1
-1
rubocop/rubocop.rb
rubocop/rubocop.rb
+1
-0
No files found.
.rubocop.yml
View file @
9a2f6fff
...
...
@@ -42,6 +42,7 @@ Naming/FileName:
-
'
qa/bin/*'
-
'
config/**/*'
-
'
lib/generators/**/*'
-
'
ee/lib/generators/**/*'
IgnoreExecutableScripts
:
true
AllowedAcronyms
:
-
EE
...
...
lib/declarative_policy/delegate_dsl.rb
View file @
9a2f6fff
...
...
@@ -8,7 +8,7 @@ module DeclarativePolicy
end
def
method_missing
(
m
,
*
a
,
&
b
)
return
super
unless
a
.
size
==
0
&&
!
block_given?
return
super
unless
a
.
empty?
&&
!
block_given?
@rule_dsl
.
delegate
(
@delegate_name
,
m
)
end
...
...
lib/declarative_policy/preferred_scope.rb
View file @
9a2f6fff
module
DeclarativePolicy
module
DeclarativePolicy
# rubocop:disable Naming/FileName
PREFERRED_SCOPE_KEY
=
:"DeclarativePolicy.preferred_scope"
class
<<
self
...
...
lib/declarative_policy/rule_dsl.rb
View file @
9a2f6fff
...
...
@@ -33,7 +33,7 @@ module DeclarativePolicy
end
def
method_missing
(
m
,
*
a
,
&
b
)
return
super
unless
a
.
size
==
0
&&
!
block_given?
return
super
unless
a
.
empty?
&&
!
block_given?
if
@context_class
.
delegations
.
key?
(
m
)
DelegateDsl
.
new
(
self
,
m
)
...
...
lib/gitlab/auth/result.rb
View file @
9a2f6fff
module
Gitlab
module
Gitlab
# rubocop:disable Naming/FileName
module
Auth
Result
=
Struct
.
new
(
:actor
,
:project
,
:type
,
:authentication_abilities
)
do
prepend
::
EE
::
Gitlab
::
Auth
::
Result
...
...
lib/gitlab/ci/pipeline/chain/command.rb
View file @
9a2f6fff
module
Gitlab
module
Gitlab
# rubocop:disable Naming/FileName
module
Ci
module
Pipeline
module
Chain
...
...
lib/gitlab/health_checks/metric.rb
View file @
9a2f6fff
module
Gitlab::HealthChecks
module
Gitlab::HealthChecks
# rubocop:disable Naming/FileName
Metric
=
Struct
.
new
(
:name
,
:value
,
:labels
)
end
lib/gitlab/health_checks/result.rb
View file @
9a2f6fff
module
Gitlab::HealthChecks
module
Gitlab::HealthChecks
# rubocop:disable Naming/FileName
Result
=
Struct
.
new
(
:success
,
:message
,
:labels
)
end
lib/gitlab/middleware/release_env.rb
View file @
9a2f6fff
module
Gitlab
module
Gitlab
# rubocop:disable Naming/FileName
module
Middleware
# Some of middleware would hold env for no good reason even after the
# request had already been processed, and we could not garbage collect
...
...
lib/gitlab/slash_commands/result.rb
View file @
9a2f6fff
module
Gitlab
module
Gitlab
# rubocop:disable Naming/FileName
module
SlashCommands
Result
=
Struct
.
new
(
:type
,
:message
)
end
...
...
lib/haml_lint/inline_javascript.rb
View file @
9a2f6fff
unless
Rails
.
env
.
production?
unless
Rails
.
env
.
production?
# rubocop:disable Naming/FileName
require
'haml_lint/haml_visitor'
require
'haml_lint/linter'
require
'haml_lint/linter_registry'
...
...
qa/qa/page/project/settings/ci_cd.rb
View file @
9a2f6fff
module
QA
module
QA
# rubocop:disable Naming/FileName
module
Page
module
Project
module
Settings
...
...
rubocop/rubocop.rb
View file @
9a2f6fff
# rubocop:disable Naming/FileName
require_relative
'cop/gitlab/module_with_instance_variables'
require_relative
'cop/gitlab/predicate_memoization'
require_relative
'cop/include_sidekiq_worker'
...
...
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