gl_rubocop 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/default.yml +284 -0
- data/gl_rubocop.gemspec +1 -1
- data/lib/gl_rubocop/version.rb +1 -1
- data/lib/gl_rubocop.rb +1 -1
- metadata +3 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 0ac5f8622d54482003b700127f3e14837fc0b7bd4f6796f73bf13a64b7b75703
         | 
| 4 | 
            +
              data.tar.gz: 82367056a96cb055ceb2e5134e1b29314405fb6f55840c64d1dcd2997f4fe6c8
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: d50f105c8ac33c9884e10720396de8ea573768172075ec016f724c2cc17e3e58dfe08dd57a86b59da7a19984a47e053911e5ee9eda5353d53f400b61b8d2d1fe
         | 
| 7 | 
            +
              data.tar.gz: 7e55a77fe00c70040a70690aba51438ebb7051b2951dc2fe950bd5603634586c6a0fc9b17fcbea3d12bb05be49aa4d89f858b064fcb32c3111bcc1779d132511
         | 
    
        data/default.yml
    ADDED
    
    | @@ -0,0 +1,284 @@ | |
| 1 | 
            +
            require:
         | 
| 2 | 
            +
              - rubocop-performance
         | 
| 3 | 
            +
              - rubocop-rails
         | 
| 4 | 
            +
              - rubocop-rspec
         | 
| 5 | 
            +
              - rubocop-magic_numbers
         | 
| 6 | 
            +
              - ./lib/gl_rubocop/gl_cops/interactor_inherits_from_interactor_base.rb
         | 
| 7 | 
            +
              - ./lib/gl_rubocop/gl_cops/callback_method_names.rb
         | 
| 8 | 
            +
              - ./lib/gl_rubocop/gl_cops/prevent_erb_files.rb
         | 
| 9 | 
            +
              - ./lib/gl_rubocop/gl_cops/sidekiq_inherits_from_sidekiq_job.rb
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            AllCops:
         | 
| 12 | 
            +
              SuggestExtensions: false
         | 
| 13 | 
            +
              NewCops: enable
         | 
| 14 | 
            +
              Exclude:
         | 
| 15 | 
            +
                - 'config/**/*'
         | 
| 16 | 
            +
                - 'db/**/*'
         | 
| 17 | 
            +
                - 'log/**/*'
         | 
| 18 | 
            +
                - 'public/**/*'
         | 
| 19 | 
            +
                - 'spec/factories/**/*'
         | 
| 20 | 
            +
                - 'spec/support/**/*'
         | 
| 21 | 
            +
                - 'swagger/**/*'
         | 
| 22 | 
            +
                - 'tmp/**/*'
         | 
| 23 | 
            +
                - 'vendor/**/*'
         | 
| 24 | 
            +
                - 'bin/**/*'
         | 
| 25 | 
            +
             | 
| 26 | 
            +
            GLCops/InteractorInheritsFromInteractorBase:
         | 
| 27 | 
            +
              Enabled: true
         | 
| 28 | 
            +
              Include:
         | 
| 29 | 
            +
                - 'app/interactors/**/*'
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            GLCops/CallbackMethodNames:
         | 
| 32 | 
            +
              Enabled: true
         | 
| 33 | 
            +
             | 
| 34 | 
            +
            GLCops/PreventErbFiles:
         | 
| 35 | 
            +
              Enabled: true
         | 
| 36 | 
            +
             | 
| 37 | 
            +
            GLCops/SidekiqInheritsFromSidekiqJob:
         | 
| 38 | 
            +
              Include:
         | 
| 39 | 
            +
                - 'app/**/*_worker.rb'
         | 
| 40 | 
            +
                - 'app/**/*_job.rb'
         | 
| 41 | 
            +
             | 
| 42 | 
            +
            Layout/LineLength:
         | 
| 43 | 
            +
              Max: 100
         | 
| 44 | 
            +
              AllowedPatterns:
         | 
| 45 | 
            +
                - '^ *#'        # Ignores full lines starting with any indentation and a comment (#)
         | 
| 46 | 
            +
             | 
| 47 | 
            +
            Lint/MissingSuper:
         | 
| 48 | 
            +
              Exclude:
         | 
| 49 | 
            +
                - /app/components/**/*
         | 
| 50 | 
            +
             | 
| 51 | 
            +
            MagicNumbers/NoAssignment:
         | 
| 52 | 
            +
              Enabled: false
         | 
| 53 | 
            +
              AllowedAssignments:
         | 
| 54 | 
            +
                - instance_variables
         | 
| 55 | 
            +
                - class_variables
         | 
| 56 | 
            +
                - global_variables
         | 
| 57 | 
            +
             | 
| 58 | 
            +
            MagicNumbers/NoArgument: 
         | 
| 59 | 
            +
              Enabled: true
         | 
| 60 | 
            +
              PermittedValues:
         | 
| 61 | 
            +
              - 0
         | 
| 62 | 
            +
              - 1
         | 
| 63 | 
            +
             | 
| 64 | 
            +
            MagicNumbers/NoDefault:
         | 
| 65 | 
            +
              Enabled: true
         | 
| 66 | 
            +
              PermittedValues:
         | 
| 67 | 
            +
              - 0
         | 
| 68 | 
            +
              - 1
         | 
| 69 | 
            +
             | 
| 70 | 
            +
            MagicNumbers/NoReturn:
         | 
| 71 | 
            +
              Enabled: true
         | 
| 72 | 
            +
              PermittedReturnValues:
         | 
| 73 | 
            +
              - 0
         | 
| 74 | 
            +
              - 1
         | 
| 75 | 
            +
             | 
| 76 | 
            +
            Metrics/AbcSize:
         | 
| 77 | 
            +
              Max: 17
         | 
| 78 | 
            +
              Exclude:
         | 
| 79 | 
            +
                - 'db/**/*'
         | 
| 80 | 
            +
                - 'spec/**/*'
         | 
| 81 | 
            +
                - 'config/routes.rb'
         | 
| 82 | 
            +
                - 'config/routes/*'
         | 
| 83 | 
            +
             | 
| 84 | 
            +
            Metrics/MethodLength:
         | 
| 85 | 
            +
              Max: 15
         | 
| 86 | 
            +
              Exclude:
         | 
| 87 | 
            +
                - 'app/mailers/**/*'
         | 
| 88 | 
            +
                - 'config/routes/**/*'
         | 
| 89 | 
            +
                - 'db/**/*'
         | 
| 90 | 
            +
                - 'lib/tasks/**/*'
         | 
| 91 | 
            +
             | 
| 92 | 
            +
            Metrics/BlockLength:
         | 
| 93 | 
            +
              Exclude:
         | 
| 94 | 
            +
                - 'app/admin/**/*'
         | 
| 95 | 
            +
                - 'db/**/*'
         | 
| 96 | 
            +
                - 'config/routes/*'
         | 
| 97 | 
            +
                - 'config/coverband.rb'
         | 
| 98 | 
            +
                - 'spec/**/*'
         | 
| 99 | 
            +
             | 
| 100 | 
            +
            Metrics/ClassLength:
         | 
| 101 | 
            +
              Max: 150
         | 
| 102 | 
            +
              Exclude:
         | 
| 103 | 
            +
                - 'db/seeds/**/*'
         | 
| 104 | 
            +
             | 
| 105 | 
            +
            Metrics/CyclomaticComplexity:
         | 
| 106 | 
            +
              Exclude:
         | 
| 107 | 
            +
                - 'db/seeds/**/*'
         | 
| 108 | 
            +
             | 
| 109 | 
            +
            Metrics/PerceivedComplexity:
         | 
| 110 | 
            +
              Exclude:
         | 
| 111 | 
            +
                - 'db/seeds/**/*'
         | 
| 112 | 
            +
             | 
| 113 | 
            +
            Metrics/ParameterLists:
         | 
| 114 | 
            +
              Exclude:
         | 
| 115 | 
            +
                - 'db/seeds/**/*'
         | 
| 116 | 
            +
             | 
| 117 | 
            +
            Performance/MapCompact:
         | 
| 118 | 
            +
              Enabled: false
         | 
| 119 | 
            +
             | 
| 120 | 
            +
            Style/Alias:
         | 
| 121 | 
            +
              EnforcedStyle: prefer_alias_method
         | 
| 122 | 
            +
             | 
| 123 | 
            +
            Style/AsciiComments:
         | 
| 124 | 
            +
              Enabled: false
         | 
| 125 | 
            +
             | 
| 126 | 
            +
            Naming/MethodParameterName:
         | 
| 127 | 
            +
              MinNameLength: 1
         | 
| 128 | 
            +
             | 
| 129 | 
            +
            Style/ClassAndModuleChildren:
         | 
| 130 | 
            +
              Exclude:
         | 
| 131 | 
            +
                - 'app/controllers/smart_donations_legacy/**/*'
         | 
| 132 | 
            +
             | 
| 133 | 
            +
            Style/Documentation:
         | 
| 134 | 
            +
              Enabled: false
         | 
| 135 | 
            +
             | 
| 136 | 
            +
            Style/FrozenStringLiteralComment:
         | 
| 137 | 
            +
              Enabled: false
         | 
| 138 | 
            +
             | 
| 139 | 
            +
            Rails/TimeZone:
         | 
| 140 | 
            +
              Enabled: false
         | 
| 141 | 
            +
             | 
| 142 | 
            +
            Rails/FindEach:
         | 
| 143 | 
            +
              Enabled: false
         | 
| 144 | 
            +
             | 
| 145 | 
            +
            Rails/I18nLocaleTexts:
         | 
| 146 | 
            +
              Enabled: false
         | 
| 147 | 
            +
             | 
| 148 | 
            +
            Style/GlobalVars:
         | 
| 149 | 
            +
              Exclude:
         | 
| 150 | 
            +
                - 'spec/**/*'
         | 
| 151 | 
            +
             | 
| 152 | 
            +
            RSpec/NestedGroups:
         | 
| 153 | 
            +
              Max: 6
         | 
| 154 | 
            +
              Exclude:
         | 
| 155 | 
            +
                - 'spec/controllers/**/*'
         | 
| 156 | 
            +
                - 'spec/requests/**/*'
         | 
| 157 | 
            +
             | 
| 158 | 
            +
            RSpec/MultipleExpectations:
         | 
| 159 | 
            +
              Max: 5
         | 
| 160 | 
            +
              Exclude:
         | 
| 161 | 
            +
                - 'spec/system/**/*'
         | 
| 162 | 
            +
             | 
| 163 | 
            +
            RSpec/ExampleLength:
         | 
| 164 | 
            +
              Max: 30
         | 
| 165 | 
            +
              Exclude:
         | 
| 166 | 
            +
                - 'spec/lib/props_module_spec.rb'
         | 
| 167 | 
            +
                - 'spec/system/**/*'
         | 
| 168 | 
            +
                - 'spec/serializers/**/*'
         | 
| 169 | 
            +
             | 
| 170 | 
            +
            RSpec/AnyInstance:
         | 
| 171 | 
            +
              Enabled: false
         | 
| 172 | 
            +
             | 
| 173 | 
            +
            RSpec/ReceiveMessages:
         | 
| 174 | 
            +
              Enabled: false
         | 
| 175 | 
            +
             | 
| 176 | 
            +
            RSpec/VerifiedDoubles:
         | 
| 177 | 
            +
              IgnoreSymbolicNames: true
         | 
| 178 | 
            +
             | 
| 179 | 
            +
            Rails/SkipsModelValidations:
         | 
| 180 | 
            +
              Exclude:
         | 
| 181 | 
            +
                - 'spec/**/*'
         | 
| 182 | 
            +
                - 'db/**/*'
         | 
| 183 | 
            +
             | 
| 184 | 
            +
            RSpec/MessageSpies:
         | 
| 185 | 
            +
              Enabled: false
         | 
| 186 | 
            +
             | 
| 187 | 
            +
            RSpec/LetSetup:
         | 
| 188 | 
            +
              Enabled: false
         | 
| 189 | 
            +
             | 
| 190 | 
            +
            Rails/Output:
         | 
| 191 | 
            +
              Exclude:
         | 
| 192 | 
            +
                - 'db/seeds/**/*'
         | 
| 193 | 
            +
             | 
| 194 | 
            +
            RSpec/EmptyExampleGroup:
         | 
| 195 | 
            +
              Exclude:
         | 
| 196 | 
            +
                - 'spec/api/**/*'
         | 
| 197 | 
            +
             | 
| 198 | 
            +
            RSpec/DescribeClass:
         | 
| 199 | 
            +
              Exclude:
         | 
| 200 | 
            +
                - 'spec/api/**/*'
         | 
| 201 | 
            +
                - 'spec/views/**/*'
         | 
| 202 | 
            +
                - 'spec/lib/tasks/**/*'
         | 
| 203 | 
            +
             | 
| 204 | 
            +
            Rails/ApplicationRecord:
         | 
| 205 | 
            +
              Exclude:
         | 
| 206 | 
            +
                - 'db/migrate/*'
         | 
| 207 | 
            +
             | 
| 208 | 
            +
            RSpec/HookArgument:
         | 
| 209 | 
            +
              Exclude:
         | 
| 210 | 
            +
                - 'spec/support/**/*'
         | 
| 211 | 
            +
             | 
| 212 | 
            +
            RSpec/InstanceVariable:
         | 
| 213 | 
            +
              Exclude:
         | 
| 214 | 
            +
                - 'spec/workers/salesforce/**/*'
         | 
| 215 | 
            +
                - 'spec/views/**/*'
         | 
| 216 | 
            +
                - 'spec/services/salesforce/**/*'
         | 
| 217 | 
            +
                - 'spec/controllers/salesforce_controller_spec.rb'
         | 
| 218 | 
            +
                - 'spec/controllers/v1/**/*'
         | 
| 219 | 
            +
             | 
| 220 | 
            +
            Rails/BulkChangeTable:
         | 
| 221 | 
            +
              Enabled: false
         | 
| 222 | 
            +
             | 
| 223 | 
            +
            Rails/CreateTableWithTimestamps:
         | 
| 224 | 
            +
              Enabled: false
         | 
| 225 | 
            +
             | 
| 226 | 
            +
            Rails/UnknownEnv:
         | 
| 227 | 
            +
              Environments:
         | 
| 228 | 
            +
                - development
         | 
| 229 | 
            +
                - staging
         | 
| 230 | 
            +
                - sandbox
         | 
| 231 | 
            +
                - production
         | 
| 232 | 
            +
                - test
         | 
| 233 | 
            +
             | 
| 234 | 
            +
            Style/HashAsLastArrayItem:
         | 
| 235 | 
            +
              Enabled: false
         | 
| 236 | 
            +
             | 
| 237 | 
            +
            Style/MultilineBlockChain:
         | 
| 238 | 
            +
              Enabled: false
         | 
| 239 | 
            +
             | 
| 240 | 
            +
            Naming/VariableNumber:
         | 
| 241 | 
            +
              EnforcedStyle: 'snake_case'
         | 
| 242 | 
            +
              AllowedIdentifiers:
         | 
| 243 | 
            +
                - is_501c3
         | 
| 244 | 
            +
                - last4
         | 
| 245 | 
            +
                - line1
         | 
| 246 | 
            +
                - line2
         | 
| 247 | 
            +
                - address_line1
         | 
| 248 | 
            +
                - address_line2
         | 
| 249 | 
            +
                - google_oauth2
         | 
| 250 | 
            +
                - s3
         | 
| 251 | 
            +
                - shift4
         | 
| 252 | 
            +
                - Shift4
         | 
| 253 | 
            +
             | 
| 254 | 
            +
            RSpec/MultipleMemoizedHelpers:
         | 
| 255 | 
            +
              Enabled: false
         | 
| 256 | 
            +
             | 
| 257 | 
            +
            RSpecRails/InferredSpecType:
         | 
| 258 | 
            +
              Enabled: false
         | 
| 259 | 
            +
             | 
| 260 | 
            +
            RSpec/SortMetadata:
         | 
| 261 | 
            +
              Enabled: false
         | 
| 262 | 
            +
             | 
| 263 | 
            +
            RSpec/IndexedLet:
         | 
| 264 | 
            +
              Enabled: false
         | 
| 265 | 
            +
             | 
| 266 | 
            +
            RSpec/FilePath:
         | 
| 267 | 
            +
              Enabled: true
         | 
| 268 | 
            +
              Exclude:
         | 
| 269 | 
            +
                - 'packs/*/spec/**/*' # Because of automatic namespacing
         | 
| 270 | 
            +
             | 
| 271 | 
            +
            RSpec/SpecFilePathFormat:
         | 
| 272 | 
            +
              Enabled: true
         | 
| 273 | 
            +
              Exclude:
         | 
| 274 | 
            +
                - 'packs/*/spec/**/*' # Because of automatic namespacing
         | 
| 275 | 
            +
             | 
| 276 | 
            +
            RSpec/VariableName:
         | 
| 277 | 
            +
              AllowedPatterns:
         | 
| 278 | 
            +
                - 'Authorization' # used in RSwag specs
         | 
| 279 | 
            +
             | 
| 280 | 
            +
            Capybara/ClickLinkOrButtonStyle:
         | 
| 281 | 
            +
              EnforcedStyle: link_or_button
         | 
| 282 | 
            +
             | 
| 283 | 
            +
            Capybara/NegationMatcher:
         | 
| 284 | 
            +
              EnforcedStyle: not_to
         | 
    
        data/gl_rubocop.gemspec
    CHANGED
    
    | @@ -18,7 +18,7 @@ Gem::Specification.new do |spec| | |
| 18 18 |  | 
| 19 19 | 
             
              # Specify which files should be added to the gem when it is released.
         | 
| 20 20 | 
             
              # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
         | 
| 21 | 
            -
              spec.files = %w[gl_rubocop.gemspec README.md LICENSE] +
         | 
| 21 | 
            +
              spec.files = %w[gl_rubocop.gemspec README.md LICENSE default.yml] +
         | 
| 22 22 | 
             
                           `git ls-files | grep -E '^(lib)'`.split("\n")
         | 
| 23 23 |  | 
| 24 24 | 
             
              spec.bindir = 'exe'
         | 
    
        data/lib/gl_rubocop/version.rb
    CHANGED
    
    
    
        data/lib/gl_rubocop.rb
    CHANGED
    
    | @@ -2,7 +2,7 @@ require 'rubocop' | |
| 2 2 |  | 
| 3 3 | 
             
            module GLRubocop
         | 
| 4 4 | 
             
              PROJECT_ROOT = File.expand_path('../', __dir__)
         | 
| 5 | 
            -
              CONFIG_DEFAULT = File.join(PROJECT_ROOT, '. | 
| 5 | 
            +
              CONFIG_DEFAULT = File.join(PROJECT_ROOT, 'default.yml')
         | 
| 6 6 |  | 
| 7 7 | 
             
              # Register your custom RuboCop config
         | 
| 8 8 | 
             
              RuboCop::ConfigLoader.default_configuration = RuboCop::ConfigLoader.merge_with_default(
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: gl_rubocop
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.2.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Give Lively
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2025-01-02 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rubocop
         | 
| @@ -103,6 +103,7 @@ extra_rdoc_files: | |
| 103 103 | 
             
            files:
         | 
| 104 104 | 
             
            - LICENSE
         | 
| 105 105 | 
             
            - README.md
         | 
| 106 | 
            +
            - default.yml
         | 
| 106 107 | 
             
            - gl_rubocop.gemspec
         | 
| 107 108 | 
             
            - lib/gl_rubocop.rb
         | 
| 108 109 | 
             
            - lib/gl_rubocop/gl_cops/callback_method_names.rb
         |