Merge "Begin to add initial scanner modules"

This commit is contained in:
Jenkins 2016-01-18 23:05:37 +00:00 committed by Gerrit Code Review
commit 5dc4fd17eb
3 changed files with 28 additions and 0 deletions

View File

View File

@ -0,0 +1,27 @@
# 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.
from oslo_utils import importutils
enchant = importutils.try_import("enchant")
class Scanner(object):
version = "0.1"
@staticmethod
def is_available():
return enchant is not None
@staticmethod
def scan_for_problems(review):
return []

View File

@ -4,6 +4,7 @@
pbr>=1.6 # Apache-2.0
paramiko>=1.13.0 # LGPL
oslo.utils>=3.2.0 # Apache-2.0
enum34;python_version=='2.7' or python_version=='2.6' or python_version=='3.3' # BSD
jsonschema>=2.0.0,<3.0.0,!=2.5.0 # MIT
netaddr>=0.7.12,!=0.7.16 # BSD