From b6ed1b78493b42cf54dbb063aaf2d14b5868d43c Mon Sep 17 00:00:00 2001 From: Willem van Bergen Date: Mon, 15 Apr 2019 13:22:23 -0400 Subject: [PATCH] Add standard.rb configuration file. --- .standard.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .standard.yml diff --git a/.standard.yml b/.standard.yml new file mode 100644 index 00000000..2c2c8fb2 --- /dev/null +++ b/.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"