Permalink
Browse files

Removed closure linter from project, depending on it being installed …

…on the system instead
  • Loading branch information...
1 parent 4536830 commit 4830499ab29a01350c06affd7aa5c9a5fe3b6c60 @miksago miksago committed Apr 15, 2011
Showing with 1 addition and 9,282 deletions.
  1. +1 −3 Makefile
  2. +0 −10 tools/closure_linter/PKG-INFO
  3. +0 −9 tools/closure_linter/README
  4. +0 −10 tools/closure_linter/closure_linter.egg-info/PKG-INFO
  5. +0 −41 tools/closure_linter/closure_linter.egg-info/SOURCES.txt
  6. +0 −1 tools/closure_linter/closure_linter.egg-info/dependency_links.txt
  7. +0 −4 tools/closure_linter/closure_linter.egg-info/entry_points.txt
  8. +0 −1 tools/closure_linter/closure_linter.egg-info/requires.txt
  9. +0 −1 tools/closure_linter/closure_linter.egg-info/top_level.txt
  10. +0 −1 tools/closure_linter/closure_linter/__init__.py
  11. +0 −82 tools/closure_linter/closure_linter/checker.py
  12. +0 −237 tools/closure_linter/closure_linter/checkerbase.py
  13. +0 −1 tools/closure_linter/closure_linter/common/__init__.py
  14. +0 −65 tools/closure_linter/closure_linter/common/error.py
  15. +0 −46 tools/closure_linter/closure_linter/common/erroraccumulator.py
  16. +0 −61 tools/closure_linter/closure_linter/common/errorhandler.py
  17. +0 −204 tools/closure_linter/closure_linter/common/errorprinter.py
  18. +0 −105 tools/closure_linter/closure_linter/common/filetestcase.py
  19. +0 −170 tools/closure_linter/closure_linter/common/htmlutil.py
  20. +0 −39 tools/closure_linter/closure_linter/common/lintrunner.py
  21. +0 −60 tools/closure_linter/closure_linter/common/matcher.py
  22. +0 −126 tools/closure_linter/closure_linter/common/position.py
  23. +0 −190 tools/closure_linter/closure_linter/common/simplefileflags.py
  24. +0 −184 tools/closure_linter/closure_linter/common/tokenizer.py
  25. +0 −125 tools/closure_linter/closure_linter/common/tokens.py
  26. +0 −742 tools/closure_linter/closure_linter/ecmalintrules.py
  27. +0 −521 tools/closure_linter/closure_linter/ecmametadatapass.py
  28. +0 −336 tools/closure_linter/closure_linter/error_fixer.py
  29. +0 −42 tools/closure_linter/closure_linter/errorrules.py
  30. +0 −122 tools/closure_linter/closure_linter/errors.py
  31. +0 −47 tools/closure_linter/closure_linter/fixjsstyle.py
  32. +0 −61 tools/closure_linter/closure_linter/fixjsstyle_test.py
  33. +0 −99 tools/closure_linter/closure_linter/full_test.py
  34. +0 −144 tools/closure_linter/closure_linter/gjslint.py
  35. +0 −543 tools/closure_linter/closure_linter/indentation.py
  36. +0 −282 tools/closure_linter/closure_linter/javascriptlintrules.py
  37. +0 −221 tools/closure_linter/closure_linter/javascriptstatetracker.py
  38. +0 −53 tools/closure_linter/closure_linter/javascriptstatetracker_test.py
  39. +0 −365 tools/closure_linter/closure_linter/javascripttokenizer.py
  40. +0 −147 tools/closure_linter/closure_linter/javascripttokens.py
  41. +0 −964 tools/closure_linter/closure_linter/statetracker.py
  42. +0 −285 tools/closure_linter/closure_linter/tokenutil.py
  43. +0 −2,489 tools/closure_linter/gflags.py
  44. +0 −5 tools/closure_linter/setup.cfg
  45. +0 −38 tools/closure_linter/setup.py
View
@@ -19,9 +19,7 @@ benchmark:
doc:
node tools/doctool/doctool.js
-GJSLINT = PYTHONPATH=tools/closure_linter/ \
- python tools/closure_linter/closure_linter/gjslint.py \
- --unix_mode --strict --nojsdoc
+GJSLINT = gjslint --unix_mode --strict --nojsdoc
lint:
@$(GJSLINT) -r lib/
@@ -1,10 +0,0 @@
-Metadata-Version: 1.0
-Name: closure_linter
-Version: 2.2.6
-Summary: Closure Linter
-Home-page: http://code.google.com/p/closure-linter
-Author: The Closure Linter Authors
-Author-email: opensource@google.com
-License: Apache
-Description: UNKNOWN
-Platform: UNKNOWN
@@ -1,9 +0,0 @@
-This repository contains the Closure Linter - a style checker for JavaScript.
-
-To install the application, run
- python ./setup.py install
-
-After installing, you get two helper applications installed into /usr/local/bin:
-
- gjslint.py - runs the linter and checks for errors
- fixjsstyle.py - tries to fix errors automatically
@@ -1,10 +0,0 @@
-Metadata-Version: 1.0
-Name: closure-linter
-Version: 2.2.6
-Summary: Closure Linter
-Home-page: http://code.google.com/p/closure-linter
-Author: The Closure Linter Authors
-Author-email: opensource@google.com
-License: Apache
-Description: UNKNOWN
-Platform: UNKNOWN
@@ -1,41 +0,0 @@
-README
-setup.py
-closure_linter/__init__.py
-closure_linter/checker.py
-closure_linter/checkerbase.py
-closure_linter/ecmalintrules.py
-closure_linter/ecmametadatapass.py
-closure_linter/error_fixer.py
-closure_linter/errorrules.py
-closure_linter/errors.py
-closure_linter/fixjsstyle.py
-closure_linter/fixjsstyle_test.py
-closure_linter/full_test.py
-closure_linter/gjslint.py
-closure_linter/indentation.py
-closure_linter/javascriptlintrules.py
-closure_linter/javascriptstatetracker.py
-closure_linter/javascriptstatetracker_test.py
-closure_linter/javascripttokenizer.py
-closure_linter/javascripttokens.py
-closure_linter/statetracker.py
-closure_linter/tokenutil.py
-closure_linter.egg-info/PKG-INFO
-closure_linter.egg-info/SOURCES.txt
-closure_linter.egg-info/dependency_links.txt
-closure_linter.egg-info/entry_points.txt
-closure_linter.egg-info/requires.txt
-closure_linter.egg-info/top_level.txt
-closure_linter/common/__init__.py
-closure_linter/common/error.py
-closure_linter/common/erroraccumulator.py
-closure_linter/common/errorhandler.py
-closure_linter/common/errorprinter.py
-closure_linter/common/filetestcase.py
-closure_linter/common/htmlutil.py
-closure_linter/common/lintrunner.py
-closure_linter/common/matcher.py
-closure_linter/common/position.py
-closure_linter/common/simplefileflags.py
-closure_linter/common/tokenizer.py
-closure_linter/common/tokens.py
@@ -1,4 +0,0 @@
-[console_scripts]
-fixjsstyle = closure_linter.fixjsstyle:main
-gjslint = closure_linter.gjslint:main
-
@@ -1 +0,0 @@
-python-gflags
@@ -1 +0,0 @@
-closure_linter
@@ -1 +0,0 @@
-#!/usr/bin/env python
@@ -1,82 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright 2007 The Closure Linter Authors. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS-IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Core methods for checking JS files for common style guide violations."""
-
-__author__ = ('robbyw@google.com (Robert Walker)',
- 'ajp@google.com (Andy Perelson)')
-
-import gflags as flags
-
-from closure_linter import checkerbase
-from closure_linter import ecmametadatapass
-from closure_linter import errors
-from closure_linter import javascriptlintrules
-from closure_linter import javascriptstatetracker
-from closure_linter.common import errorprinter
-from closure_linter.common import lintrunner
-
-flags.DEFINE_list('limited_doc_files', ['dummy.js', 'externs.js'],
- 'List of files with relaxed documentation checks. Will not '
- 'report errors for missing documentation, some missing '
- 'descriptions, or methods whose @return tags don\'t have a '
- 'matching return statement.')
-
-
-class JavaScriptStyleChecker(checkerbase.CheckerBase):
- """Checker that applies JavaScriptLintRules."""
-
- def __init__(self, error_handler):
- """Initialize an JavaScriptStyleChecker object.
-
- Args:
- error_handler: Error handler to pass all errors to
- """
- checkerbase.CheckerBase.__init__(
- self,
- error_handler=error_handler,
- lint_rules=javascriptlintrules.JavaScriptLintRules(),
- state_tracker=javascriptstatetracker.JavaScriptStateTracker(
- closurized_namespaces=flags.FLAGS.closurized_namespaces),
- metadata_pass=ecmametadatapass.EcmaMetaDataPass(),
- limited_doc_files=flags.FLAGS.limited_doc_files)
-
-
-class GJsLintRunner(lintrunner.LintRunner):
- """Wrapper class to run GJsLint."""
-
- def Run(self, filenames, error_handler=None):
- """Run GJsLint on the given filenames.
-
- Args:
- filenames: The filenames to check
- error_handler: An optional ErrorHandler object, an ErrorPrinter is used if
- none is specified.
-
- Returns:
- error_count, file_count: The number of errors and the number of files that
- contain errors.
- """
- if not error_handler:
- error_handler = errorprinter.ErrorPrinter(errors.NEW_ERRORS)
-
- checker = JavaScriptStyleChecker(error_handler)
-
- # Check the list of files.
- for filename in filenames:
- checker.Check(filename)
-
- return error_handler
Oops, something went wrong.

0 comments on commit 4830499

Please sign in to comment.