I am checking if an address is a smart contract. Similarly to many articles and example-codes out there, i do this within my function:
uint32 size;
assembly{
size := extcodesize(_to)
}
if(size > 0){}
However, when I do this, as so many others seem to do, I get this error:
security/no-inline-assembly: Avoid using Inline Assembly.
I seem to struggle to find a solution to this. Even in the solidity 0.5.0 documentation they describe inline assembly, so seems weird that it is not allowed. Has anyone else encountered this, and found a solution to it?