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.

This is my wishlist for additional rules. Let me know if you are against any of them getting implemented in the core. I will work on some of them but anything else is up for grabs.

  • Suggest send instead of dangerous call.value() (WIP @federicobond)
  • Suggest avoiding block.timestamp as it can be manipulated by miners (only in functions) (WIP @federicobond)
  • Ensure any function that uses msg.value has payable modifier (WIP @federicobond)
  • Ensure fallback function has payable modifier (WIP @federicobond)
  • Ensure send return value is checked.
  • Extract magic number to constant
  • Suggest using selfdestruct instead of deprecated suicide (WIP @federicobond)
  • Suggest better storage packing (see Warning here)
  • Find duplicate code (this one is hard, perhaps we can write a generic implementation and then integrate it into solium)

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:16 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
Sjorscommented, Aug 19, 2017
  • a function with returns should actually return for each code path, and should return the correct type
  • a function without returns should not have any return statement
0reactions
duaraghav8commented, Apr 7, 2018

@mushketyk you’re not overthinking. There are several rules which are on pause because of this problem of Solium only being file-aware instead of project-aware, ie, at any given time, a rule only has context of 1 file whereas it should have context of the entire project so any external elements can also be considered. This problem is well documented in #83

Let’s keep this rule on hold for now, because making solium project-aware is a major design change so it will take time. I’ll work on it in near future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Amazon Wish List – Everything You Need To Know
Another purpose of the wish list is that it acts as a form of a gift registry. When you create a list and...
Read more >
Terms & Conditions - Wishlist
Gift Cards are not redeemable for cash unless required by law. Unauthorized or unlawful reproduction, resale, modification, or trade of Gift ...
Read more >
Minimalism Rule: How to use Wishlist Strategy - YouTube
Support my channel: https://www.patreon.com/ckspace Instagram: https://www.instagram.com/chengkiiit/ Minimalism video: 5 Reasons Why I am ...
Read more >
Wishlists (Steamworks Documentation)
Players can add your game to their wishlist on Steam to keep track of games they are interested in. When your game releases...
Read more >
Secret Santa Gift Exchange Rules - Giftster
I don't really know what I want for Christmas” response. Give your family a few ideas of things they could include on their...
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