def setUpClass(cls):
     trailing_white_space_config_path = os.path.join(
         TESTS_CONFIG_PATH,
         'trailing_white_space/trailing-white-space-config.json')
     bslint.load_config_file(user_filepath=trailing_white_space_config_path,
                             default_filepath=TEST_CONFIG_FILE_PATH)
     cls.common = Common()
Exemple #2
0
 def setUpClass(cls):
     cls.common = Common()
Exemple #3
0
 def setUpClass(cls):
     this_dir = os.path.dirname(__file__)
     cls.filepath_prefix = os.path.join(this_dir,
                                        "../resources/styling_test_files/")
     cls.common = Common()
 def setUpClass(cls):
     cls.small_max_line_length_config_path = os.path.join(
         TESTS_CONFIG_PATH, 'line_length/small-max-line-length-config.json')
     cls.short_line_length_file_path = os.path.join(
         STYLING_TEST_FILES_PATH, 'short-line-length.txt')
     cls.common = Common()
Exemple #5
0
 def setUpClass(cls):
     no_commas_in_object_config_path = os.path.join(
         COMMAS_IN_OBJECT_PATH, 'commas-in-object-config.json')
     bslint.load_config_file(user_filepath=no_commas_in_object_config_path,
                             default_filepath=TEST_CONFIG_FILE_PATH)
     cls.common = Common()
 def setUpClass(cls):
     cls.trace_free_config_path = os.path.join(
         TESTS_CONFIG_PATH, 'trace_free/trace-free-config.json')
     cls.common = Common()
 def setUpClass(cls):
     cls.single_empty_lines_config_path = os.path.join(
         TESTS_CONFIG_PATH, 'empty_lines/single-empty-lines-config.json')
     cls.double_empty_lines_config_path = os.path.join(
         TESTS_CONFIG_PATH, 'empty_lines/double-empty-lines-config.json')
     cls.common = Common()
 def setUpClass(cls):
     cls.indentation_config_path = os.path.join(
         TESTS_CONFIG_PATH, 'indentation/indentation-config.json')
     cls.common = Common()
 def setUpClass(cls):
     os.chdir(TESTS_PATH)
     cls.common = Common()
 def setUpClass(cls):
     cls.valid_comment_single_quote_no_todo_file_path = os.path.join(STYLING_TEST_FILES_PATH,
                                                                     'valid-comment-single-quote-no-TODO.txt')
     cls.common = Common()
Exemple #11
0
 def setUpClass(cls):
     cls.active_method_spacing_declaration_config_path = os.path.join(
         TESTS_CONFIG_PATH,
         'check_method_declaration/active_method_spacing_declaration.json')
     cls.common = Common()