Clean up .robot files

  - Run rflint on .robot to ensure they conform to the standards.
    Fix the files that don't.
  - Add robot_custom_rules.py file for our repository custom rules.
  - run pycodestyle on new changes.

Change-Id: Idb2b895b81cb00220076a32b413e124980f4057b
Signed-off-by: Joy Onyerikwu <onyekachukwu.joy.onyerikwu@ibm.com>
diff --git a/robot_custom_rules.py b/robot_custom_rules.py
new file mode 100644
index 0000000..39eecdf
--- /dev/null
+++ b/robot_custom_rules.py
@@ -0,0 +1,19 @@
+#!/usr/bin/env python
+# Custom rules file for robotframework-lint.
+# Example usage: python -m rflint -A robot_standards -R robot_custom_rules.py .
+import re
+from rflint.common import SuiteRule, ERROR
+
+
+class ExtendInvalidTable(SuiteRule):
+    r'''
+    Extend robotframework-lint SuiteRule function for InvalidTable to allow a table section if it is
+    a section of comments. e.g "*** Comments ***"
+    '''
+    severity = ERROR
+
+    def apply(self, suite):
+        for table in suite.tables:
+            if (not re.match(r'^(settings?|metadata|(test )?cases?|(user )?keywords?|variables?|comments?)$',
+                             table.name, re.IGNORECASE)):
+                self.report(suite, "Unknown table name '%s'" % table.name, table.linenumber)