Merge "Begin to add initial scanner modules"
This commit is contained in:
commit
5dc4fd17eb
0
nerdreviewer/scanners/__init__.py
Normal file
0
nerdreviewer/scanners/__init__.py
Normal file
27
nerdreviewer/scanners/speller.py
Normal file
27
nerdreviewer/scanners/speller.py
Normal 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 []
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user