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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9eccbce72faba4409cd870659372cfcc672cbda036f3c8d6c10a50be39ef6aa
4
- data.tar.gz: e87c682be15dc425e5244deb8fac15a26f8f8ca48ef16b70bab475b6d2ebcf4c
3
+ metadata.gz: 49ce1f4fdb214487423b48e029172786f2a22bf0e3ade391b5ed9989954f8258
4
+ data.tar.gz: 7fc4298ce59fe71cf0097c8c656017ab47692f9f53a7ca513ac66736d694f1d3
5
5
  SHA512:
6
- metadata.gz: b51fbc1471276ec2ed56c37d0f819b36cc8f494e48afec323d7d00a1732c27bed8c5619a5c2a2780c20ee8624095e574dde692781d1b7f674cdb944f74c19b64
7
- data.tar.gz: 4133648ea30b37094c6324e1b062c87d8b788e5e7296af113cb865463b0ee247a8f84ad8fabbbe9556fecc5ffa59a9c63772b5ee0c6651a1e4c638aebd0abd03
6
+ metadata.gz: 6ecd04effdee9991f4eb109f52338392d3a6001ed74dcb0f9b1457a466bde16b08e961e945af52652e9bf64899dc3ed0e7b18578fe06c420f92e63d332ee61f3
7
+ data.tar.gz: '0608fd215f7aabc829b92359e9ceab1971bcd1b7a2e60ed0e62d22bd5e5c3d982774c61e750fefa5725260197d013522d2329d8725d6a50c45466c86050d8e91'
@@ -1,3 +1,3 @@
1
1
  module ImmosquareCleaner
2
- VERSION = "0.1.106".freeze
2
+ VERSION = "0.1.107".freeze
3
3
  end
@@ -1,6 +1,24 @@
1
+ require "parallel"
2
+ require "etc"
3
+
1
4
  namespace :immosquare_cleaner do
2
5
  ##============================================================##
3
- ## Function to clean files in rails app
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
- puts("Cleaning files...")
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
- file_paths.each.with_index do |file_path, index|
42
- puts("#{index + 1}/#{file_paths.size} - #{file_path}")
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
- ## Pour les assignments d'index (listing["key"] = ...)
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
- ## Vérifier que c'est bien un assignment simple (=) et pas (>=, <=, =>, etc.)
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
- ## Vérifier si l'opérateur est un simple "=" (pas >=, <=, =>, etc.)
81
+ ## Check whether the operator is a plain "=" (not >=, <=, =>, etc.)
82
82
  ##============================================================##
83
83
  def assignment_operator?(node)
84
84
  ##============================================================##
85
- ## Pour les send nodes (index assignment)
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
- ## Pour les assignments classiques
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
- ## Ajouter un assignment au groupe courant ou créer un nouveau groupe
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
- ## Retourne true si les deux lignes sont consécutives (pas de ligne vide entre elles)
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
- ## Finaliser le groupe courant s'il contient plus d'un assignment
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
- ## Traiter tous les groupes d'assignments pour vérifier l'alignement
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
- ## Vérifier l'alignement d'un groupe et corriger si nécessaire
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 détectés ligne par ligne dans un bloc :
18
- ## - STRUCTURED_LINE : puces, citations, listes numérotées
19
- ## - INDENTED_LINE : indentation explicite (3+ espaces après ##)
20
- ## - RAW_LINE : ligne préservée telle quelle (## | ...)
21
- ## - FENCE_LINE : ouverture/fermeture d'un bloc de code (## ```)
22
- ## - USER_SEPARATOR : séparateur explicite (## ---, ===, ___)
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
- ## On ne traite que les commentaires qui commencent en début de
51
- ## ligne par "##" (pas les commentaires de fin de ligne ruby).
52
- ## Les blocs sont des suites de lignes contiguës.
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
- ## Encadre le body avec BORDER_LINE et indente toutes les lignes
71
- ## sur la colonne du bloc original. Le range remplacé démarre en
72
- ## colonne 0, donc la première ligne doit aussi recevoir le pad.
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
- ## Transforme chaque ligne du bloc :
84
- ## - bordures existantes ignorées
85
- ## - lignes vides en tête ignorées (avant tout contenu)
86
- ## - fenced code blocks (## ```)→ contenu préservé tel quel
87
- ## - lignes "raw" (## | ...) préservées
88
- ## - listes / indentation 3+ préservées
89
- ## - séparateurs (## ---) → INSIDE_SEPARATOR
90
- ## - lignes "##" seules conservées comme ligne vide
91
- ## - texte normal nettoyé via #cleaned_line
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
- ## Nettoie une ligne de texte standard :
128
- ## - "### foo" → "## foo" (collapse les # répétés)
129
- ## - "## foo" → "## foo" (un seul espace après ##)
130
- ## NB : les lignes avec 3+ espaces volontaires sont déjà
131
- ## interceptées en amont par INDENTED_LINE.
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 en strippant chaque ligne : on ignore les différences
143
- ## d'indentation puisque le range cible déjà la bonne colonne.
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 }
@@ -40,6 +40,8 @@ Layout/TrailingWhitespace:
40
40
  Enabled: true
41
41
  Layout/EmptyLines:
42
42
  Enabled: false
43
+ Layout/LeadingCommentSpace:
44
+ Enabled: false
43
45
  Layout/SpaceInsideBlockBraces:
44
46
  SpaceBeforeBlockParameters: false
45
47
  Layout/EmptyLinesAroundClassBody:
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
- # Pour activer toutes les méthodes de Rubocop et activer le cache pour les gros fichiers
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 # Pour activer le support de ActiveSupport
13
+ ActiveSupportExtensionsEnabled: true # Enable ActiveSupport support
14
14
 
15
15
  #################### Metrics ###########################
16
16
  Metrics:
17
- Enabled: false # On désactive tous les métrics
17
+ Enabled: false # Disable all metrics
18
18
 
19
19
  #################### Lint ###########################
20
20
  Lint/UselessAssignment:
21
- Enabled: false # Pour pouvoir utiliser des variables que l'on n'utlise pas...(dans les fichiers .erb si on les utilises dans un autre bloc, il ne détecte pas..)
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 # On veut pouvour utiliser rescue Exception => e dans devoir mettre StandardError
23
+ Enabled: false # Allow `rescue Exception => e` without forcing StandardError
24
24
  Lint/UnusedMethodArgument:
25
- Enabled: false # On veut pouvoir créer des fonctions sans que tous les paramètes soient utlisés dans la fonction... Utilises quand on est en train d'écrire la fonction et que l'on sauvegarde.. SInon cela cahnge le nom du paramètre avec un _devant
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 # On veut pouvour utiliser administrative_area_level_1 avec cette synthase
29
+ Enabled: false # Allow names like `administrative_area_level_1`
30
30
  Naming/FileName:
31
- Enabled: false # on veut pouvoir faire des nom de fichier avec des - immosquare-cleaner.rb
31
+ Enabled: false # Allow filenames with dashes (e.g. immosquare-cleaner.rb)
32
32
  Naming/MethodParameterName:
33
- MinNameLength: 1 # On veut pouvoir utiliser des noms de paramètres de 1 caractère
33
+ MinNameLength: 1 # Allow single-character parameter names
34
34
 
35
35
  #################### Layout ###########################
36
36
  Layout/LeadingEmptyLines:
37
- Enabled: false # Pour pouvoir utliser des lignes vides au débur des fichiers ()
37
+ Enabled: false # Allow blank lines at the start of files
38
38
  Layout/InitialIndentation:
39
- Enabled: false # Pour les fichiers .erb pour ne pas faire de pb au débur du fichier
39
+ Enabled: false # For .erb files, avoid issues at the start of the file
40
40
  Layout/TrailingEmptyLines:
41
- Enabled: false # Pour les fichiers .erb pour ne pas faire de pb au débur du fichier
41
+ Enabled: false # For .erb files, avoid issues at the end of the file
42
42
  Layout/ExtraSpacing:
43
- Enabled: false # Pour ne permettre de mettre les espaces que l'on veut (.erb)
43
+ Enabled: false # Allow custom whitespace (.erb)
44
44
  Layout/LineLength:
45
- Enabled: false # Pour ne limiter le nombre de caractères par ligne
45
+ Enabled: false # No max line length
46
46
  Layout/TrailingWhitespace:
47
- Enabled: true # On ne veut pas de white spaces en fin de ligne
47
+ Enabled: true # Disallow trailing whitespace
48
48
  Layout/EmptyLines:
49
- Enabled: false # On veut pouvoir mettre des lignes blanches comme on veut
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 # On ne veut pas d'espace au début des block PitchBlock.all.each {|b| b.save}
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 # Pour ajouter une ligne vide au débout d'une classe (controller)
56
+ EnforcedStyle: empty_lines # Add a blank line at the start of a class body (controllers)
55
57
  Layout/FirstHashElementIndentation:
56
- EnforcedStyle: consistent # On indente les paramètres avec un tab (très utiles dans les fichiers .erb)
58
+ EnforcedStyle: consistent # Indent params consistently (very useful in .erb files)
57
59
  Layout/ArgumentAlignment:
58
- EnforcedStyle: with_fixed_indentation # On indente les paramètres les un end dessous des autres (très utlises dans les fichiers .erb)
60
+ EnforcedStyle: with_fixed_indentation # Stack params with fixed indent (very useful in .erb files)
59
61
  Layout/HashAlignment:
60
- EnforcedHashRocketStyle: table # Pour formater les hashs sur le nom le plus long
62
+ EnforcedHashRocketStyle: table # Format hashes by aligning on the longest key
61
63
  Layout/MultilineAssignmentLayout:
62
- EnforcedStyle: same_line # Pour Garder sur le même ligne les ? classification_id = case etc
64
+ EnforcedStyle: same_line # Keep on the same line: classification_id = case ... etc.
63
65
  Layout/SpaceInsideHashLiteralBraces:
64
- EnforcedStyle: no_space # On ne veut pas d'espace au début des braces {:a => 1, :b => 2}
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 # On veut pouvoir combiner les loops
72
+ Enabled: false # Allow combining loops
71
73
  Style/SingleArgumentDig:
72
- Enabled: false # On ne veut pas transformer les .dig de 1 argument en array car on a fait un override de dig pour ajouter dig sur les active record dans le gem immosquare-extensions
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 # Cette méthode retire les begin au début des méthodes
76
+ Enabled: false # This cop strips `begin` at the start of methods — we want to keep it
75
77
  Style/MultilineTernaryOperator:
76
- Enabled: false # On ne veut pas des mutlilines sur les ternary expressions.
78
+ Enabled: false # Disallow multiline ternary expressions
77
79
  Style/NestedTernaryOperator:
78
- Enabled: false # On veut autoriser les nested ternary expressions : a == 1 ? "a" : (a == 2 ? "b" : "c)
80
+ Enabled: false # Allow nested ternaries: a == 1 ? "a" : (a == 2 ? "b" : "c")
79
81
  Style/MultilineIfModifier:
80
- Enabled: false # On veut pouvoir mettre des ends à la fin des blocs
82
+ Enabled: false # Allow `end` at the end of blocks with trailing modifier
81
83
  Style/FrozenStringLiteralComment:
82
- Enabled: false # On ne veut pas mettre frozen_string_literal: true en haut des fichiers car c'est par défault sur Ruby.3x
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 # L'idée est bonne de vouloir changer en next si on a juste un if... mais parfois c'est plus dur à comprendre ce que l'on voulait faire... car souvent les || du if sont des && dans le next
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 # On ne veut pas être obligé de mettre une documentation
88
+ Enabled: false # Don't force class documentation
87
89
  Style/IfUnlessModifierOfIfUnless:
88
- Enabled: false # On veut pourvoir mettre un if à la fin de end
90
+ Enabled: false # Allow trailing `if` at the end of an `end`
89
91
  Style/NegatedIf:
90
- Enabled: false # On veut remplacer les if ! par des unless
92
+ Enabled: false # Allow rewriting `if !` as `unless`
91
93
  Style/FormatStringToken:
92
- EnforcedStyle: "template" ## On veut les interpolation avec le format %{my_string} et avec avec %<my_string>s
94
+ EnforcedStyle: "template" ## Use %{my_string} interpolation, not %<my_string>s
93
95
  Style/NumericPredicate:
94
- EnforcedStyle: comparison # On ne veut pas des .zero? .negative? .positif?
96
+ EnforcedStyle: comparison # No `.zero?` `.negative?` `.positive?`
95
97
  Style/StringLiterals:
96
- EnforcedStyle: double_quotes # Pour utiliser les doubles quotes partout (string)
98
+ EnforcedStyle: double_quotes # Double quotes everywhere (strings)
97
99
  Style/StringLiteralsInInterpolation:
98
- EnforcedStyle: double_quotes # Pour utiliser les doubles quotes partout (interpolation)
100
+ EnforcedStyle: double_quotes # Double quotes everywhere (interpolation)
99
101
  Style/HashSyntax:
100
- EnforcedStyle: hash_rockets # Pour utiliser la syntax :key => value plutôt que key: value
102
+ EnforcedStyle: hash_rockets # Use `:key => value`, not `key: value`
101
103
  Style/WordArray:
102
- EnforcedStyle: brackets # Pour formater les arrays de la forme ["a", "b", "c] et pas %w[a b c]
104
+ EnforcedStyle: brackets # Format arrays as ["a", "b", "c"], not %w[a b c]
103
105
  Style/SymbolArray:
104
- EnforcedStyle: brackets # Pour formater les arrays de la forme [:a, :b, :c] et pas %i[a b c]
106
+ EnforcedStyle: brackets # Format arrays as [:a, :b, :c], not %i[a b c]
105
107
  Style/RescueModifier:
106
- Enabled: false # On veut pouvoir utiliser rescue modifier inline (some_method rescue SomeException)
108
+ Enabled: false # Allow inline rescue modifier (some_method rescue SomeException)
107
109
 
108
110
  #################### OVERWRITE ###########################
109
111
  Style/MethodCallWithArgsParentheses:
110
- Enabled: true # On veut forcer les parenthèses où elles sont utilises pour rendre le code plus propre
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 # On veut forcer la normalisation des commentaires
216
+ Enabled: true # Force comment normalization
215
217
 
216
218
  CustomCops/Style/FontAwesomeNormalization:
217
- Enabled: true # On veut forcer l'utilisation du nom complet de la font awesome
219
+ Enabled: true # Force the long Font Awesome class names
218
220
 
219
221
  CustomCops/Style/AlignAssignments:
220
- Enabled: false # On veut forcer l'alignement des assignations consécutives
222
+ Enabled: false # Force alignment of consecutive assignments
221
223
 
222
224
  #################### GEM ###########################
223
225
  Gemspec/RequireMFA:
224
- Enabled: false # On ne veut pas obliger le MFA pour pusher un gem
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.106
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