PLC-lang / rusty

Structured Text Parser and LLVM Frontend
GNU Lesser General Public License v3.0
206 stars 52 forks source link

feat: validate action-calls without parentheses #1170

Closed mhasel closed 5 months ago

mhasel commented 6 months ago

Adds a validation which checks if a reference to an action is used outside of a calling-context (i.e. action-call without ()). I struggled to come up with test-cases for false-positives, since the use-cases of actions are quite limited already. If you can think of any others, feel free to let me know/push tests directly to this branch.

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.64%. Comparing base (b357a05) to head (78922c2).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1170 +/- ## ======================================= Coverage 95.63% 95.64% ======================================= Files 148 148 Lines 43585 43604 +19 ======================================= + Hits 41684 41703 +19 Misses 1901 1901 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.