From 71a7bcc3118974cb60e0498c5930247ac91b7cf2 Mon Sep 17 00:00:00 2001 From: Fujio Turner Date: Fri, 23 Aug 2024 23:07:10 -0500 Subject: [PATCH 01/13] Create pylint.yml --- .github/workflows/pylint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pylint.yml diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 0000000..c73e032 --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py') From f6776494e2db479add9b20d07da6dea20f9af0bb Mon Sep 17 00:00:00 2001 From: Fujio Turner Date: Fri, 23 Aug 2024 23:09:57 -0500 Subject: [PATCH 02/13] lint test --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index acd477f..efe3ba3 100644 --- a/README.md +++ b/README.md @@ -157,4 +157,6 @@ Here is a link to understand what the Sync Function can and can not do. 8. **Changes Channel(s) Filter**: Add the channel(s) you want to filter by in the changes operation like this:`CHANGES:bob` . -Works on My Computer - Tested & Certified ;-) \ No newline at end of file +Works on My Computer - Tested & Certified ;-) + +Lets Lint it. \ No newline at end of file From dc17422decca7c793fa8dd3d00719a8a5dc43ed4 Mon Sep 17 00:00:00 2001 From: Fujio Turner Date: Fri, 23 Aug 2024 23:17:21 -0500 Subject: [PATCH 03/13] super linter --- .github/workflows/pylint.yml | 23 ----------------------- .github/workflows/superLinter.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/pylint.yml create mode 100644 .github/workflows/superLinter.yml diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml deleted file mode 100644 index c73e032..0000000 --- a/.github/workflows/pylint.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Pylint - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8", "3.9", "3.10"] - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - - name: Analysing the code with pylint - run: | - pylint $(git ls-files '*.py') diff --git a/.github/workflows/superLinter.yml b/.github/workflows/superLinter.yml new file mode 100644 index 0000000..13f5be4 --- /dev/null +++ b/.github/workflows/superLinter.yml @@ -0,0 +1,30 @@ +name: Super Linter + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + super-linter: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Run Super Linter + uses: github/super-linter@v4 + env: + DEFAULT_BRANCH: main + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Uncomment the following lines to enable linter rules for specific languages + # VALIDATE_ALL_CODEBASE: true + # VALIDATE_JAVASCRIPT_STANDARD: true + # VALIDATE_PYTHON_FLAKE8: true + # VALIDATE_TYPESCRIPT_STANDARD: true + # VALIDATE_JAVA: true + # VALIDATE_DOCKERFILE: true + # VALIDATE_YAML: true + # VALIDATE_BASH: true \ No newline at end of file From f2e211baa1ea5ece6f30bd31d1ae1e8173dd8d3f Mon Sep 17 00:00:00 2001 From: Fujio Turner Date: Fri, 23 Aug 2024 23:24:21 -0500 Subject: [PATCH 04/13] limited super linter --- .github/workflows/superLinter.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/superLinter.yml b/.github/workflows/superLinter.yml index 13f5be4..2a3663f 100644 --- a/.github/workflows/superLinter.yml +++ b/.github/workflows/superLinter.yml @@ -21,10 +21,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Uncomment the following lines to enable linter rules for specific languages # VALIDATE_ALL_CODEBASE: true - # VALIDATE_JAVASCRIPT_STANDARD: true + # VALIDATE_JAVASCRIPT_STANDARD: false # VALIDATE_PYTHON_FLAKE8: true - # VALIDATE_TYPESCRIPT_STANDARD: true - # VALIDATE_JAVA: true + # VALIDATE_TYPESCRIPT_STANDARD: false + # VALIDATE_JAVA: false # VALIDATE_DOCKERFILE: true # VALIDATE_YAML: true # VALIDATE_BASH: true \ No newline at end of file From 93ffd982217557a43edb3dddf37c65aa59bc54e2 Mon Sep 17 00:00:00 2001 From: Fujio Turner Date: Fri, 23 Aug 2024 23:31:33 -0500 Subject: [PATCH 05/13] more superlint --- .github/workflows/superLinter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/superLinter.yml b/.github/workflows/superLinter.yml index 2a3663f..43c9234 100644 --- a/.github/workflows/superLinter.yml +++ b/.github/workflows/superLinter.yml @@ -22,7 +22,7 @@ jobs: # Uncomment the following lines to enable linter rules for specific languages # VALIDATE_ALL_CODEBASE: true # VALIDATE_JAVASCRIPT_STANDARD: false - # VALIDATE_PYTHON_FLAKE8: true + VALIDATE_PYTHON_FLAKE8: true # VALIDATE_TYPESCRIPT_STANDARD: false # VALIDATE_JAVA: false # VALIDATE_DOCKERFILE: true From 176630e271c2c65a91d40619ac807e8fa84062e7 Mon Sep 17 00:00:00 2001 From: Fujio Turner Date: Fri, 23 Aug 2024 23:53:48 -0500 Subject: [PATCH 06/13] updated action --- .github/workflows/superLinter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/superLinter.yml b/.github/workflows/superLinter.yml index 43c9234..794b1b1 100644 --- a/.github/workflows/superLinter.yml +++ b/.github/workflows/superLinter.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Run Super Linter uses: github/super-linter@v4 From 28156a0f1eabb27202a3343024913e0049686918 Mon Sep 17 00:00:00 2001 From: Fujio Turner Date: Sat, 24 Aug 2024 00:08:39 -0500 Subject: [PATCH 07/13] linting --- sg_sync_function_tester.py | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/sg_sync_function_tester.py b/sg_sync_function_tester.py index b29568d..b55a04c 100644 --- a/sg_sync_function_tester.py +++ b/sg_sync_function_tester.py @@ -2,15 +2,12 @@ import os import requests from requests.auth import HTTPBasicAuth -from datetime import datetime import logging import sys import time - # The WORK class represents the main functionality for interacting with Sync Gateway to test the Sync Function class WORK: - # Default configuration values debug = False sgHost = "http://localhost" sgPort = "4984" @@ -72,7 +69,6 @@ def setupLogging(self): # Store the file handler so it can be closed later self.file_handler = file_handler - # Closes the log file def closeLogFile(self): if hasattr(self, 'file_handler'): @@ -108,7 +104,7 @@ def httpRequest(self, method, url, json_data=None, userName="", password="", ses response.raise_for_status() return response.json() if response.text else None except requests.RequestException as e: - if self.debug == True: + if self.debug: self.logger.error(f"Error in HTTP {method}: {e}") return None @@ -139,7 +135,8 @@ def openJsonFolder(self): rev = None for operation in self.operations: if operation.startswith("SLEEP"): - sleep_time = 1 # Default sleep time + + sleep_time = 1 if ":" in operation: try: sleep_time = int(operation.split(":")[1]) @@ -242,9 +239,6 @@ def openJsonFolder(self): self.logger.error(f"[failed] - [GET_RAW] - [Admin] - Error in HTTP GET_RAW for [{doc_id}] - {str(e)}") self.logger.info(f"[failed] - [GET_RAW] - [Admin] - GET_RAW result for [{doc_id}] - null") - - - if __name__ == "__main__": if len(sys.argv) != 2: print("Usage: python3 sg_sync_function_tester.py ") @@ -253,11 +247,4 @@ def openJsonFolder(self): config_file = sys.argv[1] work = WORK(config_file) work.openJsonFolder() - work.closeLogFile() - - - -''' -HOW TO RUN THE UNIT TEST -python3 -m unittest discover -s test -p "test_sg_sync_function_tester.py" -''' \ No newline at end of file + work.closeLogFile() \ No newline at end of file From 791e4e58ce2329300f026d5a6da0e27a4837f701 Mon Sep 17 00:00:00 2001 From: Fujio Turner Date: Sat, 24 Aug 2024 00:20:42 -0500 Subject: [PATCH 08/13] ai is going nutty --- sg_sync_function_tester.py | 1 + test/test_sg_sync_function_tester.py | 110 +++++++++++++++++++++------ 2 files changed, 87 insertions(+), 24 deletions(-) diff --git a/sg_sync_function_tester.py b/sg_sync_function_tester.py index b55a04c..f75d8c9 100644 --- a/sg_sync_function_tester.py +++ b/sg_sync_function_tester.py @@ -3,6 +3,7 @@ import requests from requests.auth import HTTPBasicAuth import logging +from datetime import datetime import sys import time diff --git a/test/test_sg_sync_function_tester.py b/test/test_sg_sync_function_tester.py index 2c931f1..165ca7b 100644 --- a/test/test_sg_sync_function_tester.py +++ b/test/test_sg_sync_function_tester.py @@ -1,18 +1,18 @@ + import unittest from unittest.mock import patch, MagicMock import json import os import sys -from datetime import datetime from requests.auth import HTTPBasicAuth # Add the root directory to the sys.path to allow imports sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) - from sg_sync_function_tester import WORK + class TestWORK(unittest.TestCase): - + def setUp(self): self.config = { "sgHost": "http://localhost", @@ -29,9 +29,12 @@ def setUp(self): "jsonFolder": "jsons", "logPathToWriteTo": "sync_gateway_log", "debug": False, - "operations": ["GET", "PUT", "DELETE", "CHANGES", "GET_ADMIN", "PUT_ADMIN", "DELETE_ADMIN", "CHANGES_ADMIN:bob", "SLEEP:3", "GET_RAW", "PURGE"] + "operations": [ + "GET", "PUT", "DELETE", "CHANGES", "GET_ADMIN", "PUT_ADMIN", + "DELETE_ADMIN", "CHANGES_ADMIN:bob", "SLEEP:3", "GET_RAW", "PURGE" + ] } - + self.config_file = 'test_config.json' with open(self.config_file, 'w') as f: json.dump(self.config, f) @@ -64,7 +67,10 @@ def test_httpRequest_get(self, mock_request): result = self.work.httpRequest("GET", url, userName="bob", password="12345") self.assertEqual(result, self.sample_doc) - mock_request.assert_called_once_with("GET", url, json=None, headers={'Content-Type': 'application/json'}, auth=HTTPBasicAuth("bob", "12345")) + mock_request.assert_called_once_with( + "GET", url, json=None, headers={'Content-Type': 'application/json'}, + auth=HTTPBasicAuth("bob", "12345") + ) @patch('requests.request') def test_httpRequest_put(self, mock_request): @@ -75,10 +81,16 @@ def test_httpRequest_put(self, mock_request): mock_request.return_value = mock_response url = f"{self.work.sgHost}:{self.work.sgPort}/{self.work.constructDbUrl()}/foo" - result = self.work.httpRequest("PUT", url, json_data=self.sample_doc, userName="bob", password="12345") + result = self.work.httpRequest( + "PUT", url, json_data=self.sample_doc, userName="bob", password="12345" + ) self.assertEqual(result, {"ok": True, "id": "foo", "rev": "1-a"}) - mock_request.assert_called_once_with("PUT", url, json=self.sample_doc, headers={'Content-Type': 'application/json'}, auth=HTTPBasicAuth("bob", "12345")) + mock_request.assert_called_once_with( + "PUT", url, json=self.sample_doc, + headers={'Content-Type': 'application/json'}, + auth=HTTPBasicAuth("bob", "12345") + ) @patch('requests.request') def test_getChangesFeed(self, mock_request): @@ -95,8 +107,12 @@ def test_getChangesFeed(self, mock_request): result = self.work.getChangesFeed(userName="bob", password="12345", channels="bob") self.assertEqual(result, changes_feed) - url = f"{self.work.sgHost}:{self.work.sgPort}/{self.work.constructDbUrl()}/_changes?filter=sync_gateway/bychannel&channels=bob" - mock_request.assert_called_once_with("GET", url, json=None, headers={'Content-Type': 'application/json'}, auth=HTTPBasicAuth("bob", "12345")) + url = (f"{self.work.sgHost}:{self.work.sgPort}/{self.work.constructDbUrl()}/" + "_changes?filter=sync_gateway/bychannel&channels=bob") + mock_request.assert_called_once_with( + "GET", url, json=None, headers={'Content-Type': 'application/json'}, + auth=HTTPBasicAuth("bob", "12345") + ) @patch('requests.request') def test_postPurge(self, mock_request): @@ -112,14 +128,17 @@ def test_postPurge(self, mock_request): self.assertEqual(result, purge_response) url = f"{self.work.sgHost}:{self.work.sgAdminPort}/{self.work.constructDbUrl()}/_purge" purge_data = {"foo": ["*"]} - mock_request.assert_called_once_with("POST", url, json=purge_data, headers={'Content-Type': 'application/json'}, auth=HTTPBasicAuth(self.work.sgAdminUser, self.work.sgAdminPassword)) + mock_request.assert_called_once_with( + "POST", url, json=purge_data, headers={'Content-Type': 'application/json'}, + auth=HTTPBasicAuth(self.work.sgAdminUser, self.work.sgAdminPassword) + ) @patch('requests.request') def test_openJsonFolder(self, mock_request): def side_effect(*args, **kwargs): mock_response = MagicMock() mock_response.raise_for_status = MagicMock() - + if args[0] == "GET": mock_response.json.return_value = {"_id": "foo", "_rev": "1-a", "channels": ["bob"]} elif args[0] == "PUT": @@ -130,7 +149,7 @@ def side_effect(*args, **kwargs): mock_response.json.return_value = {"purged": {"foo": ["*"]}} else: mock_response.json.return_value = {} - + mock_response.text = json.dumps(mock_response.json.return_value) return mock_response @@ -141,18 +160,60 @@ def side_effect(*args, **kwargs): sgDbUrl = f"{self.work.sgHost}:{self.work.sgPort}/{self.work.sgDb}" sgAdminUrl = f"{self.work.sgHost}:{self.work.sgAdminPort}/{self.work.sgDb}" expected_calls = [ - unittest.mock.call("GET", f"{sgDbUrl}/foo", json=None, headers={'Content-Type': 'application/json'}, auth=HTTPBasicAuth("bob", "12345")), - unittest.mock.call("PUT", f"{sgDbUrl}/foo", json={'_id': 'foo', 'channels': ['bob'], '_rev': '1-a', 'dateTimeStamp': unittest.mock.ANY}, headers={'Content-Type': 'application/json'}, auth=HTTPBasicAuth("bob", "12345")), - unittest.mock.call("DELETE", f"{sgDbUrl}/foo?rev=1-a", json=None, headers={'Content-Type': 'application/json'}, auth=HTTPBasicAuth("bob", "12345")), - unittest.mock.call("GET", f"{sgDbUrl}/_changes", json=None, headers={'Content-Type': 'application/json'}, auth=HTTPBasicAuth("bob", "12345")), - unittest.mock.call("GET", f"{sgAdminUrl}/foo", json=None, headers={'Content-Type': 'application/json'}, auth=HTTPBasicAuth(self.work.sgAdminUser, self.work.sgAdminPassword)), - unittest.mock.call("PUT", f"{sgAdminUrl}/foo", json={'_id': 'foo', 'channels': ['bob'], '_rev': '1-a', 'dateTimeStamp': unittest.mock.ANY}, headers={'Content-Type': 'application/json'}, auth=HTTPBasicAuth(self.work.sgAdminUser, self.work.sgAdminPassword)), - unittest.mock.call("DELETE", f"{sgAdminUrl}/foo?rev=1-a", json=None, headers={'Content-Type': 'application/json'}, auth=HTTPBasicAuth(self.work.sgAdminUser, self.work.sgAdminPassword)), - unittest.mock.call("GET", f"{sgAdminUrl}/_changes?filter=sync_gateway/bychannel&channels=bob", json=None, headers={'Content-Type': 'application/json'}, auth=HTTPBasicAuth(self.work.sgAdminUser, self.work.sgAdminPassword)), - unittest.mock.call("GET", f"{sgAdminUrl}/_raw/foo", json=None, headers={'Content-Type': 'application/json'}, auth=HTTPBasicAuth(self.work.sgAdminUser, self.work.sgAdminPassword)), - unittest.mock.call("POST", f"{sgAdminUrl}/_purge", json={"foo": ["*"]}, headers={'Content-Type': 'application/json'}, auth=HTTPBasicAuth(self.work.sgAdminUser, self.work.sgAdminPassword)) + unittest.mock.call( + "GET", f"{sgDbUrl}/foo", json=None, + headers={'Content-Type': 'application/json'}, + auth=HTTPBasicAuth("bob", "12345") + ), + unittest.mock.call( + "PUT", f"{sgDbUrl}/foo", + json={'_id': 'foo', 'channels': ['bob'], '_rev': '1-a', 'dateTimeStamp': unittest.mock.ANY}, + headers={'Content-Type': 'application/json'}, + auth=HTTPBasicAuth("bob", "12345") + ), + unittest.mock.call( + "DELETE", f"{sgDbUrl}/foo?rev=1-a", json=None, + headers={'Content-Type': 'application/json'}, + auth=HTTPBasicAuth("bob", "12345") + ), + unittest.mock.call( + "GET", f"{sgDbUrl}/_changes", json=None, + headers={'Content-Type': 'application/json'}, + auth=HTTPBasicAuth("bob", "12345") + ), + unittest.mock.call( + "GET", f"{sgAdminUrl}/foo", json=None, + headers={'Content-Type': 'application/json'}, + auth=HTTPBasicAuth(self.work.sgAdminUser, self.work.sgAdminPassword) + ), + unittest.mock.call( + "PUT", f"{sgAdminUrl}/foo", + json={'_id': 'foo', 'channels': ['bob'], '_rev': '1-a', 'dateTimeStamp': unittest.mock.ANY}, + headers={'Content-Type': 'application/json'}, + auth=HTTPBasicAuth(self.work.sgAdminUser, self.work.sgAdminPassword) + ), + unittest.mock.call( + "DELETE", f"{sgAdminUrl}/foo?rev=1-a", json=None, + headers={'Content-Type': 'application/json'}, + auth=HTTPBasicAuth(self.work.sgAdminUser, self.work.sgAdminPassword) + ), + unittest.mock.call( + "GET", f"{sgAdminUrl}/_changes?filter=sync_gateway/bychannel&channels=bob", + json=None, headers={'Content-Type': 'application/json'}, + auth=HTTPBasicAuth(self.work.sgAdminUser, self.work.sgAdminPassword) + ), + unittest.mock.call( + "GET", f"{sgAdminUrl}/_raw/foo", json=None, + headers={'Content-Type': 'application/json'}, + auth=HTTPBasicAuth(self.work.sgAdminUser, self.work.sgAdminPassword) + ), + unittest.mock.call( + "POST", f"{sgAdminUrl}/_purge", json={"foo": ["*"]}, + headers={'Content-Type': 'application/json'}, + auth=HTTPBasicAuth(self.work.sgAdminUser, self.work.sgAdminPassword) + ) ] - + mock_request.assert_has_calls(expected_calls, any_order=True) def test_constructDbUrl(self): @@ -161,5 +222,6 @@ def test_constructDbUrl(self): self.work.sgDbCollection = "collection1" self.assertEqual(self.work.constructDbUrl(), "sync_gateway.scope1.collection1") + if __name__ == '__main__': unittest.main() From fb1fc42381f496c446fa622d059032ae7249d6de Mon Sep 17 00:00:00 2001 From: Fujio Turner Date: Sat, 24 Aug 2024 00:21:53 -0500 Subject: [PATCH 09/13] Revert "move some files around" This reverts commit dcfabadcde8754fb37c465843cb7743799bc594c. --- .../1.sync_function_crawl_default_no_security.js | 0 .../2.sync_function_walk_by_docType.js | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename example_sync_functions/{ => crawl_walk_run_sync_functions}/1.sync_function_crawl_default_no_security.js (100%) rename example_sync_functions/{ => crawl_walk_run_sync_functions}/2.sync_function_walk_by_docType.js (100%) diff --git a/example_sync_functions/1.sync_function_crawl_default_no_security.js b/example_sync_functions/crawl_walk_run_sync_functions/1.sync_function_crawl_default_no_security.js similarity index 100% rename from example_sync_functions/1.sync_function_crawl_default_no_security.js rename to example_sync_functions/crawl_walk_run_sync_functions/1.sync_function_crawl_default_no_security.js diff --git a/example_sync_functions/2.sync_function_walk_by_docType.js b/example_sync_functions/crawl_walk_run_sync_functions/2.sync_function_walk_by_docType.js similarity index 100% rename from example_sync_functions/2.sync_function_walk_by_docType.js rename to example_sync_functions/crawl_walk_run_sync_functions/2.sync_function_walk_by_docType.js From ff4f10c2b4c430777dcc440f706a2e451678ace6 Mon Sep 17 00:00:00 2001 From: Fujio Turner Date: Thu, 6 Feb 2025 09:59:44 -0600 Subject: [PATCH 10/13] sg doesn't like let in js. --- example_sync_functions/3.sync_function_run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example_sync_functions/3.sync_function_run.js b/example_sync_functions/3.sync_function_run.js index 83822c0..0e98053 100644 --- a/example_sync_functions/3.sync_function_run.js +++ b/example_sync_functions/3.sync_function_run.js @@ -1,6 +1,5 @@ function(doc, oldDoc) { - let a; try { a = doc._id.split(":"); } catch (error) { @@ -34,6 +33,7 @@ function(doc, oldDoc) { function fieldCheck(elementName) { // Check if elementName exists in the data object, is not null, not empty, and not an integer + // channels can not be integers but they can be strings: 100 BAD , "100" GOOD if (typeof elementName !== 'undefined' && elementName !== null && elementName !== '' && typeof elementName !== 'number') { return true; } else { From 49551277ff59a5bdeeb163d9e7a4c14c29417923 Mon Sep 17 00:00:00 2001 From: Fujio Turner Date: Fri, 7 Feb 2025 13:33:53 -0600 Subject: [PATCH 11/13] remove let --- example_sync_functions/3.sync_function_run.js | 1 - 1 file changed, 1 deletion(-) diff --git a/example_sync_functions/3.sync_function_run.js b/example_sync_functions/3.sync_function_run.js index 0e98053..23cf20a 100644 --- a/example_sync_functions/3.sync_function_run.js +++ b/example_sync_functions/3.sync_function_run.js @@ -1,5 +1,4 @@ function(doc, oldDoc) { - try { a = doc._id.split(":"); } catch (error) { From b041957ec1a06993571327295b472e4465183e6d Mon Sep 17 00:00:00 2001 From: Fujio Turner Date: Fri, 7 Feb 2025 13:49:19 -0600 Subject: [PATCH 12/13] Update superLinter.yml --- .github/workflows/superLinter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/superLinter.yml b/.github/workflows/superLinter.yml index 794b1b1..f0c28ea 100644 --- a/.github/workflows/superLinter.yml +++ b/.github/workflows/superLinter.yml @@ -22,9 +22,9 @@ jobs: # Uncomment the following lines to enable linter rules for specific languages # VALIDATE_ALL_CODEBASE: true # VALIDATE_JAVASCRIPT_STANDARD: false - VALIDATE_PYTHON_FLAKE8: true + # VALIDATE_PYTHON_FLAKE8: true # VALIDATE_TYPESCRIPT_STANDARD: false # VALIDATE_JAVA: false # VALIDATE_DOCKERFILE: true # VALIDATE_YAML: true - # VALIDATE_BASH: true \ No newline at end of file + # VALIDATE_BASH: true From 237ffcc5927a157d79b508a1e7280bb45675bc96 Mon Sep 17 00:00:00 2001 From: Fujio Turner Date: Fri, 7 Feb 2025 16:25:24 -0600 Subject: [PATCH 13/13] cleaning up examples --- .../1.sync_function_crawl_default_no_security.js | 0 .../2.sync_function_walk_by_docType.js | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename example_sync_functions/{crawl_walk_run_sync_functions => }/1.sync_function_crawl_default_no_security.js (100%) rename example_sync_functions/{crawl_walk_run_sync_functions => }/2.sync_function_walk_by_docType.js (100%) diff --git a/example_sync_functions/crawl_walk_run_sync_functions/1.sync_function_crawl_default_no_security.js b/example_sync_functions/1.sync_function_crawl_default_no_security.js similarity index 100% rename from example_sync_functions/crawl_walk_run_sync_functions/1.sync_function_crawl_default_no_security.js rename to example_sync_functions/1.sync_function_crawl_default_no_security.js diff --git a/example_sync_functions/crawl_walk_run_sync_functions/2.sync_function_walk_by_docType.js b/example_sync_functions/2.sync_function_walk_by_docType.js similarity index 100% rename from example_sync_functions/crawl_walk_run_sync_functions/2.sync_function_walk_by_docType.js rename to example_sync_functions/2.sync_function_walk_by_docType.js