Skip to content
Snippets Groups Projects

Drop leading spaces in rubocop extensions:

Merged Steve Traylen requested to merge spaces into master
  1. Nov 21, 2023
    • Steve Traylen's avatar
      Drop leading spaces in rubocop extensions: · c7f277fa
      Steve Traylen authored
      As per INC3673300  with a sync.yml config of:
      
      ```yaml
      code/.rubocop.yml:
        unmanaged: false
        extra:
          Layout/EmptyLineAfterGuardClause:
            Enabled: False
          Metrics/BlockLength:
            Enabled: False
          Style/ClassAndModuleChildren:
            Enabled: False
          Style/Documentation:
            Enabled: False
          Style/IfUnlessModifier:
            Enabled: False
      ```
      
      it was generating a rubocop.yml file of
      
      ```yaml
      inherit_gem:
        voxpupuli-test: rubocop.yml
        Layout/EmptyLineAfterGuardClause:
        Enabled: false
      Metrics/BlockLength:
        Enabled: false
      ```
      
      with a couple of extra spaces in front of `Layout/EmptyLineAfterGuardClause`
      
      Stop doing that.
      
      Also exercise this addition with it-puppet-module-ci_images!122 to check
      it works.
      c7f277fa
Loading