SHA256
1
0
forked from pool/ast-grep

42 Commits

Author SHA256 Message Date
Ana Guerrero
baa174dd0d Accepting request 1171335 from utilities
- Update to 0.21.2:
  * feat: Allow to use meta variable captured outside of rewrite rule inside the rewriter #1072
  * refactor: move rule_core test out of rule_core 1e8af4c
  * feat: move check variable usage out to a standalone file f086d10
  * refactor: move check var around cfe3529

OBS-URL: https://build.opensuse.org/request/show/1171335
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=20
2024-05-02 21:48:19 +00:00
ecfe72679f - Update to 0.21.2:
* feat: Allow to use meta variable captured outside of rewrite rule inside the rewriter #1072
  * refactor: move rule_core test out of rule_core 1e8af4c
  * feat: move check variable usage out to a standalone file f086d10
  * refactor: move check var around cfe3529

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=41
2024-05-02 10:26:26 +00:00
Ana Guerrero
f48e3e61f8 Accepting request 1170674 from utilities
- Update to 0.21.1:
  * feat: find defined vars in utils cbc6534
  * fix: add referent rule stack overflow test case f7f24e1
  * feat: add utils defined vars 59001eb

- Update to 0.21.0:
  * feat: report unused rewriters #1064
  * feat: report undefined error in fix #1070
  * feat: define the resolution order of meta variables #1068
  * feat: export used meta-var in transform #1069
  * feat: export meta variables defined in transform #1066
  * feat: export meta variables defined in constraints/rules #1067
  * test: add test for Pattern::defined_vars method #1065
  * feat: analyze meta variables defined in pattern #1065
  * feat: add field id Error for relational rule #1059
  * feat: support rewrtier check in sub-rule eb4c47c
  * test: add undefined rewriter test d56ad74
  * feat: add used_vars in TemplateFix 641d3b4

OBS-URL: https://build.opensuse.org/request/show/1170674
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=19
2024-04-29 15:57:51 +00:00
d605b2baea - Update to 0.21.1:
* feat: find defined vars in utils cbc6534
  * fix: add referent rule stack overflow test case f7f24e1
  * feat: add utils defined vars 59001eb

- Update to 0.21.0:
  * feat: report unused rewriters #1064
  * feat: report undefined error in fix #1070
  * feat: define the resolution order of meta variables #1068
  * feat: export used meta-var in transform #1069
  * feat: export meta variables defined in transform #1066
  * feat: export meta variables defined in constraints/rules #1067
  * test: add test for Pattern::defined_vars method #1065
  * feat: analyze meta variables defined in pattern #1065
  * feat: add field id Error for relational rule #1059
  * feat: support rewrtier check in sub-rule eb4c47c
  * test: add undefined rewriter test d56ad74
  * feat: add used_vars in TemplateFix 641d3b4

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=39
2024-04-29 07:08:06 +00:00
Ana Guerrero
bd3baf4914 Accepting request 1166897 from utilities
- Update to 0.20.5:
  * fix: add parse global util error 2482a86
  * fix: ignore test 6c2cd46

OBS-URL: https://build.opensuse.org/request/show/1166897
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=18
2024-04-12 15:34:22 +00:00
e122ce0d11 - Update to 0.20.5:
* fix: add parse global util error 2482a86
  * fix: ignore test 6c2cd46

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=37
2024-04-11 14:28:44 +00:00
Ana Guerrero
ecb249a841 Accepting request 1166203 from utilities
- Update to 0.20.4:
  * fix: fix new deprecation note of Rust 2024 a70565e
  * fix: fix quickfix fef3dfc
  * fix: better fix message e0b5875

- Update to 0.20.3:
  * feat(lsp): run "source.fixAll.ast-grep" onsave #1021
  * test: move the integration-test to test folder f2ff77a
  * chore: cargo update 83394e9
  * refactor: move logging and io out of on_apply_all_fix cd79cda

OBS-URL: https://build.opensuse.org/request/show/1166203
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=17
2024-04-08 15:39:38 +00:00
5eefde02b4 - Update to 0.20.4:
* fix: fix new deprecation note of Rust 2024 a70565e
  * fix: fix quickfix fef3dfc
  * fix: better fix message e0b5875

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=35
2024-04-08 12:42:11 +00:00
0a307ed612 - Update to 0.20.3:
* feat(lsp): run "source.fixAll.ast-grep" onsave #1021
  * test: move the integration-test to test folder f2ff77a
  * chore: cargo update 83394e9
  * refactor: move logging and io out of on_apply_all_fix cd79cda

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=34
2024-04-08 06:28:02 +00:00
Ana Guerrero
c523215c30 Accepting request 1163252 from utilities
- Update to 0.20.2:
  * feat: make test --update-all not report error #771
  * fix: fix update cases f8132a4
  * refactor: less indentation for interactive reporter 203bd35
  * feat: improve accept 441a548

OBS-URL: https://build.opensuse.org/request/show/1163252
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=16
2024-03-28 12:55:22 +00:00
20e797b171 - Update to 0.20.2:
* feat: make test --update-all not report error #771
  * fix: fix update cases f8132a4
  * refactor: less indentation for interactive reporter 203bd35
  * feat: improve accept 441a548

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=32
2024-03-28 07:27:14 +00:00
Ana Guerrero
d73e3dae64 Accepting request 1161276 from utilities
- Update to 0.20.1:
  * feat: respect suppression in lsp #1019

- Update to 0.20.0:
  * test: add test for error suppression in scan #1007
  * refactor: merge CombinedScan::scan and CombinedScan::diff #1011
  * feat: report error count instead of file count #1009
  * feat: suppress specific rule #1005
  * fix: skip suppressed error #1006
  * feat: support error/warning suppression #446
  * fix(deps): update babel monorepo da9a938
  * fix(deps): update dependency @swc/core to v1.4.8 d81365a
  * feat: add more states for rule suppression 41a058c

OBS-URL: https://build.opensuse.org/request/show/1161276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=15
2024-03-25 20:12:04 +00:00
797c0e938f - Update to 0.20.1:
* feat: respect suppression in lsp #1019

- Update to 0.20.0:
  * test: add test for error suppression in scan #1007
  * refactor: merge CombinedScan::scan and CombinedScan::diff #1011
  * feat: report error count instead of file count #1009
  * feat: suppress specific rule #1005
  * fix: skip suppressed error #1006
  * feat: support error/warning suppression #446
  * fix(deps): update babel monorepo da9a938
  * fix(deps): update dependency @swc/core to v1.4.8 d81365a
  * feat: add more states for rule suppression 41a058c

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=30
2024-03-25 06:27:07 +00:00
Ana Guerrero
cc34b47783 Accepting request 1156842 from utilities
- Update to 0.19.4:
  * LSP default message for diagnostics #970
  * feat: Add error messaging for rule file parsing failures #968
  * feat: add html testing and tweak html #977
  * fix(deps): update dependency @babel/core to v7.24.0 a14741d
  * fix(deps): update dependency @swc/core to v1.4.6 4a397f4
  * fix(deps): update rust crate pyo3 to 0.20.3 23653c2

OBS-URL: https://build.opensuse.org/request/show/1156842
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=14
2024-03-11 14:34:42 +00:00
81e64dad62 - Update to 0.19.4:
* LSP default message for diagnostics #970
  * feat: Add error messaging for rule file parsing failures #968
  * feat: add html testing and tweak html #977
  * fix(deps): update dependency @babel/core to v7.24.0 a14741d
  * fix(deps): update dependency @swc/core to v1.4.6 4a397f4
  * fix(deps): update rust crate pyo3 to 0.20.3 23653c2

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=28
2024-03-11 07:33:54 +00:00
Ana Guerrero
8de3e39ba5 Accepting request 1150575 from utilities
- Update to 0.19.3:
  * fix(deps): update dependency @swc/core to v1.4.2 67450cb
  * refactor: move rewriters to SerializableRuleConfig d98c062
  * fix(deps): update rust crate inquire to 0.7.0 86ec845

OBS-URL: https://build.opensuse.org/request/show/1150575
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=13
2024-02-27 21:45:40 +00:00
bf2786fad0 - Update to 0.19.3:
* fix(deps): update dependency @swc/core to v1.4.2 67450cb
  * refactor: move rewriters to SerializableRuleConfig d98c062
  * fix(deps): update rust crate inquire to 0.7.0 86ec845

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=26
2024-02-26 07:27:00 +00:00
Ana Guerrero
8166480b92 Accepting request 1149684 from utilities
- Update to 0.19.2:
  * fix: improve expando char replacement #883
  * feat(napi): add support for napi linux x64 musl c4d7902
  * fix: fix wrong spacing matching 0e8b4f0
  * Update README.md 9636a1a

OBS-URL: https://build.opensuse.org/request/show/1149684
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=12
2024-02-23 15:45:55 +00:00
76ace2fcf9 - Update to 0.19.2:
* fix: improve expando char replacement #883
  * feat(napi): add support for napi linux x64 musl c4d7902
  * fix: fix wrong spacing matching 0e8b4f0
  * Update README.md 9636a1a

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=24
2024-02-23 06:00:02 +00:00
Ana Guerrero
72f8e52685 Accepting request 1147699 from utilities
- Update to 0.19.1:
  * fix: avoid input stream when --update-all #943
  * fix: update cargo lock 8a893e7
  * fix(deps): update dependency @swc/core to v1.4.1 d18fd70
  * chore(deps): update dependency @types/node to v20.11.19 40d3fa0

OBS-URL: https://build.opensuse.org/request/show/1147699
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=11
2024-02-20 20:14:52 +00:00
8775462299 - Update to 0.19.1:
* fix: avoid input stream when --update-all #943
  * fix: update cargo lock 8a893e7
  * fix(deps): update dependency @swc/core to v1.4.1 d18fd70
  * chore(deps): update dependency @types/node to v20.11.19 40d3fa0

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=22
2024-02-20 05:59:58 +00:00
Ana Guerrero
62e2e85fa3 Accepting request 1146732 from utilities
- Update to 0.19.0:
  * Breaking change: refactor: remove unused type generic 9b13d41
  * Breaking change: fix: update pyo3 test ff10e81
  * fix: fix parallel thread output be230ca

OBS-URL: https://build.opensuse.org/request/show/1146732
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=10
2024-02-15 20:01:07 +00:00
561afb8bc6 - Update to 0.19.0:
* Breaking change: refactor: remove unused type generic 9b13d41
  * Breaking change: fix: update pyo3 test ff10e81
  * fix: fix parallel thread output be230ca

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=20
2024-02-15 08:08:23 +00:00
Ana Guerrero
7da8f031e0 Accepting request 1143207 from utilities
- Update to 0.18.1:
  * Breaking change: refactor: use more concise name 6a4a17c

OBS-URL: https://build.opensuse.org/request/show/1143207
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=9
2024-02-01 17:05:47 +00:00
2ed74cd4ff - Update to 0.18.1:
* Breaking change: refactor: use more concise name 6a4a17c

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=18
2024-02-01 08:07:32 +00:00
Ana Guerrero
9cc40c3f49 Accepting request 1143067 from utilities
- Update to 0.18.0:
  * Breaking change: refactor: remove IndentSensitive trait #868
  * feat: add support for rewriters #855
  * Breaking change: refactor: rename RuleWithConstraints to RuleCore #862
  * feat: move fix to SerializableRuleCore #859
  * Breaking change: refactor: remove MetaVarMatchers beb6f50
  * Breaking change: feat: move fixer to RuleCore 8a43a26
  * Breaking change: refactor: move language out of SerializableRuleCore c5e0dc8
  * Breaking change: refactor: remove Content generic from Fixer 87bbf93
  * Breaking change: feat: improve get_fixer signature e629e0f
  * Breaking change: refactor: make TemplateFix non-generic 0f462a5
  * feat: migrate constraints to Rule 230ee9c
  * refactor: move SerializableRuleCore to rule_core mod 3a303c1

OBS-URL: https://build.opensuse.org/request/show/1143067
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=8
2024-01-31 22:55:46 +00:00
4adab32322 - Update to 0.18.0:
* Breaking change: refactor: remove IndentSensitive trait #868
  * feat: add support for rewriters #855
  * Breaking change: refactor: rename RuleWithConstraints to RuleCore #862
  * feat: move fix to SerializableRuleCore #859
  * Breaking change: refactor: remove MetaVarMatchers beb6f50
  * Breaking change: feat: move fixer to RuleCore 8a43a26
  * Breaking change: refactor: move language out of SerializableRuleCore c5e0dc8
  * Breaking change: refactor: remove Content generic from Fixer 87bbf93
  * Breaking change: feat: improve get_fixer signature e629e0f
  * Breaking change: refactor: make TemplateFix non-generic 0f462a5
  * feat: migrate constraints to Rule 230ee9c
  * refactor: move SerializableRuleCore to rule_core mod 3a303c1

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=16
2024-01-31 15:22:20 +00:00
Ana Guerrero
c5ad0b309e Accepting request 1138447 from utilities
- Update to 0.17.1:
  * feat: respect user's language extension option #848

OBS-URL: https://build.opensuse.org/request/show/1138447
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=7
2024-01-14 18:02:47 +00:00
db64f1fd85 - Update to 0.17.1:
* feat: respect user's language extension option #848

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=14
2024-01-13 08:21:57 +00:00
Ana Guerrero
8a477d4a0b Accepting request 1138228 from utilities
- Update to 0.17.0:
  * Breaking change: feat: change get_fixer to return Fixer 07c5363
  * feat: add modify_range for tweaking fix range selection eeb2f98
  * feat: rename modify_range -> get_replace_range 54837df

OBS-URL: https://build.opensuse.org/request/show/1138228
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=6
2024-01-12 22:45:45 +00:00
9079870d87 - Update to 0.17.0:
* Breaking change: feat: change get_fixer to return Fixer 07c5363
  * feat: add modify_range for tweaking fix range selection eeb2f98
  * feat: rename modify_range -> get_replace_range 54837df

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=12
2024-01-12 07:45:56 +00:00
1f961c27c5 Accepting request 1137219 from utilities
- Update to 0.16.1:
  * feat: add support for bash and php #639
  * Breaking change: fix: more strict meta var parsing 13ad32b
  * Breaking change: refactor: remove thrift language 26ecdf6
  * fix(deps): update dependency @swc/core to v1.3.102 9ca9711

OBS-URL: https://build.opensuse.org/request/show/1137219
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=5
2024-01-06 16:30:01 +00:00
366ab6487d OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=10 2024-01-06 10:57:31 +00:00
37065db258 - Update to 0.16.1:
* feat: add support for bash and php #639
  * Breaking change: fix: more strict meta var parsing 13ad32b
  * Breaking change: refactor: remove thrift language 26ecdf6
  * fix(deps): update dependency @swc/core to v1.3.102 9ca9711

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=9
2024-01-06 09:23:57 +00:00
23469ddbb8 Accepting request 1135750 from utilities
- Update to 0.16.0:
  * feat: add language globs to findInFiles in napi #780
  * Breaking change: fix: rename MetaVar for better naming #805
  * refactor: reorgnanize napi file structure 93f8577
  * refactor: move file type related function out of lib 64e33a3
  * feat: handle FileOption in LangOption::infer 7bc3efe

OBS-URL: https://build.opensuse.org/request/show/1135750
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=4
2024-01-03 11:25:29 +00:00
b2d0220756 - Update to 0.16.0:
* feat: add language globs to findInFiles in napi #780
  * Breaking change: fix: rename MetaVar for better naming #805
  * refactor: reorgnanize napi file structure 93f8577
  * refactor: move file type related function out of lib 64e33a3
  * feat: handle FileOption in LangOption::infer 7bc3efe

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=7
2023-12-30 13:14:04 +00:00
Ana Guerrero
a57c8249ec Accepting request 1133804 from utilities
- Update to 0.15.1:
  * feat: support mutliple rules in -r and --inline-rules #786
  * refactor: unify run_worker and run_std_in #785
  * Breaking change: feat: --stdin now always awaits user input #791
  * feat: support --inline-rules option for sg scan #396
  * refactor: separate PathWorker and StdInWorker and Worker ef3d8ad
  * test: add test cases for sg scan ed35c71
  * fix: revert github action a2f22d8

OBS-URL: https://build.opensuse.org/request/show/1133804
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=3
2023-12-18 21:56:02 +00:00
491e5eae7b - Update to 0.15.1:
* feat: support mutliple rules in -r and --inline-rules #786
  * refactor: unify run_worker and run_std_in #785
  * Breaking change: feat: --stdin now always awaits user input #791
  * feat: support --inline-rules option for sg scan #396
  * refactor: separate PathWorker and StdInWorker and Worker ef3d8ad
  * test: add test cases for sg scan ed35c71
  * fix: revert github action a2f22d8

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=5
2023-12-18 08:01:16 +00:00
Ana Guerrero
07f6781311 Accepting request 1133676 from utilities
- Update to 0.15.0:
  * Breaking change: feat: reduce metavar_env string allocation e1ab015
  * Breaking change: fix: remove pattern as replacer f6e4293
  * Breaking change: feat: better metavar detection e1ab18a

OBS-URL: https://build.opensuse.org/request/show/1133676
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=2
2023-12-17 20:33:16 +00:00
8cafba3700 - Update to 0.15.0:
* Breaking change: feat: reduce metavar_env string allocation e1ab015
  * Breaking change: fix: remove pattern as replacer f6e4293
  * Breaking change: feat: better metavar detection e1ab18a

OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=3
2023-12-17 01:28:28 +00:00
594ec69867 Accepting request 1132617 from utilities
OBS-URL: https://build.opensuse.org/request/show/1132617
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ast-grep?expand=0&rev=1
2023-12-12 18:32:17 +00:00
41be3913f2 Accepting request 1132616 from home:jubalh
OBS-URL: https://build.opensuse.org/request/show/1132616
OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=1
2023-12-12 08:54:21 +00:00