久しぶりにClosure Linterのリポジトリを確認してみたらバージョンが2.3.10に上がっていて、色々と機能が追加されていました。 更新内容を確認していたら、なんと MAX_LINE_LENGTHが設定可能になっていて、さらにエラーが個別に制御できるようになっていますよ! 今まではこれができなくて、導入に二の足を踏んでしまう人も多かったんじゃないかと思います。 --max_line_lengthと--disableというコマンドラインオプションでそれぞれ指定可能です。以下はヘルプから抜粋。 closure_linter.errorrules: --disable: Disable specific error. Usage Ex.: gjslint --disable 1,0011 foo.js. (a comma separated list) --[no]jsdoc: Whet
先日JSHint 1.1.0がリリースされ、そのリリースノートに気になる記述がありました。 Adds new option gcl to make JSHint style checks compatible with Google Closure Linter. うそーまじでーなにそれヤバイ! 普段は仕事でClosureにどっぷりなせいもあってClosure Linterを使っているんですが、Closure LinterってJSDocとかお作法的なとこはチェックしてくれるけど、他のLintツールが当たり前にチェックしてくれるとこはやってくれないんですよね。たとえばvarの付け忘れとか。 Closure Compilerを使ってコンパイル時にチェックすることもできるけど、規模が大きくなってくるとその結果が出るまでに10分とか待たないといけなくっていやな感じー。Closure Linterと
Update: It seems Google has made this possible directly now, the feature request was marked fixed. Usage as follows: --disable Disable specific error. Usage Ex.: gjslint --disable 1,0011 foo.js. --max_line_length Maximum line length allowed without warning. This makes the following mostly obsolete, but I’m leaving it here anyway. I have recently been working on ical.js, a library to parse rfc5545
JSHint 1.1.0 is out Anton Kovalyov Mar 5th, 2013 JSHint 1.1.0 is out! This release contains important bug fixes for 1.0.0 and a couple of new features. This version adds a new environment option for PhantomJS: phantom. (#814)Fixes a bug where JSHint would skip parent directory when looking for .jshintrc file. (#850)Adds new option gcl to make JSHint style checks compatible with Google Closure Lint
IDEs AppCode CLion DataGrip DataSpell Fleet GoLand IntelliJ IDEA PhpStorm PyCharm RustRover Rider RubyMine WebStorm Plugins & Services Big Data Tools Code With Me Quality Assurance JetBrains Platform Scala Toolbox App Writerside JetBrains AI Grazie Team Tools Datalore Space TeamCity Upsource YouTrack Hub Qodana .NET & Visual Studio .NET Tools ReSharper C++ Languages & Frameworks Kotlin Ktor MPS Am
連載「JavaScript活用最前線 ── 大規模開発の現場から」第3回目の記事を書きました。 今回はClosure CompilerとClosure Linterの紹介と、コンパイル時の警告をもとにコードチェックツールとして利用する方法を解説しました。 最近は割とClosure Compilerを使ってる人が増えてきたような印象がありますが、コードチェックにまで活用している例はあまり見ないので参考になれば嬉しいです。 これはあくまで僕が経験したケースですが、JavaScriptで実際に複数人で大規模なコードを書いてみると、2〜3万行くらいまでは割と頑張ればなんとかなります。でもそれ以上の規模になってくると、型のぶれが抑えられなくなってきます。型のぶれとは、数値を期待してるとこに数値文字列がきて足し算したら文字列連結になっちゃたとか、配列を期待してたら添え字付きのオブジェクト(!!)が入っ
README.mdFork of Google Closure Linter (https://developers.google.com/closure/utilities/). Major forking purpose - add some behaviour that Googlers refuse to add. For example, ignoring particular linter errors - https://groups.google.com/forum/?fromgroups#!topic/closure-linter-discuss/CdPdKjJ4pNs or http://code.google.com/p/closure-linter/issues/detail?id=16. This is Python package, so to install
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く