summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2016-01-17 12:11:07 -0800
committerJoshua Harlow <harlowja@gmail.com>2016-01-17 12:11:27 -0800
commit12db43fcf37c05734ebca295f2e0d04121c445eb (patch)
tree01bc2b0e0b0157dc28e401ff67eb8df21d273093
parent7a1a10e322d42555f782e49ad372b48283681616 (diff)
Begin to add initial scanner modules
Notes
Notes (review): Code-Review+2: Joshua Harlow <harlowja@yahoo-inc.com> Workflow+1: Joshua Harlow <harlowja@yahoo-inc.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Mon, 18 Jan 2016 23:05:37 +0000 Reviewed-on: https://review.openstack.org/268804 Project: openstack/nerd-reviewer Branch: refs/heads/master
-rw-r--r--nerdreviewer/scanners/__init__.py0
-rw-r--r--nerdreviewer/scanners/speller.py27
-rw-r--r--requirements.txt1
3 files changed, 28 insertions, 0 deletions
diff --git a/nerdreviewer/scanners/__init__.py b/nerdreviewer/scanners/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/nerdreviewer/scanners/__init__.py
diff --git a/nerdreviewer/scanners/speller.py b/nerdreviewer/scanners/speller.py
new file mode 100644
index 0000000..be8fee0
--- /dev/null
+++ b/nerdreviewer/scanners/speller.py
@@ -0,0 +1,27 @@
1# Licensed under the Apache License, Version 2.0 (the "License"); you may
2# not use this file except in compliance with the License. You may obtain
3# a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10# License for the specific language governing permissions and limitations
11# under the License.
12
13from oslo_utils import importutils
14
15enchant = importutils.try_import("enchant")
16
17
18class Scanner(object):
19 version = "0.1"
20
21 @staticmethod
22 def is_available():
23 return enchant is not None
24
25 @staticmethod
26 def scan_for_problems(review):
27 return []
diff --git a/requirements.txt b/requirements.txt
index e8b35b7..4cae908 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -4,6 +4,7 @@
4 4
5pbr>=1.6 # Apache-2.0 5pbr>=1.6 # Apache-2.0
6paramiko>=1.13.0 # LGPL 6paramiko>=1.13.0 # LGPL
7oslo.utils>=3.2.0 # Apache-2.0
7enum34;python_version=='2.7' or python_version=='2.6' or python_version=='3.3' # BSD 8enum34;python_version=='2.7' or python_version=='2.6' or python_version=='3.3' # BSD
8jsonschema>=2.0.0,<3.0.0,!=2.5.0 # MIT 9jsonschema>=2.0.0,<3.0.0,!=2.5.0 # MIT
9netaddr>=0.7.12,!=0.7.16 # BSD 10netaddr>=0.7.12,!=0.7.16 # BSD