Skip to content

Commit

Permalink
feat: #63 swift language support (#145)
Browse files Browse the repository at this point in the history
Adds support for SwiftLinting and detect-secrets for Swift codebases.
stujfiter authored Jun 26, 2023

Verified

This commit was signed with the committer’s verified signature.
bep Bjørn Erik Pedersen
1 parent 9af03b9 commit c1bd648
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion secureli/resources/files/swift-pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -10,7 +10,8 @@ repos:
rev: v1.4.0
hooks:
- id: detect-secrets
exclude: .xcscheme$
- repo: https://github.com/realm/SwiftLint
rev: 0.49.1
rev: 0.52.2
hooks:
- id: swiftlint
1 change: 1 addition & 0 deletions secureli/services/language_support.py
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@
"TypeScript",
"JavaScript",
"Go",
"Swift",
]


11 changes: 11 additions & 0 deletions tests/repositories/test_settings_repository.py
Original file line number Diff line number Diff line change
@@ -94,3 +94,14 @@ def test_that_repo_saves_config(
settings_repository.save(settings_file)

mock_open.assert_called_once()


def test_that_repo_saves_without_echo_level(
existent_path: MagicMock,
mock_open: MagicMock,
settings_repository: SecureliRepository,
):
settings_file = SecureliFile()
settings_repository.save(settings_file)

mock_open.assert_called_once()

0 comments on commit c1bd648

Please sign in to comment.