anchor.diff:  
   import 'common.dart';
   
  -// TODO: if a package is declared in the pubspec but not used, warn
  -
  -// TODO: if a package is declared in dev, but used in lib or bin, warn
  -
  -// TODO: if a package is declared in reg. deps, but only used outside of bin/ and lib/, warn
  -
  -// TODO: if a package is used, but not referenced in the pubspec, warn
  -
   class CheckCommand extends Command {
     CheckCommand() : super('check',
         'analyze all the source code in the project - fail if there are any errors');
  
positive.code:     context.analysisOptions = new AnalysisOptionsImpl()..cacheSize = 512;
      List<UriResolver> resolvers = [
          new DartUriResolver(sdk),
          new FileUriResolver(),
          new PackageUriResolver([new JavaFile(project.packagePath)])
      ];
  
  
negative.code:         new SdkExtUriResolver(_createPackagesFolderPackageMap(project)));
      }
  
      resolvers.add(new FileUriResolver());
  
      context.sourceFactory = new SourceFactory(resolvers, packages);
      AnalysisEngine.instance.logger = new _Logger();
  
  