{"record":{"id":"5c80d05403dadf38","repo":"ruby/rubygems","slug":"no-rubocop-has-been-removed-use-no-linter","errorCode":null,"errorMessage":"--no-rubocop has been removed, use --no-linter","messagePattern":"--no-rubocop has been removed, use --no-linter","errorType":"validation","errorClass":"InvalidOption","httpStatus":null,"severity":"error","filePath":"lib/bundler/cli.rb","lineNumber":597,"sourceCode":"    method_option :exe, type: :boolean, default: false, aliases: [\"--bin\", \"-b\"], banner: \"Generate a binary executable for your library.\"\n    method_option :coc, type: :boolean, banner: \"Generate a code of conduct file. Set a default with `bundle config set --global gem.coc true`.\"\n    method_option :edit, type: :string, aliases: \"-e\", required: false, lazy_default: [ENV[\"BUNDLER_EDITOR\"], ENV[\"VISUAL\"], ENV[\"EDITOR\"]].find {|e| !e.nil? && !e.empty? }, banner: \"Open generated gemspec in the specified editor (defaults to $EDITOR or $BUNDLER_EDITOR)\"\n    method_option :ext, type: :string, banner: \"Generate the boilerplate for C extension code.\", enum: EXTENSIONS\n    method_option :git, type: :boolean, default: true, banner: \"Initialize a git repo inside your library.\"\n    method_option :mit, type: :boolean, banner: \"Generate an MIT license file. Set a default with `bundle config set --global gem.mit true`.\"\n    method_option :rubocop, type: :boolean, banner: \"Add rubocop to the generated Rakefile and gemspec. Set a default with `bundle config set --global gem.rubocop true` (removed).\"\n    method_option :changelog, type: :boolean, banner: \"Generate changelog file. Set a default with `bundle config set --global gem.changelog true`.\"\n    method_option :test, type: :string, lazy_default: Bundler.settings[\"gem.test\"] || \"\", aliases: \"-t\", banner: \"Use the specified test framework for your library\", enum: %w[rspec minitest test-unit], desc: \"Generate a test directory for your library, either rspec, minitest or test-unit. Set a default with `bundle config set --global gem.test (rspec|minitest|test-unit)`.\"\n    method_option :ci, type: :string, lazy_default: Bundler.settings[\"gem.ci\"] || \"\", enum: %w[github gitlab circle], banner: \"Generate CI configuration, either GitHub Actions, GitLab CI or CircleCI. Set a default with `bundle config set --global gem.ci (github|gitlab|circle)`\"\n    method_option :linter, type: :string, lazy_default: Bundler.settings[\"gem.linter\"] || \"\", enum: %w[rubocop standard], banner: \"Add a linter and code formatter, either RuboCop or Standard. Set a default with `bundle config set --global gem.linter (rubocop|standard)`\"\n    method_option :github_username, type: :string, default: Bundler.settings[\"gem.github_username\"], banner: \"Set your username on GitHub\", desc: \"Fill in GitHub username on README so that you don't have to do it manually. Set a default with `bundle config set --global gem.github_username <your_username>`.\"\n    method_option :bundle, type: :boolean, default: Bundler.settings[\"gem.bundle\"], banner: \"Automatically run `bundle install` after creation. Set a default with `bundle config set --global gem.bundle true`\"\n\n    def gem(name)\n      require_relative \"cli/gem\"\n\n      raise InvalidOption, \"--rubocop has been removed, use --linter=rubocop\" if ARGV.include?(\"--rubocop\")\n      raise InvalidOption, \"--no-rubocop has been removed, use --no-linter\" if ARGV.include?(\"--no-rubocop\")\n\n      cmd_args = args + [self]\n      cmd_args.unshift(options)\n\n      Gem.new(*cmd_args).run\n    end\n\n    def self.source_root\n      File.expand_path(\"templates\", __dir__)\n    end\n\n    desc \"clean [OPTIONS]\", \"Cleans up unused gems in your bundler directory\"\n    method_option \"dry-run\", type: :boolean, default: false, banner: \"Only print out changes, do not clean gems\"\n    method_option \"force\", type: :boolean, default: false, banner: \"Forces cleaning up unused gems even if Bundler is configured to use globally installed gems. As a consequence, removes all system gems except for the ones in the current application.\"\n    def clean\n      require_relative \"cli/clean\"\n      Clean.new(options.dup).run\n    end","sourceCodeStart":579,"sourceCodeEnd":615,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/cli.rb#L579-L615","documentation":"Error \"--no-rubocop has been removed, use --no-linter\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/cli.rb:597 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}