tools

various tools I have been using throughout the years
Log | Files | Refs | README | LICENSE

.rubocop.yml (1922B)


      1 plugins:
      2   - rubocop-rake
      3   - rubocop-rspec
      4 
      5 AllCops:
      6   TargetRubyVersion: 3.0
      7   NewCops: enable
      8   SuggestExtensions: false
      9   Exclude:
     10     - 'pkg/**/*'
     11     - 'vendor/**/*'
     12     - 'sorbet/**/*'
     13     - 'tmp/**/*'
     14     - 'coverage/**/*'
     15     - 'hue-*.gem'
     16 
     17 Style/Documentation:
     18   Enabled: false
     19 
     20 Style/StringLiterals:
     21   EnforcedStyle: single_quotes
     22 
     23 Metrics/BlockLength:
     24   Exclude:
     25     - 'spec/**/*'
     26     - 'Rakefile'
     27     - '*.gemspec'
     28 
     29 Metrics/MethodLength:
     30   Max: 20
     31   Exclude:
     32     - 'lib/hue/colors/hue_saturation.rb'
     33     - 'lib/hue/colors/rgb.rb'
     34 
     35 Layout/LineLength:
     36   Max: 120
     37 
     38 # Color math methods are inherently dense; the public CLI verbs Bulb#on/#off,
     39 # Hue.remove_default look like predicates but aren't.
     40 Metrics/AbcSize:
     41   Exclude:
     42     - 'lib/hue/animations/candle.rb'
     43     - 'lib/hue/colors/color_temperature.rb'
     44     - 'lib/hue/colors/hue_saturation.rb'
     45     - 'lib/hue/colors/rgb.rb'
     46 
     47 Metrics/CyclomaticComplexity:
     48   Exclude:
     49     - 'lib/hue/colors/hue_saturation.rb'
     50 
     51 Metrics/ClassLength:
     52   Exclude:
     53     - 'lib/hue/bulb.rb'
     54 
     55 Metrics/ModuleLength:
     56   Exclude:
     57     - 'lib/hue.rb'
     58     - 'spec/test_helpers.rb'
     59 
     60 Metrics/ParameterLists:
     61   CountKeywordArgs: false
     62   Max: 5
     63   MaxOptionalParameters: 4
     64 
     65 Naming/PredicateMethod:
     66   Enabled: false
     67 
     68 Style/MultilineBlockChain:
     69   Enabled: false
     70 
     71 Style/OptionalBooleanParameter:
     72   Exclude:
     73     - 'spec/test_helpers.rb'
     74 
     75 # Specs verify behavior via webmock stubs and side effects; explicit expects
     76 # are not always present, and the project keeps a few stylistic rules relaxed.
     77 RSpec/ExampleLength:
     78   Max: 15
     79 
     80 RSpec/MultipleExpectations:
     81   Max: 10
     82 
     83 RSpec/NoExpectationExample:
     84   Enabled: false
     85 
     86 RSpec/MessageSpies:
     87   Enabled: false
     88 
     89 RSpec/InstanceVariable:
     90   Enabled: false
     91 
     92 RSpec/ContextWording:
     93   Enabled: false
     94 
     95 RSpec/SpecFilePathFormat:
     96   Enabled: false
     97 
     98 RSpec/MultipleMemoizedHelpers:
     99   Enabled: false
    100 
    101 RSpec/BeforeAfterAll:
    102   Enabled: false
    103 
    104 RSpec/DescribeMethod:
    105   Enabled: false