summaryrefslogtreecommitdiff
path: root/.rubocop.yml
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'even-more-frozen-string-lib' into 'master'Rémy Coutable2018-10-111-1/+2
|\ | | | | | | | | Enable even more frozen string in lib/**/*.rb See merge request gitlab-org/gitlab-ce!22206
| * Enable even more frozen string in lib/**/*.rbgfyoung2018-10-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enables frozen string for the following files: * lib/generators/**/*.rb * lib/gitaly/**/*.rb * lib/google_api/**/*.rb * lib/haml_lint/**/*.rb * lib/json_web_token/**/*.rb * lib/mattermost/**/*.rb * lib/microsoft_teams/**/*.rb * lib/object_storage/**/*.rb * lib/omni_auth/**/*.rb * lib/peek/**/*.rb * lib/rouge/**/*.rb * lib/rspec_flaky/**/*.rb * lib/system_check/**/*.rb Partially addresses #47424.
* | Initial commitSanad Liaquat2018-10-111-0/+1
| | | | | | | | | | | | | | | | | | | | Use ACCEPT_INSECURE_CERTS env var and fix step Simplify saml signin Fix rubo cop offence Add missing # frozen_string_literal: true
* | Inline RSpec/FilePath rubocop ruleJames Edwards-Jones2018-10-091-1/+10
|/ | | | | Moves RSpec/FilePath cop from gitlab-styles, so we can specify filepaths to ignore without hardcoding them in the gem.
* Check frozen string in style buildsgfyoung2018-09-281-0/+19
|
* Correct Gitlab Capitalization in code filesMarcel Amirault2018-09-211-1/+1
|
* Move N_ calls into separate filesMark Chao2018-08-141-0/+2
| | | | | | These are dynamic translations, so has to be marked explicitly using `N_`, but they are not used in runtime, so can exist in separate file. https://github.com/grosser/gettext_i18n_rails#unfound-translations-with-rake-gettextfind
* Explicitly disable the Style/SafeNavigation copRémy Coutable2018-08-101-0/+4
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Enable rubocop for db/**/* and ee/db/**/*49582-enable-cops-for-dbLin Jen-Shin2018-07-251-2/+4
|
* Merge branch 'fj-15329-services-callbacks-ssrf' into 'security-10-6'Douwe Maan2018-03-211-0/+3
| | | | | Server Side Request Forgery in Services and Web Hooks See merge request gitlab/gitlabhq!2337
* [CE] Add Naming/FileName rule checking expected class/module per filenameGabriel Mazetto2018-03-081-0/+72
|
* Exclude plugins dir from rubocop and codeclimate configDmitriy Zaporozhets2018-02-261-0/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Port some RuboCop and doc changes from EERémy Coutable2018-02-131-2/+26
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Cache rubocop cache for CI42338-rubocop-cacheLin Jen-Shin2018-01-251-0/+1
|
* Require our own custom cops; Remove missing cops41480-require-custom-copsLin Jen-Shin2017-12-261-0/+3
| | | | Also try to use the same config from EE
* Use gitlab-stylesRémy Coutable2017-12-221-1212/+4
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Backport changes from EELin Jen-Shin2017-12-151-2/+2
|
* Move ModuleWithInstanceVariables to Gitlab namespaceLin Jen-Shin2017-11-221-1/+14
| | | | | And use .rubocop.yml to exclude paths we don't care, rather than using the cop itself to exclude.
* Decrease ABC threshold to 54.28Maxim Rydkin2017-10-221-1/+1
|
* Decrease Perceived Complexity threshold to 14Maxim Rydkin2017-10-201-1/+1
|
* Decrease Perceived Complexity threshold to 15Maxim Rydkin2017-09-121-1/+1
|
* Decrease Cyclomatic Complexity threshold to 13Maxim Rydkin2017-09-121-1/+1
|
* refactor `app/helpers/projects_helper.rb:21:3`Maxim Rydkin2017-09-071-1/+1
|
* Decrease ABC threshold to 55.25Maxim Rydkin2017-08-311-1/+1
|
* Decrease Metrics/PerceivedComplexity threshold to 17Maxim Rydkin2017-08-311-1/+1
|
* Merge branch '31362_decrease_cyclomatic_complexity_threshold_step2' into ↵Robert Speicher2017-08-291-1/+1
|\ | | | | | | | | | | | | 'master' Decrease Metrics/CyclomaticComplexity threshold to 15 See merge request !13905
| * Decrease Metrics/CyclomaticComplexity threshold to 15Maxim Rydkin2017-08-291-1/+1
| |
* | exclude spec/ and features/ from `Style/PredicateName` copMaxim Rydkin2017-08-291-0/+12
|/
* Update rubocop-gitlab-security to 0.1.0rs-update-rubocop-gitlab-securityRobert Speicher2017-08-281-0/+4
|
* Merge branch 'rs-more-public-send-whitelists' into 'master'Rémy Coutable2017-08-161-5/+9
|\ | | | | | | | | Whitelist or fix additional `Gitlab/PublicSend` cop violations See merge request !13467
| * Whitelist or fix additional `Gitlab/PublicSend` cop violationsrs-more-public-send-whitelistsRobert Speicher2017-08-141-5/+9
| | | | | | | | | | An upcoming update to rubocop-gitlab-security added additional violations.
* | Enable Layout/TrailingWhitespace cop and auto-correct offensesRobert Speicher2017-08-151-0/+4
|/
* Fix cop descriptionRémy Coutable2017-08-111-3/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Enable the RSpec/HookArgument cop and auto-correct offensesRobert Speicher2017-08-101-0/+5
|
* Enable the Layout/SpaceBeforeBlockBraces coprc/enable-the-Layout/SpaceBeforeBlockBraces-copRémy Coutable2017-08-091-0/+7
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Re-enable SqlInjection and CommandInjectionBrian Neel2017-08-081-0/+33
|
* Disable the Rails/Delegate copRémy Coutable2017-08-031-1/+2
| | | | | | | See https://gitlab.com/gitlab-org/gitlab-ce/issues/35869 for the rationale. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Bump rubocop to 0.49.1 and rubocop-rspec to 1.15.1Takuya Noguchi2017-08-011-195/+257
|
* Decrease ABC threshold to 56.96Maxim Rydkin2017-07-241-1/+1
|
* Disable RSpec/BeforeAfterAll and enable RSpec/ImplicitExpect copsenable-a-few-rubocop-rspec-copsRémy Coutable2017-06-301-0/+10
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-0/+5
|
* Enable RSpec/SingleLineHook copRobert Speicher2017-06-141-1/+1
|
* Add a custom RSpec/SingleLineHook copRobert Speicher2017-06-141-0/+7
| | | | | This cop adds an offense when `before`, `after`, or `around` are used as single-line blocks.
* Disable the Style/PreferredHashMethods copdisable-Style/PreferredHashMethods-copRémy Coutable2017-06-091-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Enable the Style/PreferredHashMethods coprc/enable-PreferredHashMethods-copRémy Coutable2017-06-021-0/+9
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add descriptions for the RSpec/EmptyExampleGroup and RSpec/ExpectOutput copsadd-cop-descriptionsRémy Coutable2017-05-191-1/+2
| | | | | | [ci skip] Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'rubocop-empty-example-group' into 'master'Robert Speicher2017-05-181-0/+6
|\ | | | | | | | | Enable the RSpec/EmptyExampleGroup cop See merge request !11497
| * Enable the RSpec/EmptyExampleGroup coprubocop-empty-example-groupRémy Coutable2017-05-181-0/+6
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Enable the RSpec/ExpectOutput coprubocop-expect-outputRémy Coutable2017-05-181-0/+3
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Enable the Style/TrailingCommaInArguments copRémy Coutable2017-05-101-0/+5
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>