Skip to content

Commit f30da78

Browse files
chiradeepPrasanna Santhanam
authored andcommitted
Reduce RAT errors in developer environment due to generated python files
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
1 parent 53b6ba3 commit f30da78

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

tools/marvin/marvin/codegenerator.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import xml.dom.minidom
1919
from optparse import OptionParser
20+
from textwrap import dedent
2021
import os
2122
import sys
2223
class cmdParameterProperty(object):
@@ -80,6 +81,25 @@ def generate(self, cmd):
8081

8182
self.cmd = cmd
8283
self.cmdsName.append(self.cmd.name)
84+
license = """\
85+
# Licensed to the Apache Software Foundation (ASF) under one
86+
# or more contributor license agreements. See the NOTICE file
87+
# distributed with this work for additional information
88+
# regarding copyright ownership. The ASF licenses this file
89+
# to you under the Apache License, Version 2.0 (the
90+
# "License"); you may not use this file except in compliance
91+
# with the License. You may obtain a copy of the License at
92+
#
93+
# http://www.apache.org/licenses/LICENSE-2.0
94+
#
95+
# Unless required by applicable law or agreed to in writing,
96+
# software distributed under the License is distributed on an
97+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
98+
# KIND, either express or implied. See the License for the
99+
# specific language governing permissions and limitations
100+
# under the License.
101+
"""
102+
self.code = dedent(license)
83103
self.code += "\n"
84104
self.code += '"""%s"""\n'%self.cmd.desc
85105
self.code += 'from baseCmd import *\n'

0 commit comments

Comments
 (0)