JP Simard
ea33f68c85
fix compilation on Linux
2016-12-15 00:36:16 -08:00
JP Simard
55004d554c
make VoidReturnRule correctable
2016-12-14 17:13:17 -08:00
JP Simard
6665986d3c
Merge pull request #965 from marcelofabri/empty-parameters-rule
...
Add `empty_parameters` rule
2016-12-14 15:32:24 -08:00
Marcelo Fabri
dc5020441d
Date
2016-12-14 16:54:10 -02:00
JP Simard
bfdd95c964
minor clean up to HTMLReporter.swift
2016-12-13 12:33:05 -08:00
Fabian Ehrentraud
2f8c54d3c7
uppercase XML
2016-12-13 12:33:05 -08:00
Fabian Ehrentraud
c88a5d0371
moved expected html reporter result for tests to external file too
2016-12-13 12:33:05 -08:00
Fabian Ehrentraud
223f2defd1
fixed <nopath> not being xml encoded + use <nopath> for html reporter too
2016-12-13 12:33:05 -08:00
Fabian Ehrentraud
96aa86b500
moved String+XML.swift to Extensions folder and fixed header comment
2016-12-13 12:33:05 -08:00
Fabian Ehrentraud
ea5f3319ca
escape characters for xml reporters
2016-12-13 12:32:32 -08:00
Marcelo Fabri
3262e70e1a
Excluding curried functions
2016-12-13 18:05:39 -02:00
Marcelo Fabri
d465d7840e
Add empty_parameters rule
...
Fixes #573
2016-12-13 18:05:38 -02:00
JP Simard
8b49cd36b5
Merge pull request #967 from marcelofabri/void-return-rule
...
Void return rule
2016-12-13 12:04:01 -08:00
JP Simard
3f7c010be8
fix specifying multiple rule identifiers in comment commands
2016-12-13 08:55:05 -08:00
Marcelo Fabri
7af7eb8fbe
Handling curried declarations
2016-12-13 11:57:43 -02:00
Marcelo Fabri
c862e810b5
Handling curried functions
2016-12-13 10:41:09 -02:00
Marcelo Fabri
1351fdb643
Fix violations for void_return rule
2016-12-13 10:41:08 -02:00
Marcelo Fabri
e786f676eb
Add void_return rule
...
Fixes #964
2016-12-13 10:41:08 -02:00
JP Simard
11bfa938ae
Merge pull request #960 from marcelofabri/closure_parameter_position
...
Add closure_parameter_position rule
2016-12-13 01:33:00 -08:00
JP Simard
bbf594dd08
fix indentation in ClosureParameterPositionRule
2016-12-13 01:04:24 -08:00
JP Simard
80e34272a2
minor changes to ProhibitedSuperConfiguration
2016-12-13 00:11:55 -08:00
JP Simard
bfd2c37d9a
simplify ProhibitedSuperRule.validateFile(...)
2016-12-12 23:59:41 -08:00
Aaron McTavish
8fbb4c431b
Continue consolidating guard statement
...
Per code review feedback from @jpsim on PR #971 .
2016-12-13 07:29:54 +00:00
Aaron McTavish
3aed7c415e
Consolidate guard statements
...
Per code review feedback from @jpsim on PR #971 .
2016-12-13 07:22:15 +00: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
b599dc49cb
Make AttributesRule opt-in
2016-12-12 23:42:18 -02:00
Marcelo Fabri
482dd16833
Dates
2016-12-12 23:04:42 -02:00
Marcelo Fabri
e4a556dea5
Handle consecutive lines with attributes
2016-12-12 23:02:04 -02:00
Marcelo Fabri
85dede2c79
Merge branch 'master' into attributes-rule
2016-12-12 22:36:21 -02:00
Marcelo Fabri
5359582782
Refactoring SwiftExpressionKind
2016-12-12 22:27:46 -02:00
Marcelo Fabri
a48097103a
Add closure_parameter_position rule
...
Fixes #931
2016-12-12 21:12:45 -02:00
JP Simard
c5bcece945
Merge pull request #955 from marcelofabri/typealias-name
...
`type_name` rule now validates `typealias` and `associatedtype`
2016-12-12 14:05:59 -08:00
JP Simard
396dcb2e99
prefer passing function to filter
2016-12-12 13:59:47 -08:00
Marcelo Fabri
fce551ae8a
Validating associatedtypes
...
Fixes #959
2016-12-12 02:43:45 -02:00
Marcelo Fabri
7a4325220e
Using character offset for regex result
2016-12-12 02:26:21 -02:00
Marcelo Fabri
fd09fde10e
Trying to fix Linux build
2016-12-12 01:32:36 -02:00
Marcelo Fabri
6752739dac
Using .bridge() to run on Linux
2016-12-12 00:27:43 -02:00
Marcelo Fabri
9c43a21fed
Merge branch 'master' into attributes-rule
2016-12-11 23:46:18 -02:00
Marcelo Fabri
b1812b4eb1
Using .bridge()
2016-12-11 23:45:33 -02:00
Marcelo Fabri
0a03476745
PR feedback
2016-12-11 23:44:15 -02:00
Marcelo Fabri
33166f8f88
Fix traling_comma when using commas in comments.
...
Fixes #940
2016-12-11 23:44:15 -02:00
Marcelo Fabri
6476d85332
type_name rule now validates typealias too
...
Fixes #49
2016-12-11 23:35:36 -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
d8cdad852a
clean up regex code in StatementPositionRule.swift
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
5b98fbe2f6
make Command.swift compile on Linux
...
by addressing differences in APIs between Scanner on Linux and Darwin.
2016-12-11 14:04:49 -08:00
JP Simard
8c171458f8
make QueuedPrint.swift compile on Linux
...
by adding an explicit `import Dispatch` and disabling the `atexit_b` call
on Linux. This just means that we won't be able to guarantee that the print()
buffer will have been flushed at program exit. Hopefully this doesn't
cause too many issues.
2016-12-11 14:04:49 -08:00