summaryrefslogtreecommitdiff
path: root/rubocop
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-043-0/+87
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-292-27/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-281-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-152-0/+120
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-271-32/+13
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-192-0/+65
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-171-1/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-042-0/+44
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-031-2/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-012-0/+21
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-282-0/+44
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-251-1/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-072-0/+79
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-162-0/+43
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-031-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-191-5/+7
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-187-8/+7
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-133-9/+96
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-133-2/+59
|
* Fix code docs for RuboCop's helper methodsPeter Leitzen2019-09-121-2/+2
| | | | `(const nil :Foo)` vs `(const nil? :Foo)`
* Add Scalability/FileUploads copAlessio Caiazza2019-09-102-0/+62
| | | | | This cop prevents you from using file in API, it points you to the development documentation about workhorse file acceleration.
* Fix InjectEnterpriseEditionModule cop for qa/Yorick Peterse2019-08-281-1/+1
| | | | | | | This ensures the InjectEnterpriseEditionModule cop is able to detect the prepend patterns used in the qa/ directory. Previously it would not detect them as all EE QA modules reside in QA::EE, and not the top-level EE namespace.
* Remove Rubocop::SpecHelper fileVitali Tatarintev2019-08-282-34/+0
|
* Refactor BeSuccessMatcher specs for readabilityVitali Tatarintev2019-08-281-1/+1
|
* Utilize Rubocop's Include for BeSuccessMatcherVitali Tatarintev2019-08-282-17/+0
| | | | | Use Rubocop's Include instead of manually checking the matcher in controllers specs.
* Add support of not_to/to_not to BeSuccessMatcherVitali Tatarintev2019-08-281-2/+2
| | | | | | | | | | | | | | BeSuccessMatcher now supports following examples: ``` expect(response).to be_success expect(response).to_not be_success expect(response).not_to be_success is_expected.to be_success is_expected.to_not be_success is_expected.not_to be_success ```
* Replace double quotes with single quotesVitali Tatarintev2019-08-281-2/+2
|
* Enable frozen string literalVitali Tatarintev2019-08-281-0/+2
|
* Autocorrect `be_success` to `be_successful`Vitali Tatarintev2019-08-281-0/+6
|
* Add Rubocop check to avoid using `be_success`Vitali Tatarintev2019-08-283-0/+97
| | | | | | | | | | | Prevent using `be_success` call in controller specs to avoid getting following deprecation warning: ``` DEPRECATION WARNING: The success? predicate is deprecated and will be removed in Rails 6.0. Please use successful? as provided by Rack::Response::Helpers. ```
* Utilize RuboCop's Include/Exclude configPeter Leitzen2019-08-269-66/+5
| | | | Stop checking the file location programmatically.
* Adds cop to enforce string limits on migrationsMayra Cabrera2019-08-232-0/+60
| | | | | | | This cop will analyze migrations that add columns with string, and report an offense if the string has no limit enforced Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/64505
* Add RSpec/TopLevelDescribePath copSean McGivern2019-08-012-0/+36
| | | | | | | | The RSpec/FilePath cop checks that a spec file's path is correct, but only if the file describes a constant. We want to check, for any file with a top-level `describe`, whether the file path ends in `_spec.rb`. We don't care what comes before that; just that it will be executed by RSpec at all.
* Extend cop for verifying injecting of EE modulesYorick Peterse2019-07-301-7/+41
| | | | | | | | | This extends the InjectEnterpriseEditionModule RuboCop cop so that it verifies the following: 1. The line number the injection occurs on (as before). 2. The method used (e.g. prepend instead of prepend_if_ee). 3. The argument type passed when using the new module injection methods.
* Change element_with_pattern cop to not use quotesddavison2019-07-101-1/+1
| | | | | | | Using quotes within string validations can be messy. Let's use a typical CSS selector for an unquoted attribute Update the cop spec to validate appropriate new message
* Introduce data-qa-selector to supplant .qa-classddavison2019-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | | In order to break away from using CSS classes as our primary method of element identification, we need to provide the ability to search for data attributes. Make Test::Sanity::Selectors now work Utilize regex to match on literal strings of the element name Suggest the data-qa-selector pattern vs the qa- Add data-qa-selector to login page to start We need a page that is heavily used in order to be confident that this functionality works. Let's start with the Login page Use appropriate HAML data tag practices
* Add a rubocop for Rails.loggerMayra Cabrera2019-07-102-0/+52
| | | | | | Suggests to use a JSON structured log instead Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
* Add a cop to ensure we authorize GraphQL typesBob Van Landuyt2019-06-212-0/+62
|
* Merge branch 'qa-extend-click-visit-actions' into 'master'Dan Davison2019-05-281-7/+13
|\ | | | | | | | | | | | | Implement dynamic validation on QA Pages Closes gitlab-qa#280 See merge request gitlab-org/gitlab-ce!25704
| * Implement dynamic validation on QA Pagesddavison2019-05-201-7/+13
| | | | | | | | | | | | Elements now have the ability to be required on pages or not Currently using the default wait mechanism Altered the ElementWithPattern Cop to fit new splat for init
* | Link to issue in CodeReuse/ActiveRecord messagelink-to-issue-in-code-reuse-active-record-rubocop-ruleLuke Duncalfe2019-05-221-1/+2
|/ | | | | This provides the user with some context as to why certain ActiveRecord methods are blacklisted.
* Run rubocop -a on CE filessh-upgrade-rubocop-0.68.0-ceStan Hu2019-05-051-1/+0
|
* Upgrade to Rubocop 0.68.1Stan Hu2019-05-051-2/+2
| | | | This adds Ruby 2.6 support.
* Cache current working directory to speed up Rubocopsh-cache-rubocop-cwdStan Hu2019-05-032-3/+5
| | | | | | | This saves thousands of getcwd() system calls and improves the performance of running Rubocop, which is also used by HAML linting. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61383
* Add Rubocop rule to ban include ActionView::ContextStan Hu2019-04-292-0/+32
|
* Forbid the use of `#reload` and prefer `#reset`forbid-the-usage-of-reloadKamil Trzciński2019-04-152-0/+22
| | | | | | | The `#reload` makes to load all objects into memory, and the main purpose of `#reload` is to drop the association cache. The `#reset` seems to solve exactly that case.
* Properly handle `ee` migration specsHeinrich Lee Yu2019-03-281-1/+1
|
* Merge branch 'fix-rubocop-ee-module-injection-detection' into 'master'Rémy Coutable2019-01-161-3/+7
|\ | | | | | | | | Fix detecting nested EE constants in RuboCop See merge request gitlab-org/gitlab-ce!24430
| * Fix detecting nested EE constants in RuboCopYorick Peterse2019-01-161-3/+7
| | | | | | | | | | | | | | | | The InjectEnterpriseEditionModule cop would not detect certain nested EE constants such as `EE::Foo::Bar::Baz`. This could result in it not enforcing `prepend` being placed on the last line. This commit fixes this by just performing a string match on the line, instead of relying on AST matching.
* | Prevent factories in background migration specsBob Van Landuyt2019-01-161-3/+8
|/ | | | | The Background migration specs also run against a certain version of the database. So we should avoid using factories.