]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix H102, H103 Apache 2.0 license hacking check error
authorAkihiro MOTOKI <motoki@da.jp.nec.com>
Tue, 6 Aug 2013 18:48:29 +0000 (03:48 +0900)
committerAkihiro MOTOKI <motoki@da.jp.nec.com>
Thu, 8 Aug 2013 03:46:18 +0000 (12:46 +0900)
Closes-Bug: #1209070

This commit addresses H102 and H103 hacking check.
  H102  Apache 2.0 license header not found
  H103  Header does not match Apache 2.0 License notice

Also ignores H233 hacking check in tox.ini.
  H233  Python 3.x incompatible use of print operator

Change-Id: I081964bf0b9e21614da2f146bd3ba8d28e211024

neutron/api/v2/attributes.py
neutron/api/v2/router.py
neutron/plugins/openvswitch/common/constants.py
neutron/tests/unit/db/firewall/test_db_firewall.py
neutron/tests/unit/extensions/v2attributes.py
neutron/tests/unit/openvswitch/test_ovs_db.py
neutron/tests/unit/services/firewall/test_fwaas_plugin.py
neutron/tests/unit/services/loadbalancer/test_loadbalancer_plugin.py
neutron/tests/unit/test_extension_firewall.py
neutron/tests/unit/test_quota_ext.py
tox.ini

index d7aea8c2aee3db35554cc95802ca7203dbf1b5bc..23f90e31f18508e7062d4594d7300f3adcdedf6a 100644 (file)
@@ -3,14 +3,14 @@
 # Copyright (c) 2012 OpenStack Foundation.
 # All Rights Reserved.
 #
-#    Licensed under the Apache License, Version 2.0 (the 'License'); you may
+#    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
+#    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.
index 9f943d8f98faecb59b48b6bda4ab8f0c3ae0a503..1a4196c5038c1f5a7416bd060268433511f8e3ce 100644 (file)
@@ -1,13 +1,13 @@
 # Copyright (c) 2012 OpenStack Foundation.
 #
-# Licensed under the Apache License, Version 2.0 (the 'License');
+# 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,
+# 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
index 0e6425f09f78d1551484bba1711e28723a88328a..7b42fb314d13c951eb8e86e40d509e355703b0b0 100644 (file)
@@ -1,13 +1,13 @@
 # Copyright (c) 2012 OpenStack Foundation.
 #
-# Licensed under the Apache License, Version 2.0 (the 'License');
+# 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,
+# 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
index e5b8b3e2ebe0b19796f844d66bfa4129f906eed6..052f95a7ee636d5a42e40dc8295ce6a2986901ef 100644 (file)
@@ -12,7 +12,8 @@
 #  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 spec
+#  License for the specific language governing permissions and limitations
+#  under the License.
 #
 # @author: Sumit Naiksatam, sumitnaiksatam@gmail.com, Big Switch Networks, Inc.
 
index 49e86ba32757caa8265dd1f3ba44b0e84349a826..ab40f260af9adb5cce478c3ff856e24eda2c1256 100644 (file)
@@ -1,13 +1,13 @@
 # Copyright (c) 2012 OpenStack Foundation.
 #
-# Licensed under the Apache License, Version 2.0 (the 'License');
+# 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,
+# 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
index d16bf0ae455ee5802706992c62567ce9039b20bb..8831cca072f0d34a0b6374fc59d2e7087c104e06 100644 (file)
@@ -1,13 +1,13 @@
 # Copyright (c) 2012 OpenStack Foundation.
 #
-# Licensed under the Apache License, Version 2.0 (the 'License');
+# 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,
+# 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
index eda0e56de1c18299786d493c2f848be1a780b1ed..4d0f53383a92d7e943efd4521095dc396a9766af 100644 (file)
@@ -12,7 +12,8 @@
 #  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 spec
+#  License for the specific language governing permissions and limitations
+#  under the License.
 #
 # @author: Sumit Naiksatam, sumitnaiksatam@gmail.com, Big Switch Networks, Inc.
 
index ad1ef62534c2eb098900a55cd41d00f3c45f2906..a4130ba8fa3b24e8155f25849bb1717a08701392 100644 (file)
@@ -12,7 +12,8 @@
 #  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 spec
+#  License for the specific language governing permissions and limitations
+#  under the License.
 
 import copy
 
index d3d086995dfcbcd7ecaf629f92477831f1179b0b..7550a706fe5ca6ea153c101438bd8d7411719842 100644 (file)
@@ -12,8 +12,9 @@
 #  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 spec
-#
+#  License for the specific language governing permissions and limitations
+#  under the License.
+
 # @author: Sumit Naiksatam, sumitnaiksatam@gmail.com, Big Switch Networks, Inc.
 
 import copy
index 916da82351b612e2656f14333547e16165e77190..5f33570b3c38d607ecc7399e0a1da91c1da24379 100644 (file)
@@ -1,3 +1,20 @@
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
+# Copyright 2012 OpenStack Foundation.
+# 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.
+
 import mock
 from oslo.config import cfg
 import testtools
diff --git a/tox.ini b/tox.ini
index c87903eb888c8f658ac6591f8e5950327ec02bc8..cfd19a5ba9763f654d3449ae2fcb38e2479f32b4 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -33,10 +33,11 @@ commands = {posargs}
 # E711/E712 comparison to False should be 'if cond is False:' or 'if not cond:'
 #        query = query.filter(Component.disabled == False)
 # E125 continuation line does not distinguish itself from next logical line
+# H233  Python 3.x incompatible use of print operator
 # H301 one import per line
 # H302 import only modules
 # TODO(marun) H404 multi line docstring should start with a summary
-ignore = E711,E712,E125,H301,H302,H404
+ignore = E711,E712,E125,H233,H301,H302,H404
 show-source = true
 builtins = _
 exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools