Commit Graph
3900 Commits
Author SHA1 Message Date
JP Simard 3619bf369f Fix file name violation on Linux 2018-05-11 22:32:18 -07:00
JP Simard 2819c89ec3 Fix force-try violation 2018-05-11 22:28:26 -07:00
JP Simard 84bfdca774 Enable File Name rule for SwiftLint & fix violations 2018-05-11 22:17:40 -07:00
JP Simard 24ec44d288 Add file_name opt-in rule
validating that file names contain the name of a
type or extension declared in the file (if any).
2018-05-11 22:17:39 -07:00
JP SimardandGitHub 62a3b707fa Merge pull request #2185 from marcelofabri/default-params-end
Add function_default_parameter_at_end rule
2018-05-11 20:42:08 -07:00
JP SimardandGitHub cfd43e3231 Merge pull request #2198 from erichoracek/eh—literal-expression-end-indentation-autocorrect
Make literal end indentation rule correctable
2018-05-11 20:41:47 -07:00
Marcelo FabriandGitHub cadf6112fc Merge pull request #2200 from marcelofabri/bugfix-2187
Fix false negatives in `implicit_return`
2018-05-11 13:17:53 -07:00
Eric Horacek 1a9aa1e792 Fix CHANGELOG 2018-05-11 10:35:08 -07:00
Marcelo Fabri 5de844f64d Fix false negatives in implicit_return
Fixes #2187
2018-05-11 10:12:57 -07:00
JP SimardandGitHub a9dba5436b Merge pull request #2195 from varunpm1/master
Added ignores_default_parameters when calculating parameter count
2018-05-11 10:12:07 -07:00
JP SimardandGitHub add9b53ea3 Merge branch 'master' into master 2018-05-11 10:11:27 -07:00
JP SimardandGitHub 7777fca280 changelog formatting 2018-05-11 10:10:47 -07:00
Marcelo FabriandGitHub d5822c1c4c Update CHANGELOG.md 2018-05-11 09:51:53 -07:00
Eric Horacek c15e668a57 Fix accidental exponential linting 2018-05-11 09:49:30 -07:00
Eric HoracekandEric Horacek 2184b526ef Test cascading corrections 2018-05-11 09:49:30 -07:00
Eric Horacek e259629b95 Make literal end indentation rule correctable
Follows the same ideas in #2192
2018-05-11 09:49:30 -07:00
Marcelo Fabri 588bed83e6 Add function_default_parameter_at_end rule 2018-05-11 09:18:30 -07:00
Marcelo FabriandGitHub 50f49ee7b7 Merge pull request #2189 from ornithocoder/empty_xctests
Add empty_xctest_method opt-in rule
2018-05-11 09:15:22 -07:00
Marcelo FabriandGitHub 1cec0ff8fb Merge pull request #2199 from marcelofabri/bugfix-2188
Fix `unneeded_parentheses_in_closure_argument` false positives
2018-05-11 08:49:05 -07:00
Marcelo FabriandGitHub 13fb9db7ce Merge pull request #2201 from marcelofabri/improve-changelog
Fixing #1897 in CHANGELOG
2018-05-11 08:46:44 -07:00
Ornithologist Coder d61fd40a95 Use substructure to check if method is empty 2018-05-11 10:10:54 +02:00
Marcelo Fabri e5600cf587 Fixing #1897 2018-05-10 23:25:03 -07:00
Marcelo Fabri c716a7d68c Fix unneeded_parentheses_in_closure_argument false positives
Fixes #2188
2018-05-10 23:20:30 -07:00
JP SimardandGitHub e48bd9ef0a Merge pull request #2196 from erichoracek/eh--fix-operator
Fix operator usage spacing nested generics false positive
2018-05-10 16:31:37 -07:00
Eric Horacek b7f7205288 Add CHANGELOG entry 2018-05-10 16:30:03 -07:00
Eric Horacek f18571effc Fix operator usage spacing nested generics false positive
This was being corrected to:
```
let model = Generic<Container<Button>, NSAttributedString > (
```
2018-05-10 16:09:15 -07:00
Ornithologist Coder 7cef22b968 Check if the method doesn't have any parameters 2018-05-11 00:11:31 +02:00
Varun P M 794160a8d2 Added ignores_default_parameters when calculating parameter count 2018-05-10 17:40:30 +05:30
Ornithologist Coder 5eea1d10ba Add empty_xctest_method opt-in rule 2018-05-10 14:05:42 +02:00
JP SimardandGitHub 6a85b43482 Merge pull request #2192 from erichoracek/eh-close-end-indentation-autocorrect
Make closure end indentation rule autocorrectable
2018-05-08 22:17:04 -07:00
Eric Horacek aaf0b9a5d7 compactMap, whitespace 2018-05-08 21:54:04 -07:00
Eric Horacek f12ec1ea54 Update changelog 2018-05-08 21:00:19 -07:00
Eric Horacek d21b787980 Make closure end indentation rule correctable 2018-05-08 21:00:19 -07:00
JP SimardandGitHub fcaa675ff0 Merge pull request #2183 from marcelofabri/bugfix-2182
Fix false positive in redundant_set_access_control
2018-05-06 22:29:09 -07:00
Marcelo Fabri dc93d1de82 Fix false positive in redundant_set_access_control
Fixes #2182
2018-05-06 21:42:00 -07:00
JP SimardandGitHub 9a340a2ce7 Merge pull request #2132 from erichoracek/eh-close-end-indentation-params
Include named closure parameters in closure end indentation rule
2018-05-06 16:45:09 -07:00
Eric Horacek 26c36d463a Whitespace 2018-05-06 15:07:01 -07:00
Eric Horacek 2ecc794f7c Regenerate rules 2018-05-06 15:07:01 -07:00
Eric Horacek e766ce9829 Move up CHANGELOG entry 2018-05-06 15:07:01 -07:00
Eric Horacek 326c53cc56 Only validate if first argument starts with a newline 2018-05-06 15:07:01 -07:00
Eric Horacek 0441c1072c Update CHANGELOG 2018-05-06 15:07:01 -07:00
Eric Horacek b9a2862d12 Include named closure parameters in closure end indentation
Fixes #2121
2018-05-06 15:07:01 -07:00
JP SimardandGitHub d4b1aa6e62 Merge pull request #2167 from realm/feature/switch-align-indentation
Add `indented_cases` to `switch_case_alignment` rule
2018-05-06 14:34:32 -07:00
JP Simard 4bf69d7d84 Remove newlines from switch case reason 2018-05-06 14:33:47 -07:00
freak4pc 1ba963c443 Address PR feedback from @jpsim 2018-05-07 00:06:00 +03:00
freak4pc 3738512511 Added indented triggering cases 2018-05-06 23:34:14 +03:00
freak4pc b611e622e6 Updated CHANGELOG entry 2018-05-06 23:34:14 +03:00
freak4pc 4d3a1173b6 Apply correct severity form configuration 2018-05-06 23:34:14 +03:00
freak4pc 35f388f04d Remove redundant test 2018-05-06 23:34:14 +03:00
freak4pc d429ad4358 Get rid of duplicated RuleConfiguration and use reason instead 2018-05-06 23:34:14 +03:00