Stanisław Barzowski
214a61790a
Update Go versions in CI. ( #758 )
...
Drop support for Go < 1.20.
2024-06-10 21:42:18 +01:00
Thomas Neidhart
e0c6a9ed6f
Fix linter: using a local in an assertion. ( #723 )
2024-06-10 21:28:17 +01:00
guoguangwu
04f3751f08
chore: remove refs to deprecated io/ioutil ( #716 )
2024-06-10 21:27:07 +01:00
Brad Ison
3d9a2bfbd0
Add optional parameters to manifestYamlStream in linter ( #732 )
2024-06-10 21:26:36 +01:00
Marko Mikulicic
94a40b2991
Fix field visibility in objectHas for extended objects ( #737 )
2024-06-10 21:26:12 +01:00
dependabot[bot]
c159b34cd2
chore(deps): bump golang.org/x/crypto from 0.9.0 to 0.17.0 ( #738 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.9.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.9.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-10 21:25:20 +01:00
itchyny
4863a88228
chore: fix CI to follow the deprecation of goreleaser flags ( #755 )
...
* chore: fix CI to follow the deprecation of goreleaser flags
* chore: fix goreleaser config file to follow deprecation notice
2024-06-10 21:25:04 +01:00
itchyny
463509825c
chore: update rules_go and gazelle version to fix bazel build ( #756 )
...
* chore: update rules_go and gazelle version to fix bazel build
* chore: fix source file list in ast directory (ref: #746 )
* chore: fix dependency list in formatter directory
2024-06-10 21:24:27 +01:00
itchyny
02bcb686b7
chore: fix compilation error of valueToString in debugger.go ( #754 )
2024-06-10 11:07:28 +01:00
Johannes Gräger
dec1aa2be3
feat: Go implementation for manifestYamlDoc and escapeStringJson ( #742 )
...
* Builtins for escapeStringJson and manifestYamlDoc
* Benchmark and tests
2024-06-09 19:27:15 +01:00
itchyny
fa70aa4711
feat: implement std.splitLimitR ( #745 )
2024-06-09 19:25:22 +01:00
itchyny
e544339880
Remove dependency on gen to generate sets ( #746 )
2024-06-09 19:24:41 +01:00
Aidan Rowe
5d760fb622
bump cpp_jsonnet dependency to align with v0.20.0 release ( #748 )
2024-06-09 19:22:09 +01:00
Shunsuke Suzuki
4324105af7
fix: fix conversion from int to float64 ( #753 )
...
* fix: fix conversion from int to float64
* fix: fix a compile error
```
cannot convert v (variable of type interface{}) to type float64: need type assertion
```
2024-06-09 15:42:32 +01:00
Thomas Neidhart
c8d95b9a6f
Gracefully handle encountered regular expression when running jsonnetfmt ( #724 )
...
* Gracefully handle encountered regular expression when running jsonnetfmt, adding tests.
* Do not validate verbatim strings.
* Also do not validate string blocks.
* Change golden prefix for formatter tests to fmt.golden to be consistant with cpp version.
2024-06-09 15:32:29 +01:00
Dominik Süß
6838b0a0b8
feat: add debugger support ( #739 )
2024-06-09 15:09:24 +01:00
zephyros-dev
fed90cd9cd
fix: add std.objectKeysValues to jsonnet-lint ( #706 )
2023-06-26 20:40:39 +01:00
Charles Korn
7b9f5fd4b4
Expose "unparse", FormatNode and RawAST ( #710 )
...
* Export FormatNode so external users can pretty print an AST
Signed-off-by: Tom Wilkie <tom@grafana.com>
* Expose RawAST function.
Signed-off-by: Tom Wilkie <tom@grafana.com>
* Add comment
Signed-off-by: Tom Wilkie <tom@grafana.com>
---------
Signed-off-by: Tom Wilkie <tom@grafana.com>
Co-authored-by: Tom Wilkie <tom@grafana.com>
2023-06-14 19:56:49 +01:00
Sean Gillespie
9639773cf0
Teach jsonnet-lint about optional parameters of std.manifestYamlDoc ( #705 )
...
manifestYamlDoc takes two optional parameters, `indent_array_in_object` and `quote_keys`. This commit teaches jsonnet-lint about them so that it doesn't raise errors when you use them.
There are other stdlib library functions with this problem; the true solution is probably to auto-generate this from the stdlib AST, but this at least gets the linter happy with this particular function.
2023-06-13 21:18:35 +01:00
Tareq Al-Maamari
16a10df1a7
chore: bump go to 1.20 ( #707 )
...
This will also resolve few vulnerabilities.
2023-06-13 21:17:47 +01:00
take
b7d09417d8
Remove .DS_Store ( #703 )
2023-06-13 21:13:31 +01:00
Jayme Bird
5fb0b0b578
feat: add std reverse linter ( #709 )
...
* feat: add std.reverse to linter
* feat: add linter test case
* feat: fix linter golden test data
2023-06-13 20:15:23 +01:00
Rohit Jangid
2a7260d60c
feat: Add more math functions ( #702 )
...
Co-authored-by: Dave Cunningham <sparkprime@gmail.com>
2023-06-13 20:14:26 +01:00
Deep Goel
572c054137
feat: implement std.avg ( #700 )
...
* feat: implement std.avg
2023-06-13 17:42:05 +01:00
Rohit Jangid
aece6e9b90
feat: add more crypto functions ( #699 )
...
* feat: add more crypto functions
2023-06-13 17:18:02 +01:00
Morten Mjelva
1096691eec
feat: Add support for bzlmod ( #698 )
...
* Add support for bzlmod
2023-06-13 16:57:38 +01:00
Tejesh Raut
fae841124f
Implement std.trim for string ( #684 )
...
* Implement std.trim for string
2023-06-13 13:05:28 +01:00
Jonathan Regehr
44538a33e1
Adds std.any and std.all to jsonnet-lint ( #695 )
...
Co-authored-by: Dave Cunningham <sparkprime@gmail.com>
2023-05-25 14:09:56 +01:00
Deep Goel
7edd5d373b
feat: implement std.maxArray ( #696 )
2023-05-25 13:45:24 +01:00
Rohit Jangid
4bb6e388b7
feat: implement std.equalsIgnoreCase ( #692 )
2023-05-25 13:32:39 +01:00
Rohit Jangid
25d3372c98
feat: implement std.remove and std.removeAt ( #689 )
...
* feat: implement std.remove and std.removeAt
* Update builtins.go
---------
Co-authored-by: Dave Cunningham <sparkprime@gmail.com>
2023-05-25 13:32:21 +01:00
Rohit Jangid
3c7c0cbac8
feat: implement objectRemoveKey ( #686 )
2023-05-25 12:55:30 +01:00
Yuki Yugui Sonoda
868d9c6f11
Resolves a false-positive detection of multi-doc YAML streams ( #693 )
...
Fixes #673 .
2023-05-03 19:37:04 +01:00
Deep Goel
9c0b362ba7
feat: implement std.minArray ( #685 )
...
* feat: implement std.minArray
2023-05-03 19:13:56 +01:00
Rohit Jangid
76e4fc2221
feat: implement std.contains ( #691 )
2023-05-03 19:06:07 +01:00
Dave Cunningham
7903819abf
Bump version to 0.20.0 ( #688 )
v0.20.0
2023-04-17 20:44:57 +01:00
Dave Cunningham
0e07fcda92
Update cpp version ( #687 )
2023-04-17 18:29:20 +01:00
Dave Cunningham
c484aec526
increase go rules version to fix bazel build
2023-04-14 16:34:55 +01:00
Dave Cunningham
5afe130669
fix newline issue breaking test
2023-04-13 15:33:24 +01:00
Rohit Jangid
18377e6f9f
Add std.round
function in standard library. ( #683 )
...
Co-authored-by: Dave Cunningham <sparkprime@gmail.com>
2023-04-13 15:32:54 +01:00
Dave Cunningham
b0ff20a87c
fix tests
2023-04-13 15:28:29 +01:00
Tejesh Raut
c63eb61eb3
Implement std.isEmpty for string ( #678 )
...
* Implement std.isEmpty for string
2023-04-13 15:24:47 +01:00
Saloni Juneja
ff691b0f18
Fixing test cases
2023-04-13 15:14:10 +01:00
Saloni Juneja
91ebf4b09e
Add std.xor for 2 booleans
2023-04-13 15:14:10 +01:00
Rohit Jangid
772ebba669
Add support to return int based value from native functions golang implementations
2023-04-13 14:51:53 +01:00
Saloni Juneja
4df8c17aa3
Updated test cases
2023-03-28 17:13:31 +01:00
Saloni Juneja
4c83cff898
Fixed test cases
2023-03-28 17:13:31 +01:00
Saloni Juneja
67c8bf4a53
Implement std.xor for booleans
2023-03-28 17:13:31 +01:00
Rohit Jangid
83b9f8341f
feat: implement std.sum
2023-02-17 13:19:50 +00:00
Jordan Cohen
b38dfbb86e
adding jsonnet-deps to release ( #667 )
...
Co-authored-by: Jordan Cohen <jordan.cohen@digitalasset.com>
v0.19.2-pre2
2023-02-02 19:29:28 +00:00