Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pepicrft committed Aug 13, 2024
1 parent c221085 commit 84531b7
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 4 deletions.
42 changes: 42 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# file options

--symlinks ignore
--disable hoistAwait
--disable hoistTry
--swiftversion 5.7

# format options

--allman false
--binarygrouping 4,8
--closingparen balanced
--commas always
--comments indent
--decimalgrouping 3,6
--elseposition same-line
--empty void
--exponentcase lowercase
--exponentgrouping disabled
--extensionacl on-declarations
--fractiongrouping disabled
--header strip
--hexgrouping 4,8
--hexliteralcase uppercase
--ifdef indent
--indent 4
--indentcase false
--importgrouping testable-bottom
--linebreaks lf
--octalgrouping 4,8
--operatorfunc spaced
--patternlet hoist
--ranges spaced
--self remove
--semicolons inline
--stripunusedargs always
--trimwhitespace always
--maxwidth 130
--wraparguments before-first
--wrapcollections before-first
--wrapconditions after-first
--wrapparameters before-first
24 changes: 24 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
disabled_rules:
- trailing_whitespace
- trailing_comma
- nesting
- cyclomatic_complexity
- file_length
- todo
- function_parameter_count
- opening_brace
- line_length
identifier_name:
min_length:
error: 1
warning: 1
max_length:
warning: 60
error: 80
inclusive_language:
override_allowed_terms:
- masterKey
type_name:
min_length:
error: 1
warning: 1
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/tuist/Path.git", .upToNextMajor(from: "0.3.2")),
.package(url: "https://github.com/tuist/FileSystem.git", .upToNextMajor(from: "0.3.0")),
.package(url: "https://github.com/tuist/Command.git", .upToNextMajor(from: "0.6.3"))
.package(url: "https://github.com/tuist/Command.git", .upToNextMajor(from: "0.6.3")),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let project = Project(
dependencies: [
.external(name: "Path"),
.external(name: "FileSystem"),
.external(name: "Command")
.external(name: "Command"),
]
),
.target(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 2 additions & 2 deletions Tuist/Config.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import ProjectDescription

let config = Config(
// Create an account with "tuist auth" and a project with "tuist project create"
// Create an account with "tuist auth" and a project with "tuist project create"
// then uncomment the section below and set the project full-handle.
// * Read more: https://docs.tuist.io/guides/quick-start/gather-insights
//
fullHandle: "tuist/apple-bundle-size-analyzer"
fullHandle: "tuist/apple-bundle-size-analyzer"
)

0 comments on commit 84531b7

Please sign in to comment.