platformos-check 0.4.3 → 0.4.5

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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/Makefile +2 -2
  4. data/README.md +1 -1
  5. data/build/windows/Gemfile +5 -0
  6. data/build/windows/README.md +15 -0
  7. data/build/windows/build.sh +15 -0
  8. data/build/windows/lsp.exe +0 -0
  9. data/build/windows/run.rb +6 -0
  10. data/config/default.yml +4 -0
  11. data/data/platformos_liquid/documentation/filters.json +1 -1
  12. data/data/platformos_liquid/documentation/latest.json +1 -1
  13. data/docker/lsp.Dockerfile +3 -3
  14. data/docs/checks/form_action.md +56 -0
  15. data/lib/platformos_check/checks/form_action.rb +18 -0
  16. data/lib/platformos_check/checks/unused_assign.rb +10 -2
  17. data/lib/platformos_check/graphql_file.rb +8 -0
  18. data/lib/platformos_check/graphql_traverser.rb +53 -0
  19. data/lib/platformos_check/in_memory_storage.rb +4 -0
  20. data/lib/platformos_check/language_server/completion_providers/object_attribute_completion_provider.rb +60 -11
  21. data/lib/platformos_check/language_server/variable_lookup_finder/assignments_finder/node_handler.rb +1 -21
  22. data/lib/platformos_check/language_server/variable_lookup_finder/assignments_finder/scope.rb +19 -2
  23. data/lib/platformos_check/language_server/variable_lookup_finder/constants.rb +2 -0
  24. data/lib/platformos_check/language_server/variable_lookup_finder/potential_lookup.rb +1 -1
  25. data/lib/platformos_check/language_server/variable_lookup_finder.rb +74 -4
  26. data/lib/platformos_check/platformos_liquid/source_index/filter_entry.rb +3 -1
  27. data/lib/platformos_check/tags/log.rb +4 -0
  28. data/lib/platformos_check/tags/return.rb +4 -0
  29. data/lib/platformos_check/version.rb +1 -1
  30. data/lib/platformos_check.rb +1 -0
  31. metadata +11 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f12754f0e3326691fee2d9617ccf751a81081cbd70f96a3d28947cf11891a226
4
- data.tar.gz: 98ac7d17842ab1d83695a4149b8e899a2a23141e15d9059c76f5f8822d385938
3
+ metadata.gz: e25de2efbace27cbcb87f0166520a416c0a275dccd641524a3f3ea1b95190779
4
+ data.tar.gz: d4bc78729da09cb589caa3472e01c4735161d454b697560a894877073d21398e
5
5
  SHA512:
6
- metadata.gz: b16b77525b11cf49605c930eda3d4e8e09afac0eea51600361b961075c580a599059a559853b70002fd83ee1806d9b9b748f78433d42c1e69bd3eaee0a84ed03
7
- data.tar.gz: 584f000e09cac687570ed8688a8a30a7296f87dc14d1fbb44bc4dd616ae71ed6fa0cd9cfee11ee755019c82b5ffd33fcb15218f76a9941eed691cc539e69d97b
6
+ metadata.gz: 5dd2688e9b917dc3af698bcbf135bafc016bbfba8d24c46bd62528315d594322cf186913cbd6319a8d9275f8357a5d2d8067b542bd5fb90828532556464e4237
7
+ data.tar.gz: b1308c97e7721df699c423e9c1e111fee82e0bd31e79c8b55a1300baf5547fe115c35a9435ed16e5e2c68c825b230a6b710aba225d32f62a1ea3bee47a2204bd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ v0.4.5 / 2023-12-04
2
+ ==================
3
+
4
+ * Add FormAction check
5
+
6
+ v0.4.4 / 2023-12-04
7
+ ==================
8
+
9
+ * Fix displaying description for filters
10
+
1
11
  v0.4.3 / 2023-09-25
2
12
  ==================
3
13
 
data/Makefile CHANGED
@@ -2,13 +2,13 @@ IMAGE_NAMES := lsp check
2
2
  BUILD_TARGETS := $(patsubst %,build-%,$(IMAGE_NAMES))
3
3
  PUSH_TARGETS := $(patsubst %,push-%,$(IMAGE_NAMES))
4
4
 
5
- VERSION=0.0.1
5
+ VERSION=$(shell ruby -r ./lib/platformos_check/version.rb -e "puts PlatformosCheck::VERSION")
6
6
 
7
7
  IMAGE_NAME=platformos/platformos
8
8
 
9
9
  build: $(BUILD_TARGETS)
10
10
  build-%:
11
- docker build -t ${IMAGE_NAME}-$*:${VERSION} -f docker/$*.Dockerfile .
11
+ docker build --build-arg VERSION=${VERSION} -t ${IMAGE_NAME}-$*:${VERSION} -f docker/$*.Dockerfile .
12
12
  docker tag ${IMAGE_NAME}-$*:${VERSION} ${IMAGE_NAME}-$*:latest
13
13
 
14
14
  push: $(PUSH_TARGETS)
data/README.md CHANGED
@@ -80,7 +80,7 @@ exec docker run -i \
80
80
  -e PLATFORMOS_CHECK_DEBUG_LOG_FILE=$LOG_FILE \
81
81
  $IMAGE_NAME $@
82
82
  ```
83
- This script will automatically download the latest Docker image and initiate a language server. Visual Studio Code (VSC) manages this process automatically. However, you can run the script for verification if needed."
83
+ This script will automatically download the latest Docker image and initiate a language server. Visual Studio Code (VSC) manages this process automatically. However, you can run the script for verification if needed.
84
84
 
85
85
  #### Troubleshooting
86
86
 
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "platformos-check", "~> 0.4.3"
@@ -0,0 +1,15 @@
1
+ # Info
2
+
3
+ This allow you to pack lsp server into one exe file without any dependencies.
4
+
5
+ ## Building exe
6
+
7
+ - To build exe file you need windows
8
+ - install ruby 3.2 installed(https://rubyinstaller.org/)
9
+ - install `ocran` gem `gem install ocran`
10
+ - copy this project
11
+ - run `bundle install`
12
+ - run in bash cmd `build.sh` it will generate `lsp.exe` file.
13
+
14
+
15
+ #TODO: create github action for building exe file https://github.com/ruby/setup-ruby
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env sh
2
+
3
+ ocran run.rb --output lsp.exe --add-all-core --gemfile ./Gemfile --no-dep-run --gem-full --gem-full=platformos-check --console \
4
+ --gem-file /c/Ruby32-x64/bin/etc/ssl \
5
+ --dll ruby_builtin_dlls/libyaml-0-2.dll \
6
+ --dll ruby_builtin_dlls/zlib1.dll \
7
+ --dll ruby_builtin_dlls/libssl-3-x64.dll \
8
+ --dll ruby_builtin_dlls/libcrypto-3-x64.dll \
9
+ --dll ruby_builtin_dlls/libgmp-10.dll \
10
+ --dll ruby_builtin_dlls/libyaml-0-2.dll \
11
+ --dll ruby_builtin_dlls/libffi-8.dll \
12
+ --dll ruby_builtin_dlls/libssl-3-x64.dll \
13
+ --dll ruby_builtin_dlls/libgcc_s_seh-1.dll \
14
+ --dll ruby_builtin_dlls/libwinpthread-1.dll \
15
+ --dll ruby_builtin_dlls/zlib1.dll
Binary file
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'platformos_check'
4
+
5
+ status_code = PlatformosCheck::LanguageServer.start
6
+ exit! status_code
data/config/default.yml CHANGED
@@ -87,6 +87,10 @@ ImgLazyLoading:
87
87
  enabled: true
88
88
  ignore: []
89
89
 
90
+ FormAction:
91
+ enabled: true
92
+ ignore: []
93
+
90
94
  HtmlParsingError:
91
95
  enabled: true
92
96
  ignore: []