Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: pkg/polymer/lib/src/build/linter.dart

Issue 648883002: Add more options to configure the linter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/lib/src/build/common.dart ('k') | pkg/polymer/lib/transformer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/linter.dart
diff --git a/pkg/polymer/lib/src/build/linter.dart b/pkg/polymer/lib/src/build/linter.dart
index 15100e66ac4f27f904a2487080bb8a6234488c9b..4451a8e7e33135c4832cd5b2cbc7a6bbe253af20 100644
--- a/pkg/polymer/lib/src/build/linter.dart
+++ b/pkg/polymer/lib/src/build/linter.dart
@@ -27,11 +27,11 @@ import 'messages.dart';
class Linter extends Transformer with PolymerTransformer {
final TransformOptions options;
- /// Only run on .html files.
- final String allowedExtensions = '.html';
-
Linter(this.options);
+ isPrimary(AssetId id) =>
+ id.extension == '.html' && options.lint.shouldLint(id.path);
+
Future apply(Transform transform) {
var seen = new Set<AssetId>();
var primary = transform.primaryInput;
« no previous file with comments | « pkg/polymer/lib/src/build/common.dart ('k') | pkg/polymer/lib/transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698