rubykatzen-baseline 0.5.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 +7 -0
- data/LICENSE +21 -0
- data/baseline.gemspec +33 -0
- data/config/erb_lint.yml +15 -0
- data/config/pymarkdown.json +21 -0
- data/config/rubocop/baseline.yml +22 -0
- data/config/rubocop/standard-custom.yml +2 -0
- data/config/rubocop/standard-performance.yml +108 -0
- data/config/rubocop/standard-rails.yml +314 -0
- data/config/rubocop/standard.yml +1416 -0
- data/config/rubocop.yml +15 -0
- data/config/ruff.toml +3 -0
- data/config/shellcheck.rc +1 -0
- data/config/yamllint.yml +14 -0
- data/exe/baseline-install +7 -0
- data/lib/baseline/install.rb +43 -0
- data/lib/baseline/version.rb +5 -0
- data/lib/baseline.rb +6 -0
- metadata +131 -0
data/config/rubocop.yml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
plugins:
|
|
2
|
+
- rubocop-performance
|
|
3
|
+
- rubocop-rails
|
|
4
|
+
- standard-custom
|
|
5
|
+
inherit_from:
|
|
6
|
+
- rubocop/standard.yml # standard 1.55.0 — https://github.com/standardrb/standard/blob/main/config/base.yml
|
|
7
|
+
- rubocop/standard-performance.yml # standard-performance 1.9.0 — https://github.com/standardrb/standard-performance/blob/main/config/base.yml
|
|
8
|
+
- rubocop/standard-rails.yml # standard-rails 1.6.0 — https://github.com/standardrb/standard-rails/blob/main/config/base.yml
|
|
9
|
+
- rubocop/standard-custom.yml # standard-custom 1.0.2 — https://github.com/standardrb/standard-custom/blob/main/config/base.yml
|
|
10
|
+
- rubocop/baseline.yml
|
|
11
|
+
AllCops:
|
|
12
|
+
NewCops: disable
|
|
13
|
+
SuggestExtensions: false
|
|
14
|
+
Exclude:
|
|
15
|
+
- 'vendor/**/*'
|
data/config/ruff.toml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
disable=SC1090,SC1091,SC2001,SC2029,SC2088,SC2153,SC2154
|
data/config/yamllint.yml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
extends: default
|
|
2
|
+
rules:
|
|
3
|
+
empty-lines:
|
|
4
|
+
max: 0
|
|
5
|
+
max-start: 0
|
|
6
|
+
max-end: 1
|
|
7
|
+
trailing-spaces: enable
|
|
8
|
+
line-length: disable
|
|
9
|
+
truthy:
|
|
10
|
+
allowed-values: ["true", "false"]
|
|
11
|
+
check-keys: false
|
|
12
|
+
comments:
|
|
13
|
+
min-spaces-from-content: 1
|
|
14
|
+
document-start: disable
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Baseline
|
|
4
|
+
class Install
|
|
5
|
+
STUBS = {
|
|
6
|
+
".rubocop.yml" => <<~YAML,
|
|
7
|
+
inherit_gem:
|
|
8
|
+
rubykatzen-baseline: config/rubocop.yml
|
|
9
|
+
|
|
10
|
+
# Generate project-specific excludes, then uncomment inherit_from below:
|
|
11
|
+
# bundle exec rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 10000
|
|
12
|
+
# inherit_from:
|
|
13
|
+
# - .rubocop_todo.yml
|
|
14
|
+
YAML
|
|
15
|
+
".erb_lint.yml" => <<~YAML
|
|
16
|
+
inherit_gem:
|
|
17
|
+
rubykatzen-baseline: config/erb_lint.yml
|
|
18
|
+
|
|
19
|
+
# Generate .erb_lint_todo.yml, then uncomment inherit_from below:
|
|
20
|
+
# bundle exec erb_lint --enable-all-linters --lint-all
|
|
21
|
+
# inherit_from:
|
|
22
|
+
# - .erb_lint_todo.yml
|
|
23
|
+
YAML
|
|
24
|
+
}.freeze
|
|
25
|
+
|
|
26
|
+
def initialize(root)
|
|
27
|
+
@root = root
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def call
|
|
31
|
+
STUBS.each do |relative_path, content|
|
|
32
|
+
target = File.join(@root, relative_path)
|
|
33
|
+
if File.exist?(target)
|
|
34
|
+
warn "skip #{relative_path} (already exists)"
|
|
35
|
+
next
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
File.write(target, content)
|
|
39
|
+
warn "create #{relative_path}"
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
data/lib/baseline.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rubykatzen-baseline
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.5.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- rubykatzen
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-06-17 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rubocop
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.88'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.88'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rubocop-performance
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rubocop-rails
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: standard-custom
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: erb_lint
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :runtime
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
description: Packages baseline RuboCop and erb_lint configs with runtime dependencies
|
|
84
|
+
for consumer Ruby projects.
|
|
85
|
+
email:
|
|
86
|
+
executables:
|
|
87
|
+
- baseline-install
|
|
88
|
+
extensions: []
|
|
89
|
+
extra_rdoc_files: []
|
|
90
|
+
files:
|
|
91
|
+
- LICENSE
|
|
92
|
+
- baseline.gemspec
|
|
93
|
+
- config/erb_lint.yml
|
|
94
|
+
- config/pymarkdown.json
|
|
95
|
+
- config/rubocop.yml
|
|
96
|
+
- config/rubocop/baseline.yml
|
|
97
|
+
- config/rubocop/standard-custom.yml
|
|
98
|
+
- config/rubocop/standard-performance.yml
|
|
99
|
+
- config/rubocop/standard-rails.yml
|
|
100
|
+
- config/rubocop/standard.yml
|
|
101
|
+
- config/ruff.toml
|
|
102
|
+
- config/shellcheck.rc
|
|
103
|
+
- config/yamllint.yml
|
|
104
|
+
- exe/baseline-install
|
|
105
|
+
- lib/baseline.rb
|
|
106
|
+
- lib/baseline/install.rb
|
|
107
|
+
- lib/baseline/version.rb
|
|
108
|
+
homepage: https://github.com/rubykatzen/baseline
|
|
109
|
+
licenses:
|
|
110
|
+
- MIT
|
|
111
|
+
metadata: {}
|
|
112
|
+
post_install_message:
|
|
113
|
+
rdoc_options: []
|
|
114
|
+
require_paths:
|
|
115
|
+
- lib
|
|
116
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
|
+
requirements:
|
|
118
|
+
- - ">="
|
|
119
|
+
- !ruby/object:Gem::Version
|
|
120
|
+
version: '3.2'
|
|
121
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
|
+
requirements:
|
|
123
|
+
- - ">="
|
|
124
|
+
- !ruby/object:Gem::Version
|
|
125
|
+
version: '0'
|
|
126
|
+
requirements: []
|
|
127
|
+
rubygems_version: 3.4.19
|
|
128
|
+
signing_key:
|
|
129
|
+
specification_version: 4
|
|
130
|
+
summary: Shared RuboCop and erb_lint configs for dupmachine repositories
|
|
131
|
+
test_files: []
|