theme-check 0.2.0 → 0.3.3

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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -0
  3. data/CHANGELOG.md +33 -0
  4. data/CONTRIBUTING.md +2 -0
  5. data/README.md +45 -2
  6. data/RELEASING.md +41 -0
  7. data/Rakefile +24 -4
  8. data/config/default.yml +16 -0
  9. data/data/shopify_liquid/plus_objects.yml +15 -0
  10. data/dev.yml +2 -0
  11. data/lib/theme_check.rb +5 -0
  12. data/lib/theme_check/analyzer.rb +0 -6
  13. data/lib/theme_check/check.rb +11 -0
  14. data/lib/theme_check/checks.rb +10 -0
  15. data/lib/theme_check/checks/missing_enable_comment.rb +31 -0
  16. data/lib/theme_check/checks/parser_blocking_javascript.rb +55 -0
  17. data/lib/theme_check/checks/space_inside_braces.rb +1 -0
  18. data/lib/theme_check/checks/template_length.rb +11 -3
  19. data/lib/theme_check/checks/undefined_object.rb +27 -6
  20. data/lib/theme_check/checks/unused_assign.rb +4 -3
  21. data/lib/theme_check/checks/valid_html_translation.rb +2 -2
  22. data/lib/theme_check/cli.rb +9 -1
  23. data/lib/theme_check/config.rb +95 -43
  24. data/lib/theme_check/corrector.rb +0 -4
  25. data/lib/theme_check/disabled_checks.rb +77 -0
  26. data/lib/theme_check/file_system_storage.rb +51 -0
  27. data/lib/theme_check/in_memory_storage.rb +37 -0
  28. data/lib/theme_check/json_file.rb +12 -10
  29. data/lib/theme_check/language_server/handler.rb +38 -13
  30. data/lib/theme_check/language_server/server.rb +2 -2
  31. data/lib/theme_check/offense.rb +3 -1
  32. data/lib/theme_check/shopify_liquid/object.rb +6 -0
  33. data/lib/theme_check/storage.rb +25 -0
  34. data/lib/theme_check/template.rb +26 -21
  35. data/lib/theme_check/theme.rb +14 -9
  36. data/lib/theme_check/version.rb +1 -1
  37. data/lib/theme_check/visitor.rb +14 -3
  38. data/packaging/homebrew/theme_check.base.rb +10 -6
  39. 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("#{ruby_bin}/gem", "install", cached_download,
65
- "--no-document",
66
- "--no-wrapper",
67
- "--no-user-install",
68
- "--install-dir", prefix,
69
- "--bindir", bin)
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.2.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-01-20 00:00:00.000000000 Z
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