Skip to content

Commit f3a7bdb

Browse files
Merge pull request #1 from shakurocom/GS1Barcode-v-1.0.0
GS1 Barcode Parser v 1.0.0
2 parents a4af117 + 35655fa commit f3a7bdb

34 files changed

Lines changed: 3574 additions & 0 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*.perspectivev3
1010
!default.perspectivev3
1111
xcuserdata
12+
profile
1213
.DS_Store
1314
*.moved-aside
1415
DerivedData

.swiftlint.yml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
swiftlint_version: 0.43.1
2+
3+
excluded: # paths to ignore during linting. Takes precedence over `included`.
4+
- Pods
5+
- DerivedData
6+
7+
analyzer_rules: # Rules run by `swiftlint analyze` (experimental)
8+
- unused_declaration
9+
- unused_import
10+
11+
deployment_target:
12+
iOS_deployment_target: 10.0
13+
14+
closure_body_length:
15+
warning: 30
16+
error: 30
17+
18+
identifier_name:
19+
max_length: 150
20+
21+
file_length:
22+
warning: 1500
23+
error: 1500
24+
#ignore_comment_only_lines: true
25+
26+
function_body_length:
27+
warning: 200
28+
error: 200
29+
30+
function_parameter_count:
31+
warning: 8
32+
error: 8
33+
34+
line_length:
35+
warning: 1000
36+
error: 1000
37+
38+
type_body_length:
39+
warning: 1000
40+
error: 1000
41+
42+
type_name:
43+
max_length: 150
44+
45+
cyclomatic_complexity:
46+
warning: 30
47+
error: 30
48+
49+
opt_in_rules:
50+
- closure_body_length
51+
# - closure_end_indentation # disabled, because xcode's block indentation depends on `[weak self]`
52+
- closure_spacing
53+
- contains_over_filter_count
54+
- contains_over_filter_is_empty
55+
- discouraged_optional_boolean
56+
- duplicate_imports
57+
- empty_collection_literal
58+
- empty_count
59+
- empty_string
60+
- explicit_init
61+
- fatal_error_message
62+
# - file_name # disabled, because results are not consistent
63+
# - file_header
64+
- first_where
65+
- force_unwrapping
66+
- identical_operands
67+
# - indentation_width # disabled, because multiline arguments are not recognized properly
68+
- inert_defer
69+
- last_where
70+
- legacy_random
71+
- let_var_whitespace
72+
# - multiline_arguments
73+
- multiline_parameters
74+
- multiple_closures_with_trailing_closure
75+
- no_space_in_method_call
76+
# - object_literal
77+
- operator_usage_whitespace
78+
- optional_enum_case_matching
79+
- prefer_self_type_over_type_of_self
80+
- prefixed_toplevel_constant
81+
- private_action
82+
- private_over_fileprivate
83+
- prohibited_super_call
84+
- reduce_into
85+
- redundant_nil_coalescing
86+
- single_test_class
87+
- sorted_first_last
88+
# - sorted_imports
89+
- strict_fileprivate
90+
- strong_iboutlet
91+
- toggle_bool
92+
# - type_contents_order # https://realm.github.io/SwiftLint/type_contents_order.html
93+
# - trailing_closure
94+
- unowned_variable_capture
95+
- unused_setter_value
96+
- vertical_parameter_alignment_on_call
97+
- yoda_condition

GS1BarcodeParser.xcworkspace/contents.xcworkspacedata

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

GS1BarcodeParserTest/GS1BarcodeParserTest.swift

Lines changed: 544 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)