Marcelo Fabri
e26710c0ad
Merge pull request #1362 from SiarheiFedartsou/implicitly_unwrapped_optional_rule
...
Add `implicitly_unwrapped_optional` rule
2017-03-22 21:16:18 +01:00
Siarhei Fedartsou
e6c718bdbd
Fix operator in ColonConfiguration
2017-03-19 13:19:55 +03:00
Siarhei Fedartsou
2e579aaa6c
Add configuration for implicitly_unwrapped_optional_rule, add triggering on complex types(AnyCollection<Int!> for ex.)
2017-03-19 00:27:13 +03:00
Siarhei Fedartsou
fe8359a81d
Add implicitly_unwrapped_optional rule
2017-03-18 00:01:32 +03:00
JP Simard
1d27ae1549
Merge pull request #1299 from mlwelles/cyclomatic_complexity_ignores_case_statments
...
Cyclomatic complexity ignores case statments
2017-03-10 15:19:46 -08:00
t_hayashi
6872018862
Add configuration for NestingRule
2017-03-04 01:14:30 +09:00
Michael Welles
a6175faad0
made adjustments per PR feedback, added tests for cyclomatic complexity configuration class
2017-02-15 11:20:17 -05:00
Michael Welles
d561b1acf6
Merge branch 'master' of github.com:realm/SwiftLint into cyclomatic_complexity_ignores_case_statments
2017-02-10 11:17:37 -05:00
JP Simard
a10156b5eb
update LineLengthConfiguration.consoleDescription after #1264
2017-02-09 14:42:10 -08:00
JP Simard
69f885cf08
small refactoring after #1264
2017-02-09 14:42:09 -08:00
Michael Welles
42a7186e45
Added ignores case statements as option to cyclomatic complexity rule
2017-02-09 15:09:49 -05:00
Marcelo Fabri
2300ae3daf
Small style changes
2017-02-06 21:59:30 -02:00
Michael Welles
15a7a88297
Modified so that kinds(forByteOffset:) does not require a separate
...
filter() setup of the results
2017-02-06 15:58:45 -05:00
Michael Welles
c9ff0aa07f
Changes from PR feedback. Long comments following code in a line will now trigger, configuration will now fail if invalud value types are set for options
2017-02-06 15:33:44 -05:00
Michael Welles
ccc840b340
Changed LineLengthConfigurationFlag enum to be an OptionSet struct, per pull request feedback
2017-01-31 13:56:26 -05:00
Michael Welles
cd843e7fcd
Added "ignores_comments" and "ignores_function_declarations" as boolean options to LineLengthRule
2017-01-30 17:51:56 -05:00
Bjarke Hesthaven Søndergaard
4a9d354210
Fixes to comply with review
2017-01-16 20:38:29 +01:00
Bjarke Hesthaven Søndergaard
ad749ac9f7
Add minimum_fraction_length configuration
2017-01-16 18:40:11 +01:00
JP Simard
a98b0c0070
address some PR feedback
2017-01-09 19:28:08 -08:00
JP Simard
9e7cdc3282
update SwiftLintFramework/Protocols to follow Swift 3 API Design Guidelines
2017-01-09 19:19:25 -08:00
Marcelo Fabri
50535e7e5c
Refactor regex functions to accept options
...
Fixes #1127
2017-01-06 21:04:15 -02:00
Javier Hernández
cf2c7ced39
Move method to strip urls to String extension
2017-01-06 01:05:54 +01:00
Javier Hernández
ed42d9b38e
Add line length configuration to ignore urls
2017-01-06 01:05:54 +01:00
Aaron McTavish
00b8e79318
Add max_empty_lines config to vertical_whitespace
...
Update `vertical_whitespace` rule to allow configuration of the number
of consecutive empty lines before a violation using `max_empty_lines`.
The default value is still 1 line.
2017-01-05 10:05:03 +00:00
Marcelo Fabri
5282134fec
Remove unnecessary import
2017-01-02 03:25:04 -02:00
Marcelo Fabri
d44bf896b9
Avoid duplicating default value
2017-01-02 02:55:41 -02:00
Marcelo Fabri
09a251a8f6
number_separator can be configured with a min length
...
Fixes #1109
2017-01-02 02:50:04 -02:00
Marcelo Fabri
f7cb7bae2c
PR feedback
2016-12-22 00:09:27 -02:00
Marcelo Fabri
1d06302643
Add dictionary colon validation to colon rule
...
Fixes #603
2016-12-22 00:09:27 -02:00
JP Simard
80e34272a2
minor changes to ProhibitedSuperConfiguration
2016-12-13 00:11:55 -08:00
Aaron McTavish
f54c9c4d5a
Add ProhibitedSuperRule
...
Resolves #970 : `Rule: Methods calling super that should not`
2016-12-13 07:22:11 +00:00
Marcelo Fabri
482dd16833
Dates
2016-12-12 23:04:42 -02:00
Marcelo Fabri
fd09fde10e
Trying to fix Linux build
2016-12-12 01:32:36 -02:00
Marcelo Fabri
9c43a21fed
Merge branch 'master' into attributes-rule
2016-12-11 23:46:18 -02:00
JP Simard
89526264db
improve RegexConfiguration
2016-12-11 16:49:28 -08:00
JP Simard
3431ef4798
improve PrivateUnitTestRule
2016-12-11 16:41:45 -08:00
JP Simard
38c221b698
break up SeverityConfiguration.applyConfiguration(_:)
...
to help the type checker
2016-12-11 16:23:49 -08:00
JP Simard
54acf03983
use NSRegularExpression with a placeholder pattern to compile on Linux
...
since `NSRegularExpression.init()` isn't available on Linux yet.
2016-12-11 14:04:49 -08:00
JP Simard
49b5ee665d
omit needless types in static calls in PrivateUnitTestConfiguration.swift
2016-12-11 14:04:49 -08:00
JP Simard
43edeeba25
eliminate needless conditional casts in FileHeaderConfiguration
2016-12-11 13:48:41 -08:00
Marcelo Fabri
2ddf7757d7
Merge branch 'master' into attributes-rule
2016-12-09 14:50:48 -02:00
Marcelo Fabri
13b0cfe623
Fixing inconsistencies
2016-12-08 18:29:57 -02:00
Marcelo Fabri
54d8958386
PR feedback
2016-12-08 18:29:57 -02:00
Marcelo Fabri
ac0b0824c9
Swift 3 migration
2016-12-08 18:29:57 -02:00
Marcelo Fabri
b4a3c17b41
Initial work to support configuration in file header rule
2016-12-08 18:29:57 -02:00
JP Simard
a57526d639
omit 'self.' references when not ambiguous
2016-12-08 01:25:54 -08:00
Marcelo Fabri
1d42d29714
Merge branch 'master' into attributes-rule
2016-12-04 18:36:06 -02:00
Marcelo Fabri
0c018a15c7
Swift 3 migration
2016-12-04 18:19:44 -02:00
JP Simard
576e1a5d4d
remove unnecessary .lowercased() calls
...
now that ViolationSeverity is already lowercase.
2016-12-01 22:29:09 -08:00
JP Simard
19fad01b29
make all enum members lowercase to comply with Swift 3 API Guidelines
2016-12-01 22:16:21 -08:00