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

systemd unit checker #1135

Closed
holomorph opened this issue Oct 15, 2016 · 2 comments

Comments

@holomorph
Copy link
Contributor

commented Oct 15, 2016

i feel silly for having written this, but here you go! I just realized systemd-analyze had this, but in my brief testing: the line numbers the tool outputs are questionable, but the messages are useful and accurate.

(flycheck-define-checker systemd-analyze
  "A systemd unit checker using systemd-analyze(1).

See URL `https://www.freedesktop.org/software/systemd/man/systemd-analyze.html'."
  :command ("systemd-analyze" "verify" source-original)
  :error-patterns
  ((error line-start "["
          (file-name) ":" line "] " (message) line-end))
  :modes (systemd-mode))
@cpitclaudel

This comment has been minimized.

Copy link
Member

commented Oct 15, 2016

Looks very nice, thanks! I think we'd be happy to include this by default with Flycheck. However, can you package this snippet as a pull request, with corresponding updates to the manual?

Thanks!

@manuel-uberti

This comment has been minimized.

Copy link
Contributor

commented Oct 15, 2016

Interesting indeed, please open a PR. 👍

holomorph added a commit to holomorph/flycheck that referenced this issue Oct 17, 2016

holomorph added a commit to holomorph/flycheck that referenced this issue Oct 18, 2016

holomorph added a commit to holomorph/flycheck that referenced this issue Oct 18, 2016

@lunaryorn lunaryorn closed this in 37954d9 Oct 18, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.