BLKSerene/Wordless

View on GitHub
wordless/wl_settings/wl_settings_files.py

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

                        if wl_matching.split_tag_embedded(opening_tag_text)[1] == '*':
                            opening_tag_text = opening_tag_text.replace('*', self.tr('TAG'))

Severity: Major
Found in wordless/wl_settings/wl_settings_files.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            if self.settings_tags == 'body_tag_settings' and tag_name == '*':
                                opening_tag_text = opening_tag_text.replace('*', _tr('wl_settings_files', 'TAG'))
                                closing_tag_text = self.model().item(row, 3).text().replace('*', _tr('wl_settings_files', 'TAG'))
                                preview.setText(opening_tag_text + _tr('wl_settings_files', 'token') + closing_tag_text)
                            else:
    Severity: Major
    Found in wordless/wl_settings/wl_settings_files.py - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status