Je passe de la vérification de fichiers avec jslint à jshint mais l'instruction de ligne de commande ne semble pas fonctionner. Pour jslint j'ai utilisé la commande rhino /home/mrtest/Desktop/jslint.js browser.js
qui a fonctionné. J'ai essayé la même chose avec rhino /home/mrtest/Desktop/jshint.js browser.js
qui n'a rien fait.Exécution de jshint avec rhino
Qu'est-ce que je fais mal?
Merci.
Pas tout à fait. Vous devez concaténer 'rhino.js' et' jshint.js'. La distribution jshint contient un Makefile qui fait cela. L'appel 'make rhino' crée un fichier' build/jshint-rhino.js'. Utilisez ce fichier: 'rhino /home/mrtest/Desktop/jshint/build/jshint-rhino.js browser.js' – ralfstx
Merci ralfstx. J'espère pouvoir voter pour votre commentaire. –