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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/Makefile +2 -2
- data/README.md +1 -1
- data/build/windows/Gemfile +5 -0
- data/build/windows/README.md +15 -0
- data/build/windows/build.sh +15 -0
- data/build/windows/lsp.exe +0 -0
- data/build/windows/run.rb +6 -0
- data/config/default.yml +4 -0
- data/data/platformos_liquid/documentation/filters.json +1 -1
- data/data/platformos_liquid/documentation/latest.json +1 -1
- data/docker/lsp.Dockerfile +3 -3
- data/docs/checks/form_action.md +56 -0
- data/lib/platformos_check/checks/form_action.rb +18 -0
- data/lib/platformos_check/checks/unused_assign.rb +10 -2
- data/lib/platformos_check/graphql_file.rb +8 -0
- data/lib/platformos_check/graphql_traverser.rb +53 -0
- data/lib/platformos_check/in_memory_storage.rb +4 -0
- data/lib/platformos_check/language_server/completion_providers/object_attribute_completion_provider.rb +60 -11
- data/lib/platformos_check/language_server/variable_lookup_finder/assignments_finder/node_handler.rb +1 -21
- data/lib/platformos_check/language_server/variable_lookup_finder/assignments_finder/scope.rb +19 -2
- data/lib/platformos_check/language_server/variable_lookup_finder/constants.rb +2 -0
- data/lib/platformos_check/language_server/variable_lookup_finder/potential_lookup.rb +1 -1
- data/lib/platformos_check/language_server/variable_lookup_finder.rb +74 -4
- data/lib/platformos_check/platformos_liquid/source_index/filter_entry.rb +3 -1
- data/lib/platformos_check/tags/log.rb +4 -0
- data/lib/platformos_check/tags/return.rb +4 -0
- data/lib/platformos_check/version.rb +1 -1
- data/lib/platformos_check.rb +1 -0
- metadata +11 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e25de2efbace27cbcb87f0166520a416c0a275dccd641524a3f3ea1b95190779
|
4
|
+
data.tar.gz: d4bc78729da09cb589caa3472e01c4735161d454b697560a894877073d21398e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dd2688e9b917dc3af698bcbf135bafc016bbfba8d24c46bd62528315d594322cf186913cbd6319a8d9275f8357a5d2d8067b542bd5fb90828532556464e4237
|
7
|
+
data.tar.gz: b1308c97e7721df699c423e9c1e111fee82e0bd31e79c8b55a1300baf5547fe115c35a9435ed16e5e2c68c825b230a6b710aba225d32f62a1ea3bee47a2204bd
|
data/CHANGELOG.md
CHANGED
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
|
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,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
|