-
Consider this MWE
```modelica
model checkExist
Boolean exists(start = false);
equation
if (time > 0.0) then
Modelica.Utilities.Streams.print(String(time),"file.txt");
end if;
exist…
-
I need a mechanism to mark functions as having no side effects (pure functions).
Most external interfaces come with state, so I recommend having side effects by default and adding the `@pure`(after…
oovm updated
8 months ago
-
Add the [Pure] annotation to functions that need it. Easy fixes are in the Point3DExtensions class. This will help resharper users to realize when they need to assign the result of a function to anot…
-
```shell
$ sold --version
sold 0.76.0+commit.37302a88.mod.Linux.g++
$ cat fc.sol
```
``` TvmSolidity
contract fc {
function foo() internal pure {
bar();
}
function bar() …
-
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used [patch-package](https://github.com/ds300/patch-package) to patch `rc-motion@2.9.3` for the project I'm working on.
…
-
Hi!
When using `sprintf` in a class with a `@psalm-immutable` I get the error:
```
ImpureFunctionCall: Cannot call an impure function from a mutation-free context
```
The thing is that, if…
-
The permissions framework classes inheriting from `ArchesPermissionBase` don't have any state, e.g. instance attributes. They get instantiated as singletons and attached as a module-level constant. Th…
-
```
$ cat Class.hxx
class Class {
public:
virtual ~Class() = 0;
};
$ cat .clang-tidy
---
Checks: '*'
$ clang-tidy Class.hxx
Error while trying to load a compilation database:
Could not …
-
https://psalm.dev/r/9f37666cc3
`ReflectionFunctionAbstract->isInternal` is stubbed pure in psalm, but there's no way to template based on the output of it.
It would also be nice to be able to te…
-
## Expected Behavior of the rule
The rule should detect code inside lambdas that should be pure functions that contain side effects. For example:
```kotlin
listOf(1, 2)
.map {
println(it)
i…