Skip to content
Draft
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: 1 addition & 3 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ Preserve Existing Code: The current codebase is the source of truth and must be

Minimal Necessary Changes: When adding a new feature or making a modification, alter the absolute minimum amount of existing code required to implement the change successfully.

Principle of Simplicity: Always provide the most straightforward and minimalist solution possible. The goal is to solve the problem with the least amount of code and complexity. Avoid premature optimization or over-engineering.

Anytime someone asks about the business logic diagram, utilize the [Business Logic Diagram](../diag.mmd).
Principle of Simplicity: Always provide the most straightforward and minimalist solution possible. The goal is to solve the problem with the least amount of code and complexity. Avoid premature optimization or over-engineering.
4 changes: 0 additions & 4 deletions .github/instructions/c.instructions.md

This file was deleted.

5 changes: 0 additions & 5 deletions .github/instructions/rust.instructions.md

This file was deleted.

4 changes: 1 addition & 3 deletions DotnetApp/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.IO;
using System.Linq;
using Microsoft.Extensions.FileProviders;
using System.Linq;
using DotnetApp.Services;
using DotnetApp.Models;

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ World's most intelligent autocomplete!

Copilot understands what your intent is via context, like file name, comment contents, surrounding code and other open files in your workspace.

1. `point.py`
1. `calculator.py`

Copilot code completions even promotes best practices while you code as comments are one of the primary ways of prompting it!

Expand All @@ -24,7 +24,7 @@ You can also interact with Copilot code completions (+ more) inside a file in ot

### Next Edit Suggestions

1. `point3D.py`
1. `calculator.py`

## [Copilot Chat](https://code.visualstudio.com/docs/copilot/chat/copilot-chat)
No need to context switch! Everything I need, in my IDE.
Expand Down Expand Up @@ -65,7 +65,7 @@ Best Practice: Only add the minimum context necessary to answer the question you
1. Do you see any security vulnerabilities in this code (`sql.py`)?
1. I'm looking to reduce tech debt across my codebase. Is there anything in my .NET app (`DotnetApp`) that I should consider improving or fixing?
#### Understand
1. Can you explain what this file is doing (`server.rs`)?
1. Can you explain what this file is doing (`sql.py`)?
#### Generate
- Test data
- Documentation
Expand Down
Binary file removed cloud_infra.png
Binary file not shown.
112 changes: 0 additions & 112 deletions cobol/CUSTPROC.cbl

This file was deleted.

11 changes: 0 additions & 11 deletions diag.mmd

This file was deleted.

4 changes: 0 additions & 4 deletions docs/ADOPTION.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/COMPARISON.md

This file was deleted.

12 changes: 0 additions & 12 deletions docs/SDD.md

This file was deleted.

Empty file removed python/point.py
Empty file.
12 changes: 5 additions & 7 deletions python/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@
def search_user(username):
conn = mysql.connector.connect(user='root', password='password', host='localhost', database='users')
cursor = conn.cursor()
query = "SELECT * FROM users WHERE username = '" + username + "'"
query = "SELECT * FROM users WHERE username = %s"

# Execute the query and process the results
cursor.execute(query)
cursor.execute(query, (username,))
result = cursor.fetchall()
cursor.close()
conn.close()
return result

def add_user(username, password):
conn = mysql.connector.connect
conn = mysql.connector.connect(user='root', password='password', host='localhost', database='users')

Check failure

Code scanning / SonarCloud

Credentials should not be hard-coded High

Revoke and change this password, as it is compromised. See more on SonarQube Cloud
cursor = conn.cursor()
query = "INSERT INTO users (username, password) VALUES ('" + username + "', '" + password + "')"
query = "INSERT INTO users (username, password) VALUES (%s, %s)"

# Execute the query
cursor.execute(query)
cursor.execute(query, (username, password))
conn.commit()
cursor.close()
conn.close()
Expand Down
Empty file removed python/tests/test_calculator.py
Empty file.
39 changes: 0 additions & 39 deletions rust/server.rs

This file was deleted.

Loading