-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from openfoodfoundation/error-messages
Improve error message for n.times syntax
- Loading branch information
Showing
8 changed files
with
171 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
AllCops: | ||
NewCops: enable | ||
|
||
Layout/LineLength: | ||
Max: 80 # default is 120 | ||
|
||
Metrics/BlockLength: | ||
AllowedMethods: | ||
# RSpec context block containing many smaller blocks: | ||
- Matchers.define | ||
# RSpec context block containing many smaller examples: | ||
- RSpec.describe | ||
|
||
Style/BlockDelimiters: | ||
BracesRequiredMethods: | ||
# The RSpec expect syntax is prettier with braced blocks. | ||
- expect | ||
|
||
Style/StringLiterals: | ||
# It's my preference to add or remove variable from strings without replacing | ||
# the outer quotes. | ||
EnforcedStyle: double_quotes | ||
|
||
Style/TrailingCommaInArrayLiteral: | ||
# Consistent commas allow for adding and removing lines without affecting | ||
# other lines of arrays. Less editing, prettier diffs. | ||
EnforcedStyleForMultiline: consistent_comma | ||
|
||
Style/TrailingCommaInHashLiteral: | ||
# Same reason as above. | ||
EnforcedStyleForMultiline: consistent_comma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
gemspec | ||
|
||
gem "activerecord" | ||
gem "rubocop", require: false | ||
gem "sqlite3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters