Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

#33: Add support for the variabledeclaration and any AST types #34

Merged
merged 2 commits into from
Jan 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Extension/Rosie/Model/RosieRuleAstTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ internal static class RosieRuleAstTypes
private const string EntityCheckedHtmlElement = "htmlelement";
private const string EntityCheckedClassDefinition = "classdefinition";
private const string EntityCheckedFunctionExpression = "functionexpression";
private const string EntityCheckedVariableDeclaration = "variabledeclaration";
private const string EntityCheckedAny = "any";

/// <summary>
/// Maps the argument element checked to its Rosie counterpart value.
Expand All @@ -40,6 +42,8 @@ internal static class RosieRuleAstTypes
"HtmlElement" => EntityCheckedHtmlElement,
"ClassDefinition" => EntityCheckedClassDefinition,
"FunctionExpression" => EntityCheckedFunctionExpression,
"VariableDeclaration" => EntityCheckedVariableDeclaration,
"Any" => EntityCheckedAny,
_ => null
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/Extension/source.extension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal sealed partial class Vsix
public const string Name = "Codiga";
public const string Description = @"Code Snippets for 15+ languages and Code Analysis with Custom Rules.";
public const string Language = "en-US";
public const string Version = "0.0.16";
public const string Version = "0.0.17";
public const string Author = "Codiga";
public const string Tags = "";
}
Expand Down
2 changes: 1 addition & 1 deletion src/Extension/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="Codiga.7f415e9f-9649-4ced-bbb2-64044b3d0a72" Version="0.0.16" Language="en-US" Publisher="Codiga" />
<Identity Id="Codiga.7f415e9f-9649-4ced-bbb2-64044b3d0a72" Version="0.0.17" Language="en-US" Publisher="Codiga" />
<DisplayName>Codiga</DisplayName>
<Description xml:space="preserve">Code Snippets for 15+ languages and Code Analysis with Custom Rules.</Description>
<MoreInfo>https://www.codiga.io/</MoreInfo>
Expand Down
2 changes: 2 additions & 0 deletions src/GraphQLClient/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,8 @@ enum ElementCheckedEnumeration {
ForLoop
IfCondition
FunctionCall
VariableDeclaration
Any
}

"Information about duplicate occurrence (where it is in your code)"
Expand Down