Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surface warnings from Zeek linter #4883

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bbannier
Copy link
Contributor

@bbannier bbannier commented Dec 19, 2024

In addition to errors Zeek's parsing can also expose warning messages, e.g., for the following code

event http_stats(c: connection, stats: http_stats_rec) {
    c$removal_hooks;
}

a warning is emitted

warning in /tmp/foo.zeek, line 2: expression value ignored (c$removal_hooks)

This patch adds parsing and propagation of these warning messages.

@bbannier bbannier marked this pull request as ready for review December 19, 2024 12:19
In addition to errors Zeek's parsing can also expose warning messages,
e.g., for the following code

```zeek
event http_stats(c: connection, stats: http_stats_rec) {
    c$removal_hooks;
}
```

a warning is emitted

```
warning in /tmp/foo.zeek, line 2: expression value ignored (c$removal_hooks)
```

This patch adds parsing and propagation of these warning messages.
@bbannier bbannier force-pushed the topic/bbannier/zeek-warnings branch from 73f49ed to 9830bd8 Compare December 19, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant