theme-check 0.2.0 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +33 -0
- data/CONTRIBUTING.md +2 -0
- data/README.md +45 -2
- data/RELEASING.md +41 -0
- data/Rakefile +24 -4
- data/config/default.yml +16 -0
- data/data/shopify_liquid/plus_objects.yml +15 -0
- data/dev.yml +2 -0
- data/lib/theme_check.rb +5 -0
- data/lib/theme_check/analyzer.rb +0 -6
- data/lib/theme_check/check.rb +11 -0
- data/lib/theme_check/checks.rb +10 -0
- data/lib/theme_check/checks/missing_enable_comment.rb +31 -0
- data/lib/theme_check/checks/parser_blocking_javascript.rb +55 -0
- data/lib/theme_check/checks/space_inside_braces.rb +1 -0
- data/lib/theme_check/checks/template_length.rb +11 -3
- data/lib/theme_check/checks/undefined_object.rb +27 -6
- data/lib/theme_check/checks/unused_assign.rb +4 -3
- data/lib/theme_check/checks/valid_html_translation.rb +2 -2
- data/lib/theme_check/cli.rb +9 -1
- data/lib/theme_check/config.rb +95 -43
- data/lib/theme_check/corrector.rb +0 -4
- data/lib/theme_check/disabled_checks.rb +77 -0
- data/lib/theme_check/file_system_storage.rb +51 -0
- data/lib/theme_check/in_memory_storage.rb +37 -0
- data/lib/theme_check/json_file.rb +12 -10
- data/lib/theme_check/language_server/handler.rb +38 -13
- data/lib/theme_check/language_server/server.rb +2 -2
- data/lib/theme_check/offense.rb +3 -1
- data/lib/theme_check/shopify_liquid/object.rb +6 -0
- data/lib/theme_check/storage.rb +25 -0
- data/lib/theme_check/template.rb +26 -21
- data/lib/theme_check/theme.rb +14 -9
- data/lib/theme_check/version.rb +1 -1
- data/lib/theme_check/visitor.rb +14 -3
- data/packaging/homebrew/theme_check.base.rb +10 -6
- metadata +11 -2
@@ -61,12 +61,16 @@ class ThemeCheck < Formula
|
|
61
61
|
ENV['PATH'] = ENV['PATH'].sub(HOMEBREW_SHIMS_PATH.to_s, '/usr/local/bin')
|
62
62
|
end
|
63
63
|
|
64
|
-
system(
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
64
|
+
system(
|
65
|
+
"#{ruby_bin}/gem",
|
66
|
+
"install",
|
67
|
+
cached_download,
|
68
|
+
"--no-document",
|
69
|
+
"--no-wrapper",
|
70
|
+
"--no-user-install",
|
71
|
+
"--install-dir", prefix,
|
72
|
+
"--bindir", bin
|
73
|
+
)
|
70
74
|
|
71
75
|
raise "gem install 'theme-check' failed with status #{$CHILD_STATUS.exitstatus}" unless $CHILD_STATUS.success?
|
72
76
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: theme-check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marc-André Cournoyer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: liquid
|
@@ -65,18 +65,21 @@ files:
|
|
65
65
|
- ".github/workflows/theme-check.yml"
|
66
66
|
- ".gitignore"
|
67
67
|
- ".rubocop.yml"
|
68
|
+
- CHANGELOG.md
|
68
69
|
- CODE_OF_CONDUCT.md
|
69
70
|
- CONTRIBUTING.md
|
70
71
|
- Gemfile
|
71
72
|
- Guardfile
|
72
73
|
- LICENSE.md
|
73
74
|
- README.md
|
75
|
+
- RELEASING.md
|
74
76
|
- Rakefile
|
75
77
|
- bin/liquid-server
|
76
78
|
- config/default.yml
|
77
79
|
- data/shopify_liquid/deprecated_filters.yml
|
78
80
|
- data/shopify_liquid/filters.yml
|
79
81
|
- data/shopify_liquid/objects.yml
|
82
|
+
- data/shopify_liquid/plus_objects.yml
|
80
83
|
- dev.yml
|
81
84
|
- docs/preview.png
|
82
85
|
- exe/theme-check
|
@@ -91,9 +94,11 @@ files:
|
|
91
94
|
- lib/theme_check/checks/liquid_tag.rb
|
92
95
|
- lib/theme_check/checks/matching_schema_translations.rb
|
93
96
|
- lib/theme_check/checks/matching_translations.rb
|
97
|
+
- lib/theme_check/checks/missing_enable_comment.rb
|
94
98
|
- lib/theme_check/checks/missing_required_template_files.rb
|
95
99
|
- lib/theme_check/checks/missing_template.rb
|
96
100
|
- lib/theme_check/checks/nested_snippet.rb
|
101
|
+
- lib/theme_check/checks/parser_blocking_javascript.rb
|
97
102
|
- lib/theme_check/checks/required_directories.rb
|
98
103
|
- lib/theme_check/checks/required_layout_theme_object.rb
|
99
104
|
- lib/theme_check/checks/space_inside_braces.rb
|
@@ -111,6 +116,9 @@ files:
|
|
111
116
|
- lib/theme_check/cli.rb
|
112
117
|
- lib/theme_check/config.rb
|
113
118
|
- lib/theme_check/corrector.rb
|
119
|
+
- lib/theme_check/disabled_checks.rb
|
120
|
+
- lib/theme_check/file_system_storage.rb
|
121
|
+
- lib/theme_check/in_memory_storage.rb
|
114
122
|
- lib/theme_check/json_check.rb
|
115
123
|
- lib/theme_check/json_file.rb
|
116
124
|
- lib/theme_check/json_helpers.rb
|
@@ -128,6 +136,7 @@ files:
|
|
128
136
|
- lib/theme_check/shopify_liquid/deprecated_filter.rb
|
129
137
|
- lib/theme_check/shopify_liquid/filter.rb
|
130
138
|
- lib/theme_check/shopify_liquid/object.rb
|
139
|
+
- lib/theme_check/storage.rb
|
131
140
|
- lib/theme_check/tags.rb
|
132
141
|
- lib/theme_check/template.rb
|
133
142
|
- lib/theme_check/theme.rb
|