Skip to content

Commit

Permalink
Merge pull request #25 from Senior-Capstone-2024/genJSON
Browse files Browse the repository at this point in the history
Creates createJSON that allows user to create customizations and then…
  • Loading branch information
aravindrsripada authored Jun 4, 2024
2 parents f3c83dc + 29f46a5 commit e009fe0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion output/data.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"3":["Improper Capitalized Primitive Type"],"4":["Improper Capitalized Primitive Type"],"12":["Code Smell: Consider refactoring to reduce method length"],"15":["Improper Capitalized Primitive Type","Improper Capitalized Primitive Type"],"16":["Improper Capitalized Primitive Type","Improper Capitalized Primitive Type"],"17":["Improper Capitalized Primitive Type"],"30":["Code smell found: Long Parameters in method public static int addNumbers (int a, int b, int c, int d){"],"38":["Code Smell: Consider refactoring to reduce method length"],"57":["Improper Capitalized Primitive Type"]}
{"12":["Code Smell: Consider refactoring to reduce method length"],"30":["Code smell found: Long Parameters in method public static int addNumbers (int a, int b, int c, int d){"],"38":["Code Smell: Consider refactoring to reduce method length"]}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
{
"command": "extension.longParameters",
"title": "findLongParameters"
},
{
"command": "extension.createJSON",
"title": "createJSON"
}
],
"menus": {
Expand Down
6 changes: 5 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ const filePath = 'C:\\Users\\Will\\Desktop\\cw\\gradeFast-1.0\\output\\data.json
export function activate(context: vscode.ExtensionContext) {
const disposable = vscode.commands.registerCommand('extension.findCapitalizedPrimitiveTypes', () => {
findCapitalizedPrimitiveTypes(myMap);
convertMapToJson(myMap, filePath);
});

const create = vscode.commands.registerCommand('extension.createJSON', ()=> {
convertMapToJson(myMap, filePath);
}
)

const disposable2 = vscode.commands.registerCommand('extension.findCapitalizedMethodName', () => {
findCapitalizedMethodName(myMap);
} );
Expand Down

0 comments on commit e009fe0

Please sign in to comment.