immosquare-cleaner 0.1.73 → 0.1.75
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/immosquare-cleaner.rb +15 -0
- data/linters/rubocop-3.4.1.yml +2 -2
- data/linters/rubocop.yml +1 -1
- metadata +1 -2
- data/linters/erb-lint-3.2.6.yml +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 969ab498986c59a2c92a63cfb84c338dec84269688eb8ff5d18fadda3edc3615
|
4
|
+
data.tar.gz: b6d54676b6acdf359f1eeb6cffdcc7ebd39e11dad6504304db102085ba2ab01a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de65dff9503382b33efaff275354650aa569d36d99a80f60cecb18a63df2cc0ed557714101833dc236882eb76481ef2e8cc6658644b32140ce33cf2e70efb9a1
|
7
|
+
data.tar.gz: c1388e7a5109a04bb5c22bfed7aa14c0d99e41507369ab2a09ae3048a1f1ba82dc33d05d23bc80a1cff152c24b708d386ef7f8d7a81c4248273b273a39aa14fc
|
data/lib/immosquare-cleaner.rb
CHANGED
@@ -190,6 +190,21 @@ module ImmosquareCleaner
|
|
190
190
|
File.write(file_path, formatted_md)
|
191
191
|
File.normalize_last_line(file_path)
|
192
192
|
|
193
|
+
##============================================================##
|
194
|
+
## Shell files (.sh)
|
195
|
+
## ---------
|
196
|
+
## Uses shfmt to format shell scripts with 2-space indentation
|
197
|
+
## Checks if shfmt is available before processing
|
198
|
+
##============================================================##
|
199
|
+
elsif file_path.end_with?(".sh")
|
200
|
+
if system("which shfmt > /dev/null 2>&1")
|
201
|
+
cmds = ["shfmt -i 2 -w \"#{file_path}\""]
|
202
|
+
launch_cmds(cmds)
|
203
|
+
File.normalize_last_line(file_path)
|
204
|
+
else
|
205
|
+
puts "ERROR: shfmt is not installed. Please install it with: brew install shfmt"
|
206
|
+
end
|
207
|
+
|
193
208
|
##============================================================##
|
194
209
|
## Autres formats
|
195
210
|
##============================================================##
|
data/linters/rubocop-3.4.1.yml
CHANGED
@@ -92,6 +92,8 @@ Style/WordArray:
|
|
92
92
|
EnforcedStyle: brackets
|
93
93
|
Style/SymbolArray:
|
94
94
|
EnforcedStyle: brackets
|
95
|
+
Style/RescueModifier:
|
96
|
+
Enabled: false
|
95
97
|
Style/MethodCallWithArgsParentheses:
|
96
98
|
Enabled: true
|
97
99
|
CustomCops/Style/CommentNormalization:
|
@@ -99,8 +101,6 @@ CustomCops/Style/CommentNormalization:
|
|
99
101
|
CustomCops/Style/FontAwesomeNormalization:
|
100
102
|
Enabled: true
|
101
103
|
CustomCops/Style/AlignAssignments:
|
102
|
-
Enabled: true
|
103
|
-
Layout/SpaceAroundOperators:
|
104
104
|
Enabled: false
|
105
105
|
Gemspec/RequireMFA:
|
106
106
|
Enabled: false
|
data/linters/rubocop.yml
CHANGED
@@ -117,7 +117,7 @@ CustomCops/Style/FontAwesomeNormalization:
|
|
117
117
|
Enabled: true # On veut forcer l'utilisation du nom complet de la font awesome
|
118
118
|
|
119
119
|
CustomCops/Style/AlignAssignments:
|
120
|
-
Enabled:
|
120
|
+
Enabled: false # On veut forcer l'alignement des assignations consécutives
|
121
121
|
|
122
122
|
#################### GEM ###########################
|
123
123
|
Gemspec/RequireMFA:
|
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.75
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- immosquare
|
@@ -146,7 +146,6 @@ files:
|
|
146
146
|
- lib/immosquare-cleaner/railtie.rb
|
147
147
|
- lib/immosquare-cleaner/version.rb
|
148
148
|
- lib/tasks/immosquare_cleaner.rake
|
149
|
-
- linters/erb-lint-3.2.6.yml
|
150
149
|
- linters/erb-lint-3.4.1.yml
|
151
150
|
- linters/erb-lint.yml
|
152
151
|
- linters/eslint.config.mjs
|
data/linters/erb-lint-3.2.6.yml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
---
|
2
|
-
EnableDefaultLinters: true
|
3
|
-
linters:
|
4
|
-
NoJavascriptTagHelper:
|
5
|
-
enabled: false
|
6
|
-
SpaceInHtmlTag:
|
7
|
-
enabled: false
|
8
|
-
Rubocop:
|
9
|
-
enabled: true
|
10
|
-
rubocop_config:
|
11
|
-
inherit_from:
|
12
|
-
- linters/rubocop-3.2.6.yml
|
13
|
-
Layout/TrailingWhitespace:
|
14
|
-
Enabled: false
|