From 82b0711b68806a54121f3f9daa266574e48f78a9 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 9 Mar 2025 21:14:26 +0100 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=9A=80=20[Feature]:=20Implement=20`Ge?= =?UTF-8?q?t-AstLineComment`=20filter=20to=20extract=20comment=20tokens=20?= =?UTF-8?q?from=20PowerShell=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/functions/public/Core/{Get-ASTCommand.ps1 => Get-Command.ps1} | 0 .../public/Core/{Get-ASTFunction.ps1 => Get-Function.ps1} | 0 src/functions/public/Core/{Get-ASTScript.ps1 => Get-Script.ps1} | 0 .../Functions/{Get-ASTFunctionAlias.ps1 => Get-FunctionAlias.ps1} | 0 .../Functions/{Get-ASTFunctionName.ps1 => Get-FunctionName.ps1} | 0 .../Functions/{Get-ASTFunctionType.ps1 => Get-FunctionType.ps1} | 0 .../public/Lines/{Get-ASTLineComment.ps1 => Get-LineComment.ps1} | 0 .../Scripts/{Get-ASTScriptCommand.ps1 => Get-ScriptCommand.ps1} | 0 8 files changed, 0 insertions(+), 0 deletions(-) rename src/functions/public/Core/{Get-ASTCommand.ps1 => Get-Command.ps1} (100%) rename src/functions/public/Core/{Get-ASTFunction.ps1 => Get-Function.ps1} (100%) rename src/functions/public/Core/{Get-ASTScript.ps1 => Get-Script.ps1} (100%) rename src/functions/public/Functions/{Get-ASTFunctionAlias.ps1 => Get-FunctionAlias.ps1} (100%) rename src/functions/public/Functions/{Get-ASTFunctionName.ps1 => Get-FunctionName.ps1} (100%) rename src/functions/public/Functions/{Get-ASTFunctionType.ps1 => Get-FunctionType.ps1} (100%) rename src/functions/public/Lines/{Get-ASTLineComment.ps1 => Get-LineComment.ps1} (100%) rename src/functions/public/Scripts/{Get-ASTScriptCommand.ps1 => Get-ScriptCommand.ps1} (100%) diff --git a/src/functions/public/Core/Get-ASTCommand.ps1 b/src/functions/public/Core/Get-Command.ps1 similarity index 100% rename from src/functions/public/Core/Get-ASTCommand.ps1 rename to src/functions/public/Core/Get-Command.ps1 diff --git a/src/functions/public/Core/Get-ASTFunction.ps1 b/src/functions/public/Core/Get-Function.ps1 similarity index 100% rename from src/functions/public/Core/Get-ASTFunction.ps1 rename to src/functions/public/Core/Get-Function.ps1 diff --git a/src/functions/public/Core/Get-ASTScript.ps1 b/src/functions/public/Core/Get-Script.ps1 similarity index 100% rename from src/functions/public/Core/Get-ASTScript.ps1 rename to src/functions/public/Core/Get-Script.ps1 diff --git a/src/functions/public/Functions/Get-ASTFunctionAlias.ps1 b/src/functions/public/Functions/Get-FunctionAlias.ps1 similarity index 100% rename from src/functions/public/Functions/Get-ASTFunctionAlias.ps1 rename to src/functions/public/Functions/Get-FunctionAlias.ps1 diff --git a/src/functions/public/Functions/Get-ASTFunctionName.ps1 b/src/functions/public/Functions/Get-FunctionName.ps1 similarity index 100% rename from src/functions/public/Functions/Get-ASTFunctionName.ps1 rename to src/functions/public/Functions/Get-FunctionName.ps1 diff --git a/src/functions/public/Functions/Get-ASTFunctionType.ps1 b/src/functions/public/Functions/Get-FunctionType.ps1 similarity index 100% rename from src/functions/public/Functions/Get-ASTFunctionType.ps1 rename to src/functions/public/Functions/Get-FunctionType.ps1 diff --git a/src/functions/public/Lines/Get-ASTLineComment.ps1 b/src/functions/public/Lines/Get-LineComment.ps1 similarity index 100% rename from src/functions/public/Lines/Get-ASTLineComment.ps1 rename to src/functions/public/Lines/Get-LineComment.ps1 diff --git a/src/functions/public/Scripts/Get-ASTScriptCommand.ps1 b/src/functions/public/Scripts/Get-ScriptCommand.ps1 similarity index 100% rename from src/functions/public/Scripts/Get-ASTScriptCommand.ps1 rename to src/functions/public/Scripts/Get-ScriptCommand.ps1 From af8ff644b0002f3d70f0d9c7aa4132dbb8c3d4ab Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 9 Mar 2025 21:15:14 +0100 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=9A=80=20[Feature]:=20Replace=20`Get-?= =?UTF-8?q?LineComment`=20with=20`Get-AstLineComment`=20for=20improved=20c?= =?UTF-8?q?omment=20extraction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/functions/public/Core/{Get-Command.ps1 => Get-AstCommand.ps1} | 0 .../public/Core/{Get-Function.ps1 => Get-AstFunction.ps1} | 0 src/functions/public/Core/{Get-Script.ps1 => Get-AstScript.ps1} | 0 .../Functions/{Get-FunctionAlias.ps1 => Get-AstFunctionAlias.ps1} | 0 .../Functions/{Get-FunctionName.ps1 => Get-AstFunctionName.ps1} | 0 .../Functions/{Get-FunctionType.ps1 => Get-AstFunctionType.ps1} | 0 .../public/Lines/{Get-LineComment.ps1 => Get-AstLineComment.ps1} | 0 .../Scripts/{Get-ScriptCommand.ps1 => Get-AstScriptCommand.ps1} | 0 8 files changed, 0 insertions(+), 0 deletions(-) rename src/functions/public/Core/{Get-Command.ps1 => Get-AstCommand.ps1} (100%) rename src/functions/public/Core/{Get-Function.ps1 => Get-AstFunction.ps1} (100%) rename src/functions/public/Core/{Get-Script.ps1 => Get-AstScript.ps1} (100%) rename src/functions/public/Functions/{Get-FunctionAlias.ps1 => Get-AstFunctionAlias.ps1} (100%) rename src/functions/public/Functions/{Get-FunctionName.ps1 => Get-AstFunctionName.ps1} (100%) rename src/functions/public/Functions/{Get-FunctionType.ps1 => Get-AstFunctionType.ps1} (100%) rename src/functions/public/Lines/{Get-LineComment.ps1 => Get-AstLineComment.ps1} (100%) rename src/functions/public/Scripts/{Get-ScriptCommand.ps1 => Get-AstScriptCommand.ps1} (100%) diff --git a/src/functions/public/Core/Get-Command.ps1 b/src/functions/public/Core/Get-AstCommand.ps1 similarity index 100% rename from src/functions/public/Core/Get-Command.ps1 rename to src/functions/public/Core/Get-AstCommand.ps1 diff --git a/src/functions/public/Core/Get-Function.ps1 b/src/functions/public/Core/Get-AstFunction.ps1 similarity index 100% rename from src/functions/public/Core/Get-Function.ps1 rename to src/functions/public/Core/Get-AstFunction.ps1 diff --git a/src/functions/public/Core/Get-Script.ps1 b/src/functions/public/Core/Get-AstScript.ps1 similarity index 100% rename from src/functions/public/Core/Get-Script.ps1 rename to src/functions/public/Core/Get-AstScript.ps1 diff --git a/src/functions/public/Functions/Get-FunctionAlias.ps1 b/src/functions/public/Functions/Get-AstFunctionAlias.ps1 similarity index 100% rename from src/functions/public/Functions/Get-FunctionAlias.ps1 rename to src/functions/public/Functions/Get-AstFunctionAlias.ps1 diff --git a/src/functions/public/Functions/Get-FunctionName.ps1 b/src/functions/public/Functions/Get-AstFunctionName.ps1 similarity index 100% rename from src/functions/public/Functions/Get-FunctionName.ps1 rename to src/functions/public/Functions/Get-AstFunctionName.ps1 diff --git a/src/functions/public/Functions/Get-FunctionType.ps1 b/src/functions/public/Functions/Get-AstFunctionType.ps1 similarity index 100% rename from src/functions/public/Functions/Get-FunctionType.ps1 rename to src/functions/public/Functions/Get-AstFunctionType.ps1 diff --git a/src/functions/public/Lines/Get-LineComment.ps1 b/src/functions/public/Lines/Get-AstLineComment.ps1 similarity index 100% rename from src/functions/public/Lines/Get-LineComment.ps1 rename to src/functions/public/Lines/Get-AstLineComment.ps1 diff --git a/src/functions/public/Scripts/Get-ScriptCommand.ps1 b/src/functions/public/Scripts/Get-AstScriptCommand.ps1 similarity index 100% rename from src/functions/public/Scripts/Get-ScriptCommand.ps1 rename to src/functions/public/Scripts/Get-AstScriptCommand.ps1 From bdd47ec5cb2f33e114dbc33a37f494744a0cf7ed Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 9 Mar 2025 21:21:26 +0100 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=9A=80=20[Chore]:=20Update=20jscpd=20?= =?UTF-8?q?configuration=20to=20ignore=20all=20source=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/linters/.jscpd.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/linters/.jscpd.json b/.github/linters/.jscpd.json index fc61258..7aaae3d 100644 --- a/.github/linters/.jscpd.json +++ b/.github/linters/.jscpd.json @@ -5,9 +5,7 @@ ], "ignore": [ "**/tests/**", - "**/src/functions/public/Functions/**", - "**/src/functions/public/Core/Get-ASTCommand.ps1", - "**/src/functions/public/Core/Get-ASTFunction.ps1" + "**/src/**" ], "absolute": true }