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
dc8230ed
Commit
dc8230ed
authored
Feb 02, 2021
by
Peter Leitzen
Committed by
Albert Salim
Feb 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Activate RuboCop manual todos if envvar REVEAL_RUBOCOP_TODO is set
parent
61a32e5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
.rubocop.yml
.rubocop.yml
+4
-2
doc/development/contributing/style_guides.md
doc/development/contributing/style_guides.md
+7
-0
No files found.
.rubocop.yml
View file @
dc8230ed
...
...
@@ -7,8 +7,10 @@ require:
-
rubocop-rspec
inherit_from
:
-
.rubocop_manual_todo.yml
-
.rubocop_todo.yml
<% unless ENV['REVEAL_RUBOCOP_TODO'] == '1' %>
- '.rubocop_manual_todo.yml'
- '.rubocop_todo.yml'
<% end %>
- ./rubocop/rubocop-migrations.yml
- ./rubocop/rubocop-usage-data.yml
- ./rubocop/rubocop-code_reuse.yml
...
...
doc/development/contributing/style_guides.md
View file @
dc8230ed
...
...
@@ -154,6 +154,13 @@ resolved and place it in the `.rubocop_manual_todo.yml`. In this scenario, do no
changes to the
`.rubocop_todo.yml`
as an
`exclude limit`
that is higher than 15 will make the
`.rubocop_todo.yml`
hard to parse.
### Reveal existing RuboCop exceptions
To reveal existing RuboCop exceptions in the code that have been excluded via
`.rubocop_todo.yml`
and
`.rubocop_manual_todo.yml`
, set the environment variable
`REVEAL_RUBOCOP_TODO`
to
`1`
.
This allows you to reveal existing RuboCop exceptions during your daily work cycle and fix them along the way.
## Database migrations
See the dedicated
[
Database Migrations Style Guide
](
../migration_style_guide.md
)
.
...
...
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