immosquare-cleaner 0.1.106 → 0.1.107
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/lib/immosquare-cleaner/version.rb +1 -1
- data/lib/tasks/immosquare_cleaner.rake +34 -4
- data/linters/rubocop/cop/custom_cops/style/align_assignments.rb +10 -10
- data/linters/rubocop/cop/custom_cops/style/comment_normalization.rb +28 -28
- data/linters/rubocop-4.0.3.yml +2 -0
- data/linters/rubocop.yml +49 -47
- metadata +21 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 49ce1f4fdb214487423b48e029172786f2a22bf0e3ade391b5ed9989954f8258
|
|
4
|
+
data.tar.gz: 7fc4298ce59fe71cf0097c8c656017ab47692f9f53a7ca513ac66736d694f1d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ecd04effdee9991f4eb109f52338392d3a6001ed74dcb0f9b1457a466bde16b08e961e945af52652e9bf64899dc3ed0e7b18578fe06c420f92e63d332ee61f3
|
|
7
|
+
data.tar.gz: '0608fd215f7aabc829b92359e9ceab1971bcd1b7a2e60ed0e62d22bd5e5c3d982774c61e750fefa5725260197d013522d2329d8725d6a50c45466c86050d8e91'
|
|
@@ -1,6 +1,24 @@
|
|
|
1
|
+
require "parallel"
|
|
2
|
+
require "etc"
|
|
3
|
+
|
|
1
4
|
namespace :immosquare_cleaner do
|
|
2
5
|
##============================================================##
|
|
3
|
-
##
|
|
6
|
+
## Runs immosquare-cleaner across every file of a Rails app to
|
|
7
|
+
## format/lint in bulk, dispatching by extension:
|
|
8
|
+
## RuboCop (.rb), erb_lint + htmlbeautifier (.html.erb),
|
|
9
|
+
## ESLint (.js/.ts/.jsx/.tsx), ImmosquareYaml (locales/*.yml),
|
|
10
|
+
## shfmt (.sh), Prettier (everything else).
|
|
11
|
+
##
|
|
12
|
+
## Useful to normalize a codebase in one shot (onboarding,
|
|
13
|
+
## cleaner version upgrade, large refactor) rather than
|
|
14
|
+
## relying on the per-file Edit/Write hook.
|
|
15
|
+
##
|
|
16
|
+
## Skips generated/non-source folders (asset builds,
|
|
17
|
+
## node_modules, vendor, tmp, log, public, db, test, coverage)
|
|
18
|
+
## and binary/lock files (.lock, .png, .csv, etc.).
|
|
19
|
+
##
|
|
20
|
+
## Parallelized via threads (linters shell out, so the GVL is
|
|
21
|
+
## released). Override with: CLEANER_THREADS=N rake ...
|
|
4
22
|
##============================================================##
|
|
5
23
|
desc "clean files in rails app"
|
|
6
24
|
task :clean_app => :environment do
|
|
@@ -36,11 +54,23 @@ namespace :immosquare_cleaner do
|
|
|
36
54
|
File.directory?(file_path) || file_path.gsub("#{Rails.root}/", "").start_with?(*paths_to_exclude) || file_path.end_with?(*extensions_to_exclude)
|
|
37
55
|
end
|
|
38
56
|
|
|
39
|
-
|
|
57
|
+
total = file_paths.size
|
|
58
|
+
mutex = Mutex.new
|
|
59
|
+
index = 0
|
|
60
|
+
threads = ENV["CLEANER_THREADS"]&.to_i || [Etc.nprocessors, 8].min
|
|
61
|
+
started = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
|
62
|
+
|
|
63
|
+
puts("Cleaning #{total} files with #{threads} threads...")
|
|
40
64
|
|
|
41
|
-
|
|
42
|
-
|
|
65
|
+
Parallel.each(file_paths, :in_threads => threads) do |file_path|
|
|
66
|
+
i = mutex.synchronize { index += 1 }
|
|
67
|
+
puts("#{i}/#{total} - #{file_path}")
|
|
43
68
|
ImmosquareCleaner.clean(file_path)
|
|
44
69
|
end
|
|
70
|
+
|
|
71
|
+
elapsed = Process.clock_gettime(Process::CLOCK_MONOTONIC) - started
|
|
72
|
+
mins = (elapsed / 60).to_i
|
|
73
|
+
secs = (elapsed % 60).round(1)
|
|
74
|
+
puts("Done in #{mins}m #{secs}s (#{total} files, #{threads} threads)")
|
|
45
75
|
end
|
|
46
76
|
end
|
|
@@ -53,7 +53,7 @@ module RuboCop
|
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
##============================================================##
|
|
56
|
-
##
|
|
56
|
+
## For index assignments (listing["key"] = ...)
|
|
57
57
|
##============================================================##
|
|
58
58
|
def on_send(node)
|
|
59
59
|
return unless node.method_name == :[]= && node.arguments.length == 2
|
|
@@ -69,7 +69,7 @@ module RuboCop
|
|
|
69
69
|
private
|
|
70
70
|
|
|
71
71
|
##============================================================##
|
|
72
|
-
##
|
|
72
|
+
## Make sure it's a plain "=" assignment, not >=, <=, =>, etc.
|
|
73
73
|
##============================================================##
|
|
74
74
|
def check_assignment(node)
|
|
75
75
|
return unless assignment_operator?(node)
|
|
@@ -78,16 +78,16 @@ module RuboCop
|
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
##============================================================##
|
|
81
|
-
##
|
|
81
|
+
## Check whether the operator is a plain "=" (not >=, <=, =>, etc.)
|
|
82
82
|
##============================================================##
|
|
83
83
|
def assignment_operator?(node)
|
|
84
84
|
##============================================================##
|
|
85
|
-
##
|
|
85
|
+
## For send nodes (index assignment)
|
|
86
86
|
##============================================================##
|
|
87
87
|
return true if node.respond_to?(:method_name) && node.method_name == :[]=
|
|
88
88
|
|
|
89
89
|
##============================================================##
|
|
90
|
-
##
|
|
90
|
+
## For regular assignments
|
|
91
91
|
##============================================================##
|
|
92
92
|
source = node.source.strip
|
|
93
93
|
return false unless source.include?("=")
|
|
@@ -100,7 +100,7 @@ module RuboCop
|
|
|
100
100
|
end
|
|
101
101
|
|
|
102
102
|
##============================================================##
|
|
103
|
-
##
|
|
103
|
+
## Add an assignment to the current group, or start a new group
|
|
104
104
|
##============================================================##
|
|
105
105
|
def add_to_group(node)
|
|
106
106
|
current_line = node.location.line
|
|
@@ -116,7 +116,7 @@ module RuboCop
|
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
##============================================================##
|
|
119
|
-
##
|
|
119
|
+
## Returns true if the two lines are consecutive (no blank line between them)
|
|
120
120
|
##============================================================##
|
|
121
121
|
def consecutive_lines?(line1, line2)
|
|
122
122
|
gap = line2 - line1 - 1
|
|
@@ -124,7 +124,7 @@ module RuboCop
|
|
|
124
124
|
end
|
|
125
125
|
|
|
126
126
|
##============================================================##
|
|
127
|
-
##
|
|
127
|
+
## Finalize the current group if it contains more than one assignment
|
|
128
128
|
##============================================================##
|
|
129
129
|
def finalize_current_group
|
|
130
130
|
@assignment_groups << @current_group.dup if @current_group.length > 1
|
|
@@ -133,7 +133,7 @@ module RuboCop
|
|
|
133
133
|
end
|
|
134
134
|
|
|
135
135
|
##============================================================##
|
|
136
|
-
##
|
|
136
|
+
## Process every assignment group to check alignment
|
|
137
137
|
##============================================================##
|
|
138
138
|
def process_groups
|
|
139
139
|
@assignment_groups.each do |group|
|
|
@@ -142,7 +142,7 @@ module RuboCop
|
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
##============================================================##
|
|
145
|
-
##
|
|
145
|
+
## Check a group's alignment and correct it if needed
|
|
146
146
|
##============================================================##
|
|
147
147
|
def check_and_correct_alignment(group)
|
|
148
148
|
lefts = group.map {|node| node.source.split("=")[0].to_s.strip.gsub(/\s+/, "").gsub(",", ", ") }
|
|
@@ -14,12 +14,12 @@ module RuboCop
|
|
|
14
14
|
SPACE = " ".freeze
|
|
15
15
|
|
|
16
16
|
##============================================================##
|
|
17
|
-
## Patterns
|
|
18
|
-
## - STRUCTURED_LINE :
|
|
19
|
-
## - INDENTED_LINE : indentation
|
|
20
|
-
## - RAW_LINE :
|
|
21
|
-
## - FENCE_LINE :
|
|
22
|
-
## - USER_SEPARATOR :
|
|
17
|
+
## Patterns detected line by line within a block:
|
|
18
|
+
## - STRUCTURED_LINE : bullets, quotes, numbered lists
|
|
19
|
+
## - INDENTED_LINE : explicit indentation (3+ spaces after ##)
|
|
20
|
+
## - RAW_LINE : line preserved as-is (## | ...)
|
|
21
|
+
## - FENCE_LINE : open/close of a code block (## ```)
|
|
22
|
+
## - USER_SEPARATOR : explicit separator (## ---, ===, ___)
|
|
23
23
|
##============================================================##
|
|
24
24
|
STRUCTURED_LINE = /\A##\s+([-*+>]|\d+[.)])\s/
|
|
25
25
|
INDENTED_LINE = /\A##\s{3,}\S/
|
|
@@ -47,9 +47,9 @@ module RuboCop
|
|
|
47
47
|
private
|
|
48
48
|
|
|
49
49
|
##============================================================##
|
|
50
|
-
##
|
|
51
|
-
##
|
|
52
|
-
##
|
|
50
|
+
## Only process comments that start at the beginning of the
|
|
51
|
+
## line with "##" (not Ruby end-of-line comments).
|
|
52
|
+
## Blocks are runs of contiguous lines.
|
|
53
53
|
##============================================================##
|
|
54
54
|
def find_comment_blocks(comments)
|
|
55
55
|
standalone = comments.select do |comment|
|
|
@@ -67,9 +67,9 @@ module RuboCop
|
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
##============================================================##
|
|
70
|
-
##
|
|
71
|
-
##
|
|
72
|
-
##
|
|
70
|
+
## Wraps the body with BORDER_LINE and indents every line to
|
|
71
|
+
## the original block's column. The replaced range starts at
|
|
72
|
+
## column 0, so the first line must also receive the pad.
|
|
73
73
|
##============================================================##
|
|
74
74
|
def normalize_comment_block(block)
|
|
75
75
|
body = build_body(block)
|
|
@@ -80,15 +80,15 @@ module RuboCop
|
|
|
80
80
|
end
|
|
81
81
|
|
|
82
82
|
##============================================================##
|
|
83
|
-
##
|
|
84
|
-
## -
|
|
85
|
-
## -
|
|
86
|
-
## - fenced code blocks (## ```)→
|
|
87
|
-
## -
|
|
88
|
-
## -
|
|
89
|
-
## -
|
|
90
|
-
## -
|
|
91
|
-
## -
|
|
83
|
+
## Transforms each line of the block:
|
|
84
|
+
## - existing borders → dropped
|
|
85
|
+
## - leading blank lines → dropped (before any content)
|
|
86
|
+
## - fenced code blocks (## ```) → content preserved as-is
|
|
87
|
+
## - raw lines (## | ...) → preserved
|
|
88
|
+
## - lists / 3+ indent → preserved
|
|
89
|
+
## - separators (## ---) → INSIDE_SEPARATOR
|
|
90
|
+
## - bare "##" lines → kept as blank line
|
|
91
|
+
## - normal text → cleaned via #cleaned_line
|
|
92
92
|
##============================================================##
|
|
93
93
|
def build_body(block)
|
|
94
94
|
body = []
|
|
@@ -124,11 +124,11 @@ module RuboCop
|
|
|
124
124
|
end
|
|
125
125
|
|
|
126
126
|
##============================================================##
|
|
127
|
-
##
|
|
128
|
-
## - "### foo" → "## foo" (collapse
|
|
129
|
-
## - "## foo" → "## foo" (
|
|
130
|
-
## NB
|
|
131
|
-
##
|
|
127
|
+
## Cleans up a standard text line:
|
|
128
|
+
## - "### foo" → "## foo" (collapse repeated #)
|
|
129
|
+
## - "## foo" → "## foo" (single space after ##)
|
|
130
|
+
## NB: lines with 3+ intentional spaces are already caught
|
|
131
|
+
## upstream by INDENTED_LINE.
|
|
132
132
|
##============================================================##
|
|
133
133
|
def cleaned_line(text)
|
|
134
134
|
text.sub(/\A##\s*#+\s*(?=\S)/, "## ").sub(/\A##\s+(?=\S)/, "## ")
|
|
@@ -139,8 +139,8 @@ module RuboCop
|
|
|
139
139
|
end
|
|
140
140
|
|
|
141
141
|
##============================================================##
|
|
142
|
-
## Compare
|
|
143
|
-
##
|
|
142
|
+
## Compare lines after stripping: we ignore indentation
|
|
143
|
+
## differences since the range already targets the right column.
|
|
144
144
|
##============================================================##
|
|
145
145
|
def needs_correction?(block, normalized)
|
|
146
146
|
current_lines = block.map {|c| c.text.to_s.strip }
|
data/linters/rubocop-4.0.3.yml
CHANGED
data/linters/rubocop.yml
CHANGED
|
@@ -4,110 +4,112 @@ require:
|
|
|
4
4
|
- rubocop/cop/custom_cops/style/font_awesome_normalization
|
|
5
5
|
- rubocop/cop/custom_cops/style/align_assignments
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# Enable all RuboCop methods and turn caching on for large files
|
|
8
8
|
AllCops:
|
|
9
9
|
NewCops: enable
|
|
10
10
|
EnabledByDefault: false
|
|
11
11
|
UseCache: true
|
|
12
12
|
SuggestExtensions: false
|
|
13
|
-
ActiveSupportExtensionsEnabled: true #
|
|
13
|
+
ActiveSupportExtensionsEnabled: true # Enable ActiveSupport support
|
|
14
14
|
|
|
15
15
|
#################### Metrics ###########################
|
|
16
16
|
Metrics:
|
|
17
|
-
Enabled: false #
|
|
17
|
+
Enabled: false # Disable all metrics
|
|
18
18
|
|
|
19
19
|
#################### Lint ###########################
|
|
20
20
|
Lint/UselessAssignment:
|
|
21
|
-
Enabled: false #
|
|
21
|
+
Enabled: false # Allow unused variables (in .erb files where they may be used in another block, the cop misses it)
|
|
22
22
|
Lint/RescueException:
|
|
23
|
-
Enabled: false #
|
|
23
|
+
Enabled: false # Allow `rescue Exception => e` without forcing StandardError
|
|
24
24
|
Lint/UnusedMethodArgument:
|
|
25
|
-
Enabled: false #
|
|
25
|
+
Enabled: false # Allow defining methods with unused parameters (otherwise the cop renames the param with a leading _ on save while still writing the method)
|
|
26
26
|
|
|
27
27
|
#################### Naming ###########################
|
|
28
28
|
Naming/VariableNumber:
|
|
29
|
-
Enabled: false #
|
|
29
|
+
Enabled: false # Allow names like `administrative_area_level_1`
|
|
30
30
|
Naming/FileName:
|
|
31
|
-
Enabled: false #
|
|
31
|
+
Enabled: false # Allow filenames with dashes (e.g. immosquare-cleaner.rb)
|
|
32
32
|
Naming/MethodParameterName:
|
|
33
|
-
MinNameLength: 1 #
|
|
33
|
+
MinNameLength: 1 # Allow single-character parameter names
|
|
34
34
|
|
|
35
35
|
#################### Layout ###########################
|
|
36
36
|
Layout/LeadingEmptyLines:
|
|
37
|
-
Enabled: false #
|
|
37
|
+
Enabled: false # Allow blank lines at the start of files
|
|
38
38
|
Layout/InitialIndentation:
|
|
39
|
-
Enabled: false #
|
|
39
|
+
Enabled: false # For .erb files, avoid issues at the start of the file
|
|
40
40
|
Layout/TrailingEmptyLines:
|
|
41
|
-
Enabled: false #
|
|
41
|
+
Enabled: false # For .erb files, avoid issues at the end of the file
|
|
42
42
|
Layout/ExtraSpacing:
|
|
43
|
-
Enabled: false #
|
|
43
|
+
Enabled: false # Allow custom whitespace (.erb)
|
|
44
44
|
Layout/LineLength:
|
|
45
|
-
Enabled: false #
|
|
45
|
+
Enabled: false # No max line length
|
|
46
46
|
Layout/TrailingWhitespace:
|
|
47
|
-
Enabled: true #
|
|
47
|
+
Enabled: true # Disallow trailing whitespace
|
|
48
48
|
Layout/EmptyLines:
|
|
49
|
-
Enabled: false #
|
|
49
|
+
Enabled: false # Allow custom blank-line placement
|
|
50
|
+
Layout/LeadingCommentSpace:
|
|
51
|
+
Enabled: false # Conflicts with our `##` convention (borders `##===##`, internal dividers `##---##`) — the cop sees `##` as `#` + `#` and inserts a space
|
|
50
52
|
Layout/SpaceInsideBlockBraces:
|
|
51
|
-
SpaceBeforeBlockParameters: false #
|
|
53
|
+
SpaceBeforeBlockParameters: false # No space at the start of blocks: PitchBlock.all.each {|b| b.save}
|
|
52
54
|
|
|
53
55
|
Layout/EmptyLinesAroundClassBody:
|
|
54
|
-
EnforcedStyle: empty_lines #
|
|
56
|
+
EnforcedStyle: empty_lines # Add a blank line at the start of a class body (controllers)
|
|
55
57
|
Layout/FirstHashElementIndentation:
|
|
56
|
-
EnforcedStyle: consistent #
|
|
58
|
+
EnforcedStyle: consistent # Indent params consistently (very useful in .erb files)
|
|
57
59
|
Layout/ArgumentAlignment:
|
|
58
|
-
EnforcedStyle: with_fixed_indentation #
|
|
60
|
+
EnforcedStyle: with_fixed_indentation # Stack params with fixed indent (very useful in .erb files)
|
|
59
61
|
Layout/HashAlignment:
|
|
60
|
-
EnforcedHashRocketStyle: table #
|
|
62
|
+
EnforcedHashRocketStyle: table # Format hashes by aligning on the longest key
|
|
61
63
|
Layout/MultilineAssignmentLayout:
|
|
62
|
-
EnforcedStyle: same_line #
|
|
64
|
+
EnforcedStyle: same_line # Keep on the same line: classification_id = case ... etc.
|
|
63
65
|
Layout/SpaceInsideHashLiteralBraces:
|
|
64
|
-
EnforcedStyle: no_space #
|
|
66
|
+
EnforcedStyle: no_space # No space inside hash braces: {:a => 1, :b => 2}
|
|
65
67
|
Layout/MultilineMethodCallIndentation:
|
|
66
68
|
EnforcedStyle: indented
|
|
67
69
|
|
|
68
70
|
#################### Style ###########################
|
|
69
71
|
Style/CombinableLoops:
|
|
70
|
-
Enabled: false #
|
|
72
|
+
Enabled: false # Allow combining loops
|
|
71
73
|
Style/SingleArgumentDig:
|
|
72
|
-
Enabled: false #
|
|
74
|
+
Enabled: false # Don't transform single-arg `.dig` into array access — we override `dig` for ActiveRecord in immosquare-extensions
|
|
73
75
|
Style/RedundantBegin:
|
|
74
|
-
Enabled: false #
|
|
76
|
+
Enabled: false # This cop strips `begin` at the start of methods — we want to keep it
|
|
75
77
|
Style/MultilineTernaryOperator:
|
|
76
|
-
Enabled: false #
|
|
78
|
+
Enabled: false # Disallow multiline ternary expressions
|
|
77
79
|
Style/NestedTernaryOperator:
|
|
78
|
-
Enabled: false #
|
|
80
|
+
Enabled: false # Allow nested ternaries: a == 1 ? "a" : (a == 2 ? "b" : "c")
|
|
79
81
|
Style/MultilineIfModifier:
|
|
80
|
-
Enabled: false #
|
|
82
|
+
Enabled: false # Allow `end` at the end of blocks with trailing modifier
|
|
81
83
|
Style/FrozenStringLiteralComment:
|
|
82
|
-
Enabled: false #
|
|
84
|
+
Enabled: false # Don't require `frozen_string_literal: true` — it's the default on Ruby 3.x
|
|
83
85
|
Style/Next:
|
|
84
|
-
Enabled: false #
|
|
86
|
+
Enabled: false # Idea is fine but rewriting `if` to `next` often makes intent harder to read (the `||` of `if` becomes `&&` of `next`)
|
|
85
87
|
Style/Documentation:
|
|
86
|
-
Enabled: false #
|
|
88
|
+
Enabled: false # Don't force class documentation
|
|
87
89
|
Style/IfUnlessModifierOfIfUnless:
|
|
88
|
-
Enabled: false #
|
|
90
|
+
Enabled: false # Allow trailing `if` at the end of an `end`
|
|
89
91
|
Style/NegatedIf:
|
|
90
|
-
Enabled: false #
|
|
92
|
+
Enabled: false # Allow rewriting `if !` as `unless`
|
|
91
93
|
Style/FormatStringToken:
|
|
92
|
-
EnforcedStyle: "template" ##
|
|
94
|
+
EnforcedStyle: "template" ## Use %{my_string} interpolation, not %<my_string>s
|
|
93
95
|
Style/NumericPredicate:
|
|
94
|
-
EnforcedStyle: comparison #
|
|
96
|
+
EnforcedStyle: comparison # No `.zero?` `.negative?` `.positive?`
|
|
95
97
|
Style/StringLiterals:
|
|
96
|
-
EnforcedStyle: double_quotes #
|
|
98
|
+
EnforcedStyle: double_quotes # Double quotes everywhere (strings)
|
|
97
99
|
Style/StringLiteralsInInterpolation:
|
|
98
|
-
EnforcedStyle: double_quotes #
|
|
100
|
+
EnforcedStyle: double_quotes # Double quotes everywhere (interpolation)
|
|
99
101
|
Style/HashSyntax:
|
|
100
|
-
EnforcedStyle: hash_rockets #
|
|
102
|
+
EnforcedStyle: hash_rockets # Use `:key => value`, not `key: value`
|
|
101
103
|
Style/WordArray:
|
|
102
|
-
EnforcedStyle: brackets #
|
|
104
|
+
EnforcedStyle: brackets # Format arrays as ["a", "b", "c"], not %w[a b c]
|
|
103
105
|
Style/SymbolArray:
|
|
104
|
-
EnforcedStyle: brackets #
|
|
106
|
+
EnforcedStyle: brackets # Format arrays as [:a, :b, :c], not %i[a b c]
|
|
105
107
|
Style/RescueModifier:
|
|
106
|
-
Enabled: false #
|
|
108
|
+
Enabled: false # Allow inline rescue modifier (some_method rescue SomeException)
|
|
107
109
|
|
|
108
110
|
#################### OVERWRITE ###########################
|
|
109
111
|
Style/MethodCallWithArgsParentheses:
|
|
110
|
-
Enabled: true #
|
|
112
|
+
Enabled: true # Force parentheses where they help readability
|
|
111
113
|
EnforcedStyle: require_parentheses
|
|
112
114
|
IgnoreMacros: false
|
|
113
115
|
AllowedMethods:
|
|
@@ -211,14 +213,14 @@ Style/MethodCallWithArgsParentheses:
|
|
|
211
213
|
|
|
212
214
|
#################### CUSTOMS ###########################
|
|
213
215
|
CustomCops/Style/CommentNormalization:
|
|
214
|
-
Enabled: true #
|
|
216
|
+
Enabled: true # Force comment normalization
|
|
215
217
|
|
|
216
218
|
CustomCops/Style/FontAwesomeNormalization:
|
|
217
|
-
Enabled: true #
|
|
219
|
+
Enabled: true # Force the long Font Awesome class names
|
|
218
220
|
|
|
219
221
|
CustomCops/Style/AlignAssignments:
|
|
220
|
-
Enabled: false #
|
|
222
|
+
Enabled: false # Force alignment of consecutive assignments
|
|
221
223
|
|
|
222
224
|
#################### GEM ###########################
|
|
223
225
|
Gemspec/RequireMFA:
|
|
224
|
-
Enabled: false #
|
|
226
|
+
Enabled: false # Don't require MFA to push a gem
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: immosquare-cleaner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.107
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- immosquare
|
|
@@ -89,6 +89,26 @@ dependencies:
|
|
|
89
89
|
- - "<="
|
|
90
90
|
- !ruby/object:Gem::Version
|
|
91
91
|
version: '1000.0'
|
|
92
|
+
- !ruby/object:Gem::Dependency
|
|
93
|
+
name: parallel
|
|
94
|
+
requirement: !ruby/object:Gem::Requirement
|
|
95
|
+
requirements:
|
|
96
|
+
- - ">="
|
|
97
|
+
- !ruby/object:Gem::Version
|
|
98
|
+
version: '1.0'
|
|
99
|
+
- - "<="
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: '1000.0'
|
|
102
|
+
type: :runtime
|
|
103
|
+
prerelease: false
|
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
+
requirements:
|
|
106
|
+
- - ">="
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: '1.0'
|
|
109
|
+
- - "<="
|
|
110
|
+
- !ruby/object:Gem::Version
|
|
111
|
+
version: '1000.0'
|
|
92
112
|
- !ruby/object:Gem::Dependency
|
|
93
113
|
name: prism
|
|
94
114
|
requirement: !ruby/object:Gem::Requirement
|