Skip to content

Commit

Permalink
Add standard.rb configuration file.
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanbergen committed Apr 15, 2019
1 parent ef47fb4 commit 7511a51
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .standard.yml
@@ -0,0 +1,14 @@
# ChunkyPNG uses and enforces standard.rb as code style (see https://github.com/testdouble/standard).
# For backwards compatilibity and idiosyncratic preferences of the main author,
# there are some minor differences listed in here.

ignore:
- lib/chunky_png/**/*.rb:
# We allow `for` loops in the codebase, especially in hot paths,
# because they perform better than `each` blocks.
- "Style/For"

- spec/chunky_png/**/*.rb:
# In RSpec, having to follow this rule will cause expectations to
# be less readable, specifically blocks for the `change` matcher.
- "Lint/AmbiguousBlockAssociation"

0 comments on commit 7511a51

Please sign in to comment.