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
3fd91306
Commit
3fd91306
authored
Jun 17, 2020
by
Doug Stull
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Encourage use of gitlab-styles for new rubocop cops
- multiple use by other applications/etc.
parent
c086bd8f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
doc/development/contributing/style_guides.md
doc/development/contributing/style_guides.md
+10
-0
No files found.
doc/development/contributing/style_guides.md
View file @
3fd91306
...
...
@@ -56,6 +56,16 @@ Additionally, we have a dedicated
[
newlines style guide
](
../newlines_styleguide.md
)
, as well as dedicated
[
test-specific style guides and best practices
](
../testing_guide/index.md
)
.
### Creating new RuboCop cops
Typically it is better for the linting rules to be enforced programmatically as it
reduces the aforementioned
[
bike-shedding
](
https://en.wiktionary.org/wiki/bikeshedding
)
.
To that end, we encourage creation of new RuboCop rules in the codebase.
When creating a new cop that could be applied to multiple applications, we encourage you
to add it to our
[
GitLab Styles
](
https://gitlab.com/gitlab-org/gitlab-styles
)
gem.
## 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