Skip to content

Commit f80f473

Browse files
committed
source code of gitlab
0 parents  commit f80f473

File tree

14,242 files changed

+1159835
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

14,242 files changed

+1159835
-0
lines changed

.babelrc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"presets": [["latest", { "es2015": { "modules": false } }], "stage-2"],
3+
"env": {
4+
"karma": {
5+
"plugins": ["rewire"]
6+
},
7+
"coverage": {
8+
"plugins": [
9+
[
10+
"istanbul",
11+
{
12+
"exclude": ["spec/javascripts/**/*", "app/assets/javascripts/locale/**/app.js"]
13+
}
14+
],
15+
[
16+
"transform-define",
17+
{
18+
"process.env.BABEL_ENV": "coverage"
19+
}
20+
],
21+
"rewire"
22+
]
23+
}
24+
}
25+
}

.codeclimate.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
engines:
3+
bundler-audit:
4+
enabled: true
5+
duplication:
6+
enabled: true
7+
config:
8+
languages:
9+
- ruby
10+
- javascript
11+
ratings:
12+
paths:
13+
- Gemfile.lock
14+
- "**.erb"
15+
- "**.haml"
16+
- "**.rb"
17+
- "**.rhtml"
18+
- "**.slim"
19+
- "**.inc"
20+
- "**.js"
21+
- "**.jsx"
22+
- "**.module"
23+
exclude_paths:
24+
- config/
25+
- db/
26+
- features/
27+
- node_modules/
28+
- spec/
29+
- vendor/
30+
- .yarn-cache/
31+
- tmp/
32+
- builds/
33+
- coverage/
34+
- public/
35+
- shared/
36+
- webpack-report/
37+
- log/
38+
- backups/
39+
- coverage-javascript/
40+
- plugins/

.csscomb.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"exclude": [
3+
"app/assets/stylesheets/framework/tw_bootstrap_variables.scss",
4+
"app/assets/stylesheets/framework/fonts.scss"
5+
],
6+
"always-semicolon": true,
7+
"color-case": "lower",
8+
"block-indent": " ",
9+
"color-shorthand": false,
10+
"element-case": "lower",
11+
"space-before-colon": "",
12+
"space-after-colon": " ",
13+
"space-before-combinator": " ",
14+
"space-after-combinator": " ",
15+
"space-between-declarations": "\n",
16+
"space-before-opening-brace": " ",
17+
"space-after-opening-brace": "\n",
18+
"space-before-closing-brace": "\n",
19+
"unitless-zero": true
20+
}

.eslintignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/app/assets/javascripts/locale/**/app.js
2+
/config/
3+
/builds/
4+
/coverage/
5+
/coverage-javascript/
6+
/node_modules/
7+
/public/
8+
/scripts/
9+
/tmp/
10+
/vendor/
11+
karma.config.js
12+
webpack.config.js

.eslintrc.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
env:
3+
browser: true
4+
es6: true
5+
extends:
6+
- airbnb-base
7+
- plugin:vue/recommended
8+
globals:
9+
__webpack_public_path__: true
10+
gl: false
11+
gon: false
12+
localStorage: false
13+
parserOptions:
14+
parser: babel-eslint
15+
plugins:
16+
- filenames
17+
- import
18+
- html
19+
- promise
20+
settings:
21+
html/html-extensions:
22+
- ".html"
23+
- ".html.raw"
24+
import/resolver:
25+
webpack:
26+
config: "./config/webpack.config.js"
27+
rules:
28+
filenames/match-regex:
29+
- error
30+
- "^[a-z0-9_]+$"
31+
import/no-commonjs: error
32+
no-multiple-empty-lines:
33+
- error
34+
- max: 1
35+
promise/catch-or-return: error
36+
no-underscore-dangle:
37+
- error
38+
- allow:
39+
- __
40+
- _links
41+
no-mixed-operators: off
42+
vue/html-self-closing:
43+
- error
44+
- html:
45+
void: always
46+
normal: never
47+
component: always
48+
svg: always
49+
math: always
50+
## Conflicting rules with prettier:
51+
space-before-function-paren: off
52+
curly: off
53+
arrow-parens: off
54+
function-paren-newline: off
55+
object-curly-newline: off
56+
padded-blocks: off
57+
# Disabled for now, to make the eslint 3 -> eslint 4 update smoother
58+
## Indent rule. We are using the old for now: https://eslint.org/docs/user-guide/migrating-to-4.0.0#indent-rewrite
59+
indent: off
60+
indent-legacy:
61+
- error
62+
- 2
63+
- SwitchCase: 1
64+
VariableDeclarator: 1
65+
outerIIFEBody: 1
66+
FunctionDeclaration:
67+
parameters: 1
68+
body: 1
69+
FunctionExpression:
70+
parameters: 1
71+
body: 1

.flayignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
*.erb
2+
lib/gitlab/sanitizers/svg/whitelist.rb
3+
lib/gitlab/diff/position_tracer.rb
4+
app/controllers/projects/approver_groups_controller.rb
5+
app/controllers/projects/approvers_controller.rb
6+
app/controllers/projects/protected_branches/merge_access_levels_controller.rb
7+
app/controllers/projects/protected_branches/push_access_levels_controller.rb
8+
app/controllers/projects/protected_tags/create_access_levels_controller.rb
9+
app/policies/project_policy.rb
10+
app/models/concerns/relative_positioning.rb
11+
app/workers/stuck_merge_jobs_worker.rb
12+
lib/gitlab/redis/*.rb
13+
lib/gitlab/gitaly_client/operation_service.rb
14+
app/models/project_services/packagist_service.rb
15+
lib/gitlab/background_migration/normalize_ldap_extern_uids_range.rb
16+
lib/gitlab/background_migration/*
17+
app/models/project_services/kubernetes_service.rb
18+
lib/gitlab/workhorse.rb
19+
lib/gitlab/ci/trace/chunked_io.rb
20+
lib/gitlab/gitaly_client/ref_service.rb
21+
lib/gitlab/gitaly_client/commit_service.rb
22+
lib/gitlab/git/commit.rb
23+
lib/gitlab/git/tag.rb
24+
25+
ee/db/**/*
26+
ee/app/serializers/ee/merge_request_widget_entity.rb
27+
ee/lib/api/epics.rb
28+
ee/lib/api/geo_nodes.rb
29+
ee/lib/ee/api/group_boards.rb
30+
ee/lib/ee/api/boards.rb
31+
ee/lib/ee/gitlab/ldap/sync/admin_users.rb
32+
ee/app/workers/geo/file_download_dispatch_worker/job_artifact_job_finder.rb
33+
ee/app/workers/geo/file_download_dispatch_worker/lfs_object_job_finder.rb
34+
ee/spec/**/*

.foreman

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
port: 3000

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Dangerfile gitlab-language=ruby

.github/ISSUE_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
We’re closing our issue tracker on GitHub so we can focus on the GitLab.com project and respond to issues more quickly.
2+
3+
We encourage you to open an issue on the [GitLab.com issue tracker](https://gitlab.com/gitlab-org/gitlab-ce/issues). You can log into GitLab.com using your GitHub account.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Thank you for taking the time to contribute back to GitLab!
2+
3+
Please open a merge request [on GitLab.com](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests), we look forward to reviewing your contribution! You can log into GitLab.com using your GitHub account.

.gitignore

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
*.log
2+
*.swp
3+
*.mo
4+
*.edit.po
5+
*.rej
6+
.DS_Store
7+
.bundle
8+
.chef
9+
.directory
10+
/.envrc
11+
eslint-report.html
12+
/.gitlab_shell_secret
13+
.idea
14+
/.vscode/*
15+
/.rbenv-version
16+
.rbx/
17+
/.ruby-gemset
18+
/.ruby-version
19+
/.rvmrc
20+
.sass-cache/
21+
/.secret
22+
/.vagrant
23+
/.yarn-cache
24+
/.byebug_history
25+
/Vagrantfile
26+
/app/assets/images/icons.json
27+
/app/assets/images/icons.svg
28+
/app/assets/images/illustrations/
29+
/app/assets/javascripts/locale/**/app.js
30+
/backups/*
31+
/config/aws.yml
32+
/config/database*.yml
33+
/config/gitlab.yml
34+
/config/gitlab_ci.yml
35+
/config/initializers/rack_attack.rb
36+
/config/initializers/smtp_settings.rb
37+
/config/initializers/relative_url.rb
38+
/config/resque.yml
39+
/config/redis.cache.yml
40+
/config/redis.queues.yml
41+
/config/redis.shared_state.yml
42+
/config/unicorn.rb
43+
/config/secrets.yml
44+
/config/sidekiq.yml
45+
/config/registry.key
46+
/coverage/*
47+
/coverage-javascript/
48+
/db/*.sqlite3
49+
/db/*.sqlite3-journal
50+
/db/data.yml
51+
/doc/code/*
52+
/dump.rdb
53+
/jsconfig.json
54+
/log/*.log*
55+
/node_modules/
56+
/nohup.out
57+
/public/assets/
58+
/public/uploads.*
59+
/public/uploads/
60+
/shared/artifacts/
61+
/spec/javascripts/fixtures/blob/pdf/
62+
/spec/javascripts/fixtures/blob/balsamiq/
63+
/rails_best_practices_output.html
64+
/tags
65+
/tmp/*
66+
/vendor/bundle/*
67+
/vendor/gitaly-ruby
68+
/builds*
69+
/shared/*
70+
/.gitlab_workhorse_secret
71+
/webpack-report/
72+
/knapsack/
73+
/rspec_flaky/
74+
/locale/**/LC_MESSAGES
75+
/locale/**/*.time_stamp
76+
/.rspec
77+
/plugins/*
78+
/.gitlab_pages_secret
79+
package-lock.json

0 commit comments

Comments
 (0)