No code required — the fishing rod is an ordinary shop item. It costs only a few hundred bells at Nook's store, so a short saving spree is all it takes.
There is also a free route. If you show up to the town's fishing tournament without a rod and speak to the mayor, he will hand you one so you can take part. Between the two options, there is never a reason to go hunting for a cheat.