question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🚀] Coding Challenge RSN (Refactoring Safety Net)

See original GitHub issue
  1. Create an automated system to detect changes done inside vuln-snippet blocks that lead to inconsistency with associated fix option files, e.g. via diff.
  2. Introduce an npm script and CI/CD step that perform this check and report/fail on findings
  3. An advanced option could be to automatically carry over code snippet changes (unless done in the actually vulnerable or ignored lines) into the fix files

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:23 (23 by maintainers)

github_iconTop GitHub Comments

2reactions
the-procommented, Jan 13, 2022

Can i work on this?

1reaction
bkimminichcommented, Jan 17, 2022

I suppose the “OK” (or “PASSED” as it was before) just implied that the others somehow not okay… 🤣

… that and the green/red for added/removed lines also makes it look a bit more good vs. bad than we’d want it to.

I’ll see if I can make this more clear with different wording and coloring later today or tomorrow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The refactoring safety net - IT informa AB
There are many good reasons why you should unit test your code, an important one is that if done right, they serve as...
Read more >
Test First Then Refactor - Medium
Tests are the safety net that allow you to refactor with confidence. But what if your legacy code doesn't have any tests? Then...
Read more >
The developer's refactoring safety net
The developer's refactoring safety net ... to prove their code works as they intended by providing a unit test with at least 80%...
Read more >
5 coding exercises to practice refactoring Legacy Code
If you never did, picture them as small coding exercises. They are meant to be practiced again and again and again. The goal...
Read more >
Red, Green, Refactor | Codecademy
The green phase is where you implement code to make your test pass. ... As I refactor sortArray() , I have the safety...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found