standard 0.1.0 → 1.51.1

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.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +11 -0
  3. data/.github/workflows/test.yml +24 -0
  4. data/.github/workflows/update.yml +54 -0
  5. data/.gitignore +3 -0
  6. data/.standard.yml +1 -1
  7. data/CHANGELOG.md +703 -0
  8. data/Gemfile +13 -0
  9. data/Gemfile.lock +71 -37
  10. data/LICENSE.txt +3 -4
  11. data/README.md +459 -264
  12. data/Rakefile +5 -4
  13. data/bin/console +0 -4
  14. data/bin/rake +27 -0
  15. data/bin/run +9 -0
  16. data/config/base.yml +1065 -193
  17. data/config/default.yml +8 -0
  18. data/config/ruby-1.8.yml +10 -2
  19. data/config/ruby-1.9.yml +11 -1
  20. data/config/ruby-2.0.yml +4 -0
  21. data/config/ruby-2.1.yml +4 -0
  22. data/config/ruby-2.2.yml +13 -5
  23. data/config/ruby-2.3.yml +10 -0
  24. data/config/ruby-2.4.yml +10 -0
  25. data/config/ruby-2.5.yml +10 -0
  26. data/config/ruby-2.6.yml +13 -0
  27. data/config/ruby-2.7.yml +10 -0
  28. data/config/ruby-3.0.yml +13 -0
  29. data/config/ruby-3.1.yml +11 -0
  30. data/config/ruby-3.2.yml +4 -0
  31. data/config/ruby-3.3.yml +7 -0
  32. data/docs/ARCHITECTURE.md +33 -0
  33. data/docs/RELEASE.md +41 -0
  34. data/docs/RUBY_VERSIONS.md +51 -0
  35. data/docs/UPGRADING.md +31 -0
  36. data/lib/ruby_lsp/standard/addon.rb +58 -0
  37. data/lib/ruby_lsp/standard/wraps_built_in_lsp_standardizer.rb +44 -0
  38. data/lib/standard/base/plugin.rb +69 -0
  39. data/lib/standard/base.rb +8 -0
  40. data/lib/standard/builds_config.rb +11 -1
  41. data/lib/standard/cli.rb +1 -7
  42. data/lib/standard/creates_config_store/assigns_rubocop_yaml.rb +2 -18
  43. data/lib/standard/creates_config_store/configures_ignored_paths.rb +2 -2
  44. data/lib/standard/creates_config_store/merges_user_config_extensions.rb +37 -0
  45. data/lib/standard/creates_config_store/sets_target_ruby_version.rb +21 -8
  46. data/lib/standard/creates_config_store.rb +5 -0
  47. data/lib/standard/formatter.rb +92 -37
  48. data/lib/standard/loads_runner.rb +17 -3
  49. data/lib/standard/loads_yaml_config.rb +18 -11
  50. data/lib/standard/lsp/diagnostic.rb +174 -0
  51. data/lib/standard/lsp/kills_server.rb +10 -0
  52. data/lib/standard/lsp/logger.rb +21 -0
  53. data/lib/standard/lsp/routes.rb +175 -0
  54. data/lib/standard/lsp/server.rb +37 -0
  55. data/lib/standard/lsp/standardizer.rb +34 -0
  56. data/lib/standard/lsp/stdin_rubocop_runner.rb +71 -0
  57. data/lib/standard/merges_settings.rb +22 -11
  58. data/lib/standard/plugin/combines_plugin_configs.rb +15 -0
  59. data/lib/standard/plugin/creates_runner_context.rb +15 -0
  60. data/lib/standard/plugin/determines_class_constant.rb +56 -0
  61. data/lib/standard/plugin/initializes_plugins.rb +23 -0
  62. data/lib/standard/plugin/merges_plugins_into_rubocop_config.rb +177 -0
  63. data/lib/standard/plugin/standardizes_configured_plugins.rb +37 -0
  64. data/lib/standard/plugin.rb +11 -0
  65. data/lib/standard/railtie.rb +1 -1
  66. data/lib/standard/rake.rb +8 -1
  67. data/lib/standard/{parses_cli_option.rb → resolves_yaml_option.rb} +9 -2
  68. data/lib/standard/rubocop/ext.rb +17 -0
  69. data/lib/standard/runners/genignore.rb +44 -0
  70. data/lib/standard/runners/help.rb +9 -5
  71. data/lib/standard/runners/lsp.rb +11 -0
  72. data/lib/standard/runners/rubocop.rb +14 -18
  73. data/lib/standard/runners/verbose_version.rb +14 -0
  74. data/lib/standard/version.rb +1 -1
  75. data/lib/standard.rb +6 -4
  76. data/standard.gemspec +22 -20
  77. metadata +72 -73
  78. data/.circleci/config.yml +0 -35
  79. data/lib/standard/cop/semantic_blocks.rb +0 -162
  80. data/lib/standard/detects_fixability.rb +0 -20
@@ -0,0 +1,37 @@
1
+ module Standard
2
+ module Plugin
3
+ class StandardizesConfiguredPlugins
4
+ DEFAULT_PLUGIN_CONFIG = {
5
+ "enabled" => true,
6
+ "require_path" => nil, # If not set, will be set to the plugin name
7
+ "plugin_class_name" => nil # If not set, looks for gemspec `spec.metadata["default_lint_roller_plugin"]`
8
+ }.freeze
9
+
10
+ BUILT_INS = [
11
+ {"standard-base" => {
12
+ "require_path" => "standard/base",
13
+ "plugin_class_name" => "Standard::Base::Plugin"
14
+ }},
15
+ "standard-custom",
16
+ "standard-performance"
17
+ ].freeze
18
+
19
+ def call(plugins)
20
+ normalize_config_shape(BUILT_INS + plugins)
21
+ end
22
+
23
+ private
24
+
25
+ def normalize_config_shape(plugins)
26
+ plugins.map { |plugin|
27
+ if plugin.is_a?(Hash)
28
+ plugin_name = plugin.keys.first
29
+ [plugin_name, DEFAULT_PLUGIN_CONFIG.merge({"require_path" => plugin_name}, plugin.values.first)]
30
+ else
31
+ [plugin, DEFAULT_PLUGIN_CONFIG.merge("require_path" => plugin)]
32
+ end
33
+ }.to_h
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,11 @@
1
+ module Standard
2
+ module Plugin
3
+ end
4
+ end
5
+
6
+ require_relative "plugin/creates_runner_context"
7
+ require_relative "plugin/combines_plugin_configs"
8
+ require_relative "plugin/merges_plugins_into_rubocop_config"
9
+ require_relative "plugin/standardizes_configured_plugins"
10
+ require_relative "plugin/determines_class_constant"
11
+ require_relative "plugin/initializes_plugins"
@@ -1,7 +1,7 @@
1
1
  require "pathname"
2
2
 
3
3
  module Standard
4
- class Railtie < Rails::Railtie
4
+ class Railtie < ::Rails::Railtie
5
5
  railtie_name :standard
6
6
 
7
7
  rake_tasks do
data/lib/standard/rake.rb CHANGED
@@ -18,9 +18,16 @@ task :standard do
18
18
  fail unless exit_code == 0
19
19
  end
20
20
 
21
- desc "Lint and automatically fix with the Standard Ruby style guide"
21
+ desc "Lint and automatically make safe fixes with the Standard Ruby style guide"
22
22
  task :"standard:fix" do
23
23
  require "standard"
24
24
  exit_code = Standard::Cli.new(Standard::RakeSupport.argvify + ["--fix"]).run
25
25
  fail unless exit_code == 0
26
26
  end
27
+
28
+ desc "Lint and automatically make fixes (even unsafe ones) with the Standard Ruby style guide"
29
+ task :"standard:fix_unsafely" do
30
+ require "standard"
31
+ exit_code = Standard::Cli.new(Standard::RakeSupport.argvify + ["--fix-unsafely"]).run
32
+ fail unless exit_code == 0
33
+ end
@@ -1,8 +1,14 @@
1
1
  require "pathname"
2
2
 
3
3
  module Standard
4
- class ParsesCliOption
5
- def call(argv, option_name)
4
+ class ResolvesYamlOption
5
+ def call(argv, search_path, option_name, default_file)
6
+ search_argv(argv, option_name) || FileFinder.new.call(default_file, search_path)
7
+ end
8
+
9
+ private
10
+
11
+ def search_argv(argv, option_name)
6
12
  return unless (config_file = argv_value_for(argv, option_name))
7
13
 
8
14
  resolved_config = Pathname.new(config_file)
@@ -15,6 +21,7 @@ module Standard
15
21
 
16
22
  def argv_value_for(argv, option_name)
17
23
  return unless (index = argv.index(option_name))
24
+
18
25
  argv[index + 1]
19
26
  end
20
27
  end
@@ -5,4 +5,21 @@ module RuboCop
5
5
  "Wrap assignment in parentheses if intentional"
6
6
  end
7
7
  end
8
+
9
+ class DirectiveComment
10
+ remove_const :DIRECTIVE_COMMENT_REGEXP
11
+ DIRECTIVE_COMMENT_REGEXP = Regexp.new(
12
+ ('# (?:standard|rubocop) : ((?:disable|enable|todo))\b ' + COPS_PATTERN)
13
+ .gsub(" ", '\s*')
14
+ )
15
+ end
16
+
17
+ class CommentConfig
18
+ alias_method :old_initialize, :initialize
19
+
20
+ def initialize(processed_source)
21
+ old_initialize(processed_source)
22
+ @no_directives &&= !processed_source.raw_source.include?("standard")
23
+ end
24
+ end
8
25
  end
@@ -0,0 +1,44 @@
1
+ require "tempfile"
2
+ require "yaml"
3
+ require_relative "rubocop"
4
+
5
+ module Standard
6
+ module Runners
7
+ class Genignore
8
+ def call(config)
9
+ # Place to temporally store the ignored files.
10
+ temp_file = Tempfile.new("excluded.txt")
11
+ begin
12
+ # Run Rubocop to generate the files with errors into the temp file.
13
+ config.rubocop_options[:formatters] = [["json", temp_file.path]]
14
+ config.rubocop_options[:out] = temp_file.path
15
+ exit_code = Runners::Rubocop.new.call(config)
16
+
17
+ result = JSON.parse(temp_file.read)
18
+ ignore = result["files"].select { |file|
19
+ file["offenses"].size > 0
20
+ }.map { |file|
21
+ {
22
+ file["path"] => file["offenses"].map { |o| o["cop_name"] }.uniq
23
+ }
24
+ }
25
+
26
+ # Read the files with errors from the temp file.
27
+ yaml_format_errors = {"ignore" => ignore}
28
+
29
+ # Regenerate the todo file.
30
+ File.open(".standard_todo.yml", "w") do |file|
31
+ file.puts "# Auto generated files with errors to ignore."
32
+ file.puts "# Remove from this list as you refactor files."
33
+ file.write(yaml_format_errors.to_yaml)
34
+ end
35
+ exit_code
36
+ ensure
37
+ # Clean up temp file.
38
+ temp_file.close
39
+ temp_file.unlink
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -4,15 +4,19 @@ module Standard
4
4
  module Runners
5
5
  class Help
6
6
  def call(config)
7
- puts <<-MESSAGE.gsub(/^ {10}/, "")
8
- Usage: standardrb [--fix] [-vh] [--format <name>] [--] [FILE]...
7
+ puts <<~MESSAGE
8
+ Usage: standardrb [--fix] [--lsp] [-vh] [--format <name>] [--] [FILE]...
9
9
 
10
10
  Options:
11
11
 
12
- --fix Automatically fix failures where possible
12
+ --fix Apply automatic fixes that we're confident won't break your code
13
+ --fix-unsafely Apply even more fixes, including some that may change code behavior
13
14
  --no-fix Do not automatically fix failures
14
15
  --format <name> Format output with any RuboCop formatter (e.g. "json")
16
+ --generate-todo Create a .standard_todo.yml that lists all the files that contain errors
17
+ --lsp Start a LSP server listening on STDIN
15
18
  -v, --version Print the version of Standard
19
+ -V, --verbose-version Print the version of Standard and its dependencies.
16
20
  -h, --help Print this message
17
21
  FILE Files to lint [default: ./]
18
22
 
@@ -23,7 +27,7 @@ module Standard
23
27
  While Standard only offers a few configuration options, most can be set in
24
28
  a `.standard.yml` file. For full documentation, please visit:
25
29
 
26
- https://github.com/testdouble/standard
30
+ https://github.com/standardrb/standard
27
31
 
28
32
  Having trouble? Here's some diagnostic information:
29
33
 
@@ -35,7 +39,7 @@ module Standard
35
39
 
36
40
  Please report any problems (and include the above information) at the URL below:
37
41
 
38
- https://github.com/testdouble/standard/issues/new
42
+ https://github.com/standardrb/standard/issues/new
39
43
 
40
44
  MESSAGE
41
45
  end
@@ -0,0 +1,11 @@
1
+ require_relative "../lsp/server"
2
+
3
+ module Standard
4
+ module Runners
5
+ class Lsp
6
+ def call(config)
7
+ Standard::Lsp::Server.new(config).start
8
+ end
9
+ end
10
+ end
11
+ end
@@ -4,32 +4,28 @@ module Standard
4
4
  module Runners
5
5
  class Rubocop
6
6
  def call(config)
7
- rubocop_runner = RuboCop::Runner.new(
8
- config.rubocop_options,
9
- config.rubocop_config_store
7
+ rubocop_runner = RuboCop::CLI::Command::ExecuteRunner.new(
8
+ RuboCop::CLI::Environment.new(
9
+ without_parallelizing_in_stdin_mode(config.rubocop_options),
10
+ config.rubocop_config_store,
11
+ config.paths
12
+ )
10
13
  )
11
14
 
12
- rubocop_runner.run(config.paths).tap do |success|
13
- print_errors_and_warnings(success, rubocop_runner)
14
- print_corrected_code_if_fixing_stdin(config.rubocop_options)
15
- end
15
+ rubocop_runner.run
16
16
  end
17
17
 
18
18
  private
19
19
 
20
- def print_errors_and_warnings(success, rubocop_runner)
21
- return unless success
22
-
23
- (rubocop_runner.warnings + rubocop_runner.errors).each do |message|
24
- warn message
20
+ # This is a workaround for an issue with how `parallel` and `stdin`
21
+ # interact when invoked in this way. See:
22
+ # https://github.com/standardrb/standard/issues/536
23
+ def without_parallelizing_in_stdin_mode(options)
24
+ if options[:stdin]
25
+ options.delete(:parallel)
25
26
  end
26
- end
27
-
28
- def print_corrected_code_if_fixing_stdin(rubocop_options)
29
- return unless rubocop_options[:stdin] && rubocop_options[:auto_correct]
30
27
 
31
- puts "=" * 20
32
- print rubocop_options[:stdin]
28
+ options
33
29
  end
34
30
  end
35
31
  end
@@ -0,0 +1,14 @@
1
+ require_relative "rubocop"
2
+
3
+ module Standard
4
+ module Runners
5
+ class VerboseVersion
6
+ def call(config)
7
+ puts <<~MSG
8
+ Standard version: #{Standard::VERSION}
9
+ RuboCop version: #{RuboCop::Version.version(debug: true)}
10
+ MSG
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("0.1.0")
2
+ VERSION = Gem::Version.new("1.51.1")
3
3
  end
data/lib/standard.rb CHANGED
@@ -1,13 +1,15 @@
1
1
  require "rubocop"
2
+ require "lint_roller"
3
+
4
+ module Standard
5
+ end
2
6
 
3
7
  require "standard/rubocop/ext"
4
8
 
5
9
  require "standard/version"
6
10
  require "standard/cli"
7
- require "standard/railtie" if defined?(Rails)
11
+ require "standard/railtie" if defined?(Rails) && defined?(Rails::Railtie)
8
12
 
9
13
  require "standard/formatter"
10
- require "standard/cop/semantic_blocks"
11
14
 
12
- module Standard
13
- end
15
+ require "standard/plugin"
data/standard.gemspec CHANGED
@@ -1,30 +1,32 @@
1
- lib = File.expand_path("../lib", __FILE__)
2
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require "standard/version"
1
+ require_relative "lib/standard/version"
4
2
 
5
3
  Gem::Specification.new do |spec|
6
- spec.name = "standard"
7
- spec.version = Standard::VERSION
8
- spec.authors = ["Justin Searls"]
9
- spec.email = ["searls@gmail.com"]
4
+ spec.name = "standard"
5
+ spec.version = Standard::VERSION
6
+ spec.authors = ["Justin Searls"]
7
+ spec.email = ["searls@gmail.com"]
8
+ spec.required_ruby_version = ">= 3.0.0"
10
9
 
11
- spec.summary = "Ruby Style Guide, with linter & automatic code fixer"
12
- spec.homepage = "https://github.com/testdouble/standard"
10
+ spec.summary = "Ruby Style Guide, with linter & automatic code fixer"
11
+ spec.homepage = "https://github.com/standardrb/standard"
12
+ spec.metadata["homepage_uri"] = spec.homepage
13
+ spec.metadata["source_code_uri"] = spec.homepage
14
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
13
15
 
14
- spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
16
+ spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
15
17
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16
18
  end
17
- spec.bindir = "exe"
18
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
21
  spec.require_paths = ["lib"]
22
+ spec.metadata["rubygems_mfa_required"] = "true"
20
23
 
21
- spec.add_dependency "rubocop", "~> 0.72.0"
22
- spec.add_dependency "rubocop-performance", "~> 1.4.0"
24
+ spec.add_dependency "rubocop", "~> 1.80.2"
23
25
 
24
- spec.add_development_dependency "bundler", "~> 1.17"
25
- spec.add_development_dependency "minitest", "~> 5.0"
26
- spec.add_development_dependency "pry"
27
- spec.add_development_dependency "rake", "~> 12.0"
28
- spec.add_development_dependency "simplecov"
29
- spec.add_development_dependency "gimme"
26
+ spec.add_dependency "lint_roller", "~> 1.0"
27
+ spec.add_dependency "standard-custom", "~> 1.0.0"
28
+ spec.add_dependency "standard-performance", "~> 1.8"
29
+
30
+ # not semver: first three are lsp protocol version, last is patch
31
+ spec.add_dependency "language_server-protocol", "~> 3.17.0.2"
30
32
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.51.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2019-07-09 00:00:00.000000000 Z
10
+ date: 2025-09-12 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rubocop
@@ -16,113 +15,70 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: 0.72.0
18
+ version: 1.80.2
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: 0.72.0
25
+ version: 1.80.2
27
26
  - !ruby/object:Gem::Dependency
28
- name: rubocop-performance
27
+ name: lint_roller
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - "~>"
32
31
  - !ruby/object:Gem::Version
33
- version: 1.4.0
32
+ version: '1.0'
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - "~>"
39
38
  - !ruby/object:Gem::Version
40
- version: 1.4.0
39
+ version: '1.0'
41
40
  - !ruby/object:Gem::Dependency
42
- name: bundler
41
+ name: standard-custom
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
44
  - - "~>"
46
45
  - !ruby/object:Gem::Version
47
- version: '1.17'
48
- type: :development
46
+ version: 1.0.0
47
+ type: :runtime
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
51
  - - "~>"
53
52
  - !ruby/object:Gem::Version
54
- version: '1.17'
53
+ version: 1.0.0
55
54
  - !ruby/object:Gem::Dependency
56
- name: minitest
55
+ name: standard-performance
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - "~>"
60
59
  - !ruby/object:Gem::Version
61
- version: '5.0'
62
- type: :development
60
+ version: '1.8'
61
+ type: :runtime
63
62
  prerelease: false
64
63
  version_requirements: !ruby/object:Gem::Requirement
65
64
  requirements:
66
65
  - - "~>"
67
66
  - !ruby/object:Gem::Version
68
- version: '5.0'
69
- - !ruby/object:Gem::Dependency
70
- name: pry
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
67
+ version: '1.8'
83
68
  - !ruby/object:Gem::Dependency
84
- name: rake
69
+ name: language_server-protocol
85
70
  requirement: !ruby/object:Gem::Requirement
86
71
  requirements:
87
72
  - - "~>"
88
73
  - !ruby/object:Gem::Version
89
- version: '12.0'
90
- type: :development
74
+ version: 3.17.0.2
75
+ type: :runtime
91
76
  prerelease: false
92
77
  version_requirements: !ruby/object:Gem::Requirement
93
78
  requirements:
94
79
  - - "~>"
95
80
  - !ruby/object:Gem::Version
96
- version: '12.0'
97
- - !ruby/object:Gem::Dependency
98
- name: simplecov
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: gimme
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- description:
81
+ version: 3.17.0.2
126
82
  email:
127
83
  - searls@gmail.com
128
84
  executables:
@@ -130,48 +86,92 @@ executables:
130
86
  extensions: []
131
87
  extra_rdoc_files: []
132
88
  files:
133
- - ".circleci/config.yml"
89
+ - ".github/dependabot.yml"
90
+ - ".github/workflows/test.yml"
91
+ - ".github/workflows/update.yml"
134
92
  - ".gitignore"
135
93
  - ".standard.yml"
94
+ - CHANGELOG.md
136
95
  - Gemfile
137
96
  - Gemfile.lock
138
97
  - LICENSE.txt
139
98
  - README.md
140
99
  - Rakefile
141
100
  - bin/console
101
+ - bin/rake
102
+ - bin/run
142
103
  - bin/setup
143
104
  - config/base.yml
105
+ - config/default.yml
144
106
  - config/ruby-1.8.yml
145
107
  - config/ruby-1.9.yml
108
+ - config/ruby-2.0.yml
109
+ - config/ruby-2.1.yml
146
110
  - config/ruby-2.2.yml
111
+ - config/ruby-2.3.yml
112
+ - config/ruby-2.4.yml
113
+ - config/ruby-2.5.yml
114
+ - config/ruby-2.6.yml
115
+ - config/ruby-2.7.yml
116
+ - config/ruby-3.0.yml
117
+ - config/ruby-3.1.yml
118
+ - config/ruby-3.2.yml
119
+ - config/ruby-3.3.yml
120
+ - docs/ARCHITECTURE.md
121
+ - docs/RELEASE.md
122
+ - docs/RUBY_VERSIONS.md
123
+ - docs/UPGRADING.md
147
124
  - exe/standardrb
125
+ - lib/ruby_lsp/standard/addon.rb
126
+ - lib/ruby_lsp/standard/wraps_built_in_lsp_standardizer.rb
148
127
  - lib/standard.rb
128
+ - lib/standard/base.rb
129
+ - lib/standard/base/plugin.rb
149
130
  - lib/standard/builds_config.rb
150
131
  - lib/standard/cli.rb
151
- - lib/standard/cop/semantic_blocks.rb
152
132
  - lib/standard/creates_config_store.rb
153
133
  - lib/standard/creates_config_store/assigns_rubocop_yaml.rb
154
134
  - lib/standard/creates_config_store/configures_ignored_paths.rb
135
+ - lib/standard/creates_config_store/merges_user_config_extensions.rb
155
136
  - lib/standard/creates_config_store/sets_target_ruby_version.rb
156
- - lib/standard/detects_fixability.rb
157
137
  - lib/standard/file_finder.rb
158
138
  - lib/standard/formatter.rb
159
139
  - lib/standard/loads_runner.rb
160
140
  - lib/standard/loads_yaml_config.rb
141
+ - lib/standard/lsp/diagnostic.rb
142
+ - lib/standard/lsp/kills_server.rb
143
+ - lib/standard/lsp/logger.rb
144
+ - lib/standard/lsp/routes.rb
145
+ - lib/standard/lsp/server.rb
146
+ - lib/standard/lsp/standardizer.rb
147
+ - lib/standard/lsp/stdin_rubocop_runner.rb
161
148
  - lib/standard/merges_settings.rb
162
- - lib/standard/parses_cli_option.rb
149
+ - lib/standard/plugin.rb
150
+ - lib/standard/plugin/combines_plugin_configs.rb
151
+ - lib/standard/plugin/creates_runner_context.rb
152
+ - lib/standard/plugin/determines_class_constant.rb
153
+ - lib/standard/plugin/initializes_plugins.rb
154
+ - lib/standard/plugin/merges_plugins_into_rubocop_config.rb
155
+ - lib/standard/plugin/standardizes_configured_plugins.rb
163
156
  - lib/standard/railtie.rb
164
157
  - lib/standard/rake.rb
158
+ - lib/standard/resolves_yaml_option.rb
165
159
  - lib/standard/rubocop/ext.rb
160
+ - lib/standard/runners/genignore.rb
166
161
  - lib/standard/runners/help.rb
162
+ - lib/standard/runners/lsp.rb
167
163
  - lib/standard/runners/rubocop.rb
164
+ - lib/standard/runners/verbose_version.rb
168
165
  - lib/standard/runners/version.rb
169
166
  - lib/standard/version.rb
170
167
  - standard.gemspec
171
- homepage: https://github.com/testdouble/standard
168
+ homepage: https://github.com/standardrb/standard
172
169
  licenses: []
173
- metadata: {}
174
- post_install_message:
170
+ metadata:
171
+ homepage_uri: https://github.com/standardrb/standard
172
+ source_code_uri: https://github.com/standardrb/standard
173
+ changelog_uri: https://github.com/standardrb/standard/blob/main/CHANGELOG.md
174
+ rubygems_mfa_required: 'true'
175
175
  rdoc_options: []
176
176
  require_paths:
177
177
  - lib
@@ -179,15 +179,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
179
179
  requirements:
180
180
  - - ">="
181
181
  - !ruby/object:Gem::Version
182
- version: '0'
182
+ version: 3.0.0
183
183
  required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - ">="
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  requirements: []
189
- rubygems_version: 3.0.3
190
- signing_key:
189
+ rubygems_version: 3.6.2
191
190
  specification_version: 4
192
191
  summary: Ruby Style Guide, with linter & automatic code fixer
193
192
  test_files: []
data/.circleci/config.yml DELETED
@@ -1,35 +0,0 @@
1
- # Ruby CircleCI 2.0 configuration file
2
- #
3
- # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
- #
5
- version: 2
6
- jobs:
7
- build:
8
- docker:
9
- - image: circleci/ruby:2.4.1-node-browsers
10
- working_directory: ~/repo
11
-
12
- steps:
13
- - checkout
14
- - restore_cache:
15
- keys:
16
- - v1-dependencies-{{ checksum "Gemfile.lock" }}
17
- - v1-dependencies-
18
-
19
- - run:
20
- name: install dependencies
21
- command: |
22
- bundle install --jobs=4 --retry=3 --path vendor/bundle
23
-
24
- - save_cache:
25
- paths:
26
- - ./vendor/bundle
27
- key: v1-dependencies-{{ checksum "Gemfile.lock" }}
28
-
29
- - run:
30
- name: test
31
- command: bundle exec rake test
32
-
33
- - run:
34
- name: lint
35
- command: bundle exec rake standard:fix