Skip to content

Commit 244a3ad

Browse files
author
Toni Reina
authored
Fix/toni/cleanup js comments (#129)
* Update script to clean up `buf:lint:ignore` comments Update it to also clean up .js files. * Update generated code
1 parent 7425977 commit 244a3ad

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

gen/typescript/qdrant/cloud/booking/v1/booking-BookingService_connectquery.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export const getPackage = createQueryService({
5252
}).getPackage;
5353

5454
/**
55-
* buf:lint:ignore QDRANT_CLOUD_METHOD_OPTIONS
5655
* Lists all public packages.
5756
* Authentication not required
5857
*

gen/typescript/qdrant/cloud/platform/v1/platform-PlatformService_connectquery.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { ListCloudProviderRegionsRequest, ListCloudProviderRegionsResponse, List
1010
export const typeName = "qdrant.cloud.platform.v1.PlatformService";
1111

1212
/**
13-
* buf:lint:ignore QDRANT_CLOUD_METHOD_OPTIONS
1413
* Lists all available cloud providers globally (not account-specific).
1514
* Authentication is not required.
1615
*
@@ -52,7 +51,6 @@ export const listCloudProviders = createQueryService({
5251
}).listCloudProviders;
5352

5453
/**
55-
* buf:lint:ignore QDRANT_CLOUD_METHOD_OPTIONS
5654
* Lists all cloud provider regions (not account-specific) identified by cloud provider ID.
5755
* Authentication is not required.
5856
*

scripts/cleanup-gencode-comments.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ find gen/ -type f -name '*.ts' | while read -r file; do
1616
grep -v "\* buf:lint:ignore" "$file" >tmp_file && mv tmp_file "$file"
1717
done
1818

19+
# Clean JS files: remove the * buf:lint:ignore RULE pattern
20+
find gen/ -type f -name '*.js' | while read -r file; do
21+
grep -v "\* buf:lint:ignore" "$file" >tmp_file && mv tmp_file "$file"
22+
done
23+
1924
# Clean JSON files: remove the \nbuf:lint:ignore RULE pattern
2025
find gen/ -type f -name '*.json' | while read -r file; do
2126
awk '{gsub(/buf:lint:ignore [A-Z_]+\\n/, ""); print}' "$file" >tmp_file && mv tmp_file "$file"

0 commit comments

Comments
 (0)