Code cleanup branch (#618)

* Make height map fallback layer work again
  * Add documentation to joystick button bindings
  * Removed grouped property headers
  * Add new version number constant generated by CMake
  * Make Joystick deadzone work properly
  * Change the startup date on Earth to today
  * Fix key modifier handling
  * Add debugging indices for TreeNodeDebugging
  * Fix script schedule for OsirisRex
  * Do not open Mission schedule automatically
  * Upload default projection texture automatically

  * General code cleanup
  * Fix check_style_guide warnings
  * Remove .clang-format
  * MacOS compile fixes
  * Clang analyzer fixes
This commit is contained in:
Alexander Bock
2018-06-10 04:47:34 +00:00
committed by GitHub
parent 5de728442d
commit 4952f8f977
796 changed files with 22428 additions and 24063 deletions
+6 -4
View File
@@ -214,8 +214,8 @@ def check_naming_convention_subcomponent(lines, component, file):
subcomponent_part = ifndef_symbol[2 + len(component) + 1 :]
subcomponent_part = subcomponent_part[: subcomponent_part.find('_')]
path_part = file.split(os.sep)[1]
second_path_part = file.split(os.sep)[2]
path_part = file.split('/')[1]
second_path_part = file.split('/')[2]
if (path_part.upper() != subcomponent_part) and (second_path_part.upper() != subcomponent_part):
@@ -550,16 +550,18 @@ def check_files(positiveList, negativeList, component, check_function):
files = []
for p in positiveList:
f = glob.glob(p, recursive=True)
f = [fi.replace('\\', '/') for fi in f]
files.extend(f)
negativeFiles = []
for n in negativeList:
f = glob.glob(n, recursive=True)
f = [fi.replace('\\', '/') for fi in f]
negativeFiles.extend(f)
files = [f for f in files if f not in negativeFiles]
filtered_files = [f for f in files if f not in negativeFiles]
for file in files:
for file in filtered_files:
check_function(file, component)