~adiroiban/pocket-lint/pocket-lint

« back to all changes in this revision

Viewing changes to pocketlint/formatcheck.py

  • Committer: Adi Roiban
  • Date: 2013-10-09 12:10:38 UTC
  • Revision ID: adi@roiban.ro-20131009121038-grscw5dwg8ifa7mh
Add tests for Google Closure Linter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
 
82
82
try:
83
83
    import closure_linter
 
84
    # Shut up the linter.
 
85
    closure_linter
84
86
except ImportError:
85
87
    closure_linter = None
86
88
 
665
667
        error_handler = erroraccumulator.ErrorAccumulator()
666
668
        runner.Run(self.file_path, error_handler)
667
669
        for error in error_handler.GetErrors():
668
 
            if error.code in self.google_closure_ignore:
 
670
            if error.code in self.GOOGLE_CLOSURE_IGNORE:
669
671
                continue
670
672
            # Use a similar format as default Google Closure Linter formatter.
671
673
            # Line 12, E:0010: Missing semicolon at end of line