method

check

rails latest stable - Class: RailInspector::Configuring::Check::NewFrameworkDefaultsFile

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

check()
public

No documentation available.

# File tools/rail_inspector/lib/rail_inspector/configuring/check/new_framework_defaults_file.rb, line 18
        def check
          @defaults.each do |config|
            if config.start_with? "self"
              next if @file_content.include? config.gsub(/^self/, "config")
              next if @file_content.include? config.gsub(/^self/, "configuration")
            end

            next if @file_content.include? config

            next if config == "self.yjit"

            checker.errors << <<~MESSAGE
              #{checker.files.new_framework_defaults}: Missing new default
              #{config}

            MESSAGE
          end
        end