Begin to add initial scanner modules
Change-Id: I3fba1cd83723c2787e67dca641b8907abbd577bf
This commit is contained in:
parent
7a1a10e322
commit
12db43fcf3
|
@ -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 []
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
pbr>=1.6 # Apache-2.0
|
pbr>=1.6 # Apache-2.0
|
||||||
paramiko>=1.13.0 # LGPL
|
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
|
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
|
jsonschema>=2.0.0,<3.0.0,!=2.5.0 # MIT
|
||||||
netaddr>=0.7.12,!=0.7.16 # BSD
|
netaddr>=0.7.12,!=0.7.16 # BSD
|
||||||
|
|
Loading…
Reference in New Issue