Skip to content

42 norminette syntax checker for flycheck extension for emacs

Notifications You must be signed in to change notification settings

Damrod/42norminette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

42norminette

42 norminette syntax checker for flycheck extension for emacs. Put the following code in your ~/.emacs, ~/.emacs.el, or ~/.emacs.d/init.el file:

(require 'flycheck)
(flycheck-define-checker norminette
  "The 42 Norminette linter.
Install URL `https://github.com/42Paris/norminette.git'.
Rules `XXXX / norme.en.pdf'"
  :command ("norminette2" source)
  :error-patterns
  ((error line-start "Error (line " line ", col " column "): " (message) line-end))
  :modes c-mode
  :next-checkers ((error . c/c++-clang)
				  (warning . c/c++-cppcheck)))
(add-to-list 'flycheck-checkers 'norminette)

Install norminette https://github.com/42Paris/norminette.git Download the "normised.sh" shell script, that formats properly the norminette output for flycheck, and symlink it in some of your $PATH folders as norminette2. If your path to your norminette binary is not /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.7.0/bin/norminette , change it in the "normised.sh" wrapper. If you want to use some flags, add them in the "normised.sh" wrapper.

About

42 norminette syntax checker for flycheck extension for emacs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages