Harshil-Jani / Harshil-Jani/Rust-uncompetitive-programming

Setup CI/Github Bot to judge if the solution contains Problem Link

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
CI enhancement good first issue help wanted
Dominant language
Rust
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

So, The innovation is upto you. You can bring whatever you want to the table.

### Solution 1
My opinion here would be to setup a simple CI where you check against each .rs file and make sure that it contains a comment on second line `Problem Link : `.

But this is not sufficient. User may copy paste the `.template.rs` and still have Problem link. But, As of now, I am thinking to get strict file names. So, check case insensitively if the comment line contains the same name as fileline.

i.e.
Filename : `1703A.rs`
```
// Problem Link : https://codeforces.com/contest/1703/problem/A
```

If 1703 exist in the comment and the Filename it works.

Also, Don't make it strict regex by following the entire link. Because in future I am thinking to include other platforms as well.

---

### Solution 2
Extract the Link from comment and use any link checkers online to verify if the link is correct/working or not.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.