additional_tags 1.0.6 → 3.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -7
- data/app/controllers/additional_tags_controller.rb +9 -9
- data/app/controllers/issue_tags_controller.rb +6 -1
- data/app/helpers/additional_tags_helper.rb +41 -32
- data/app/helpers/additional_tags_issues_helper.rb +13 -5
- data/app/helpers/additional_tags_wiki_helper.rb +6 -5
- data/app/models/additional_tag.rb +98 -0
- data/app/views/additional_tags/_tag_list.html.slim +10 -4
- data/app/views/additional_tags/merge.html.slim +0 -1
- data/app/views/additional_tags/settings/_general.html.slim +7 -1
- data/app/views/additional_tags/settings/_manage_tags.html.slim +8 -1
- data/app/views/context_menus/_issues_tags.html.slim +7 -1
- data/app/views/dashboards/blocks/_issue_tags.html.slim +3 -1
- data/app/views/issue_tags/_edit_modal.html.slim +7 -7
- data/app/views/issues/_tags.html.slim +6 -1
- data/app/views/issues/_tags_bulk_edit.html.slim +2 -1
- data/app/views/wiki/_tags_form.html.slim +4 -0
- data/app/views/wiki/_tags_show.html.slim +1 -1
- data/assets/javascripts/tags.js +3 -3
- data/assets/stylesheets/tags.css +41 -16
- data/config/locales/bg.yml +17 -11
- data/config/locales/cs.yml +18 -12
- data/config/locales/de.yml +18 -12
- data/config/locales/en.yml +18 -12
- data/config/locales/es.yml +18 -12
- data/config/locales/fr.yml +18 -12
- data/config/locales/it.yml +18 -12
- data/config/locales/ja.yml +17 -11
- data/config/locales/ko.yml +17 -11
- data/config/locales/pl.yml +18 -12
- data/config/locales/pt-BR.yml +17 -11
- data/config/locales/ru.yml +33 -27
- data/config/settings.yml +5 -5
- data/lib/additional_tags/hooks/view_hook.rb +17 -5
- data/lib/additional_tags/patches/issue_patch.rb +54 -9
- data/lib/additional_tags/patches/issue_query_patch.rb +18 -0
- data/lib/additional_tags/patches/queries_helper_patch.rb +13 -3
- data/lib/additional_tags/patches/query_patch.rb +23 -2
- data/lib/additional_tags/patches/wiki_page_patch.rb +6 -1
- data/lib/additional_tags/plugin_version.rb +1 -1
- data/lib/additional_tags/tags.rb +35 -13
- data/lib/additional_tags.rb +5 -0
- metadata +5 -44
- data/.eslintrc.yml +0 -17
- data/.github/workflows/codeql-analysis.yml +0 -70
- data/.github/workflows/linters.yml +0 -43
- data/.github/workflows/tests.yml +0 -134
- data/.gitignore +0 -11
- data/.rubocop.yml +0 -133
- data/.slim-lint.yml +0 -27
- data/.stylelintrc.json +0 -163
- data/Rakefile +0 -13
- data/additional_tags.gemspec +0 -32
- data/doc/images/additional-tags-framework.png +0 -0
- data/doc/images/additional-tags.gif +0 -0
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: additional_tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AlphaNodes
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: acts-as-taggable-on
|
@@ -38,34 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
41
|
description: Redmine plugin for adding tag functionality
|
70
42
|
email:
|
71
43
|
- alex@alphanodes.com
|
@@ -73,18 +45,8 @@ executables: []
|
|
73
45
|
extensions: []
|
74
46
|
extra_rdoc_files: []
|
75
47
|
files:
|
76
|
-
- ".eslintrc.yml"
|
77
|
-
- ".github/workflows/codeql-analysis.yml"
|
78
|
-
- ".github/workflows/linters.yml"
|
79
|
-
- ".github/workflows/tests.yml"
|
80
|
-
- ".gitignore"
|
81
|
-
- ".rubocop.yml"
|
82
|
-
- ".slim-lint.yml"
|
83
|
-
- ".stylelintrc.json"
|
84
48
|
- LICENSE
|
85
49
|
- README.md
|
86
|
-
- Rakefile
|
87
|
-
- additional_tags.gemspec
|
88
50
|
- app/controllers/additional_tags_controller.rb
|
89
51
|
- app/controllers/issue_tags_controller.rb
|
90
52
|
- app/helpers/additional_tags_helper.rb
|
@@ -92,6 +54,7 @@ files:
|
|
92
54
|
- app/helpers/additional_tags_wiki_helper.rb
|
93
55
|
- app/jobs/additional_tags_job.rb
|
94
56
|
- app/jobs/additional_tags_remove_unused_tag_job.rb
|
57
|
+
- app/models/additional_tag.rb
|
95
58
|
- app/models/migrate_tag.rb
|
96
59
|
- app/models/migrate_tagging.rb
|
97
60
|
- app/models/query_tags_column.rb
|
@@ -141,8 +104,6 @@ files:
|
|
141
104
|
- config/settings.yml
|
142
105
|
- db/migrate/20201116145429_acts_as_taggable_migration.rb
|
143
106
|
- db/migrate/20201123093214_migrate_existing_tags.rb
|
144
|
-
- doc/images/additional-tags-framework.png
|
145
|
-
- doc/images/additional-tags.gif
|
146
107
|
- init.rb
|
147
108
|
- lib/additional_tags.rb
|
148
109
|
- lib/additional_tags/hooks/model_hook.rb
|
@@ -195,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
156
|
- !ruby/object:Gem::Version
|
196
157
|
version: '0'
|
197
158
|
requirements: []
|
198
|
-
rubygems_version: 3.
|
159
|
+
rubygems_version: 3.1.6
|
199
160
|
signing_key:
|
200
161
|
specification_version: 4
|
201
162
|
summary: Redmine plugin for adding tag functionality
|
data/.eslintrc.yml
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
# For most projects, this workflow file will not need changing; you simply need
|
2
|
-
# to commit it to your repository.
|
3
|
-
#
|
4
|
-
# You may wish to alter this file to override the set of languages analyzed,
|
5
|
-
# or to provide custom queries or build logic.
|
6
|
-
#
|
7
|
-
# ******** NOTE ********
|
8
|
-
# We have attempted to detect the languages in your repository. Please check
|
9
|
-
# the `language` matrix defined below to confirm you have the correct set of
|
10
|
-
# supported CodeQL languages.
|
11
|
-
#
|
12
|
-
name: "CodeQL"
|
13
|
-
|
14
|
-
on:
|
15
|
-
push:
|
16
|
-
branches: [ master ]
|
17
|
-
pull_request:
|
18
|
-
# The branches below must be a subset of the branches above
|
19
|
-
branches: [ master ]
|
20
|
-
schedule:
|
21
|
-
- cron: '35 20 * * 2'
|
22
|
-
|
23
|
-
jobs:
|
24
|
-
analyze:
|
25
|
-
name: Analyze
|
26
|
-
runs-on: ubuntu-latest
|
27
|
-
permissions:
|
28
|
-
actions: read
|
29
|
-
contents: read
|
30
|
-
security-events: write
|
31
|
-
|
32
|
-
strategy:
|
33
|
-
fail-fast: false
|
34
|
-
matrix:
|
35
|
-
language: [ 'javascript', 'ruby' ]
|
36
|
-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
37
|
-
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
38
|
-
|
39
|
-
steps:
|
40
|
-
- name: Checkout repository
|
41
|
-
uses: actions/checkout@v2
|
42
|
-
|
43
|
-
# Initializes the CodeQL tools for scanning.
|
44
|
-
- name: Initialize CodeQL
|
45
|
-
uses: github/codeql-action/init@v1
|
46
|
-
with:
|
47
|
-
languages: ${{ matrix.language }}
|
48
|
-
# If you wish to specify custom queries, you can do so here or in a config file.
|
49
|
-
# By default, queries listed here will override any specified in a config file.
|
50
|
-
# Prefix the list here with "+" to use these queries and those in the config file.
|
51
|
-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
52
|
-
|
53
|
-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
54
|
-
# If this step fails, then you should remove it and run the build manually (see below)
|
55
|
-
- name: Autobuild
|
56
|
-
uses: github/codeql-action/autobuild@v1
|
57
|
-
|
58
|
-
# ℹ️ Command-line programs to run using the OS shell.
|
59
|
-
# 📚 https://git.io/JvXDl
|
60
|
-
|
61
|
-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
62
|
-
# and modify them (or add more) to build your code if your project
|
63
|
-
# uses a compiled language
|
64
|
-
|
65
|
-
#- run: |
|
66
|
-
# make bootstrap
|
67
|
-
# make release
|
68
|
-
|
69
|
-
- name: Perform CodeQL Analysis
|
70
|
-
uses: github/codeql-action/analyze@v1
|
@@ -1,43 +0,0 @@
|
|
1
|
-
name: Run Linters
|
2
|
-
on:
|
3
|
-
push:
|
4
|
-
pull_request:
|
5
|
-
|
6
|
-
jobs:
|
7
|
-
test:
|
8
|
-
runs-on: ubuntu-latest
|
9
|
-
|
10
|
-
steps:
|
11
|
-
- uses: actions/checkout@v2
|
12
|
-
|
13
|
-
- name: Install package dependencies
|
14
|
-
run: >
|
15
|
-
sudo apt-get install --yes --quiet pandoc
|
16
|
-
|
17
|
-
- name: Setup Gemfile
|
18
|
-
run: |
|
19
|
-
touch .enable_linters
|
20
|
-
sed -i "3isource 'https://rubygems.org'" Gemfile
|
21
|
-
|
22
|
-
- name: Setup Ruby
|
23
|
-
uses: ruby/setup-ruby@v1
|
24
|
-
with:
|
25
|
-
ruby-version: 3.1
|
26
|
-
bundler-cache: true
|
27
|
-
|
28
|
-
- name: Setup gems
|
29
|
-
run: |
|
30
|
-
bundle install --jobs 4 --retry 3
|
31
|
-
|
32
|
-
- name: Run RuboCop
|
33
|
-
run: |
|
34
|
-
bundle exec rubocop -S
|
35
|
-
|
36
|
-
- name: Run Slim-Lint
|
37
|
-
run: |
|
38
|
-
bundle exec slim-lint app/views
|
39
|
-
if: always()
|
40
|
-
|
41
|
-
- name: Run Brakeman
|
42
|
-
run: |
|
43
|
-
bundle exec brakeman -5
|
data/.github/workflows/tests.yml
DELETED
@@ -1,134 +0,0 @@
|
|
1
|
-
name: Tests
|
2
|
-
on:
|
3
|
-
push:
|
4
|
-
pull_request:
|
5
|
-
|
6
|
-
jobs:
|
7
|
-
test:
|
8
|
-
name: ${{ matrix.redmine }} ${{ matrix.db }} ruby-${{ matrix.ruby }}
|
9
|
-
runs-on: ubuntu-latest
|
10
|
-
|
11
|
-
strategy:
|
12
|
-
matrix:
|
13
|
-
ruby: ['2.7', '3.0', '3.1']
|
14
|
-
redmine: ['5.0-stable', 'master']
|
15
|
-
db: ['postgres', 'mysql']
|
16
|
-
fail-fast: false
|
17
|
-
|
18
|
-
services:
|
19
|
-
postgres:
|
20
|
-
image: postgres:14
|
21
|
-
env:
|
22
|
-
POSTGRES_DB: redmine
|
23
|
-
POSTGRES_USER: postgres
|
24
|
-
POSTGRES_PASSWORD: postgres
|
25
|
-
ports:
|
26
|
-
- 5432:5432
|
27
|
-
|
28
|
-
options: >-
|
29
|
-
--health-cmd pg_isready
|
30
|
-
--health-interval 10s
|
31
|
-
--health-timeout 5s
|
32
|
-
--health-retries 5
|
33
|
-
|
34
|
-
mysql:
|
35
|
-
image: mysql:8.0
|
36
|
-
env:
|
37
|
-
MYSQL_ROOT_PASSWORD: 'BestPasswordEver'
|
38
|
-
ports:
|
39
|
-
# will assign a random free host port
|
40
|
-
- 3306/tcp
|
41
|
-
options: >-
|
42
|
-
--health-cmd="mysqladmin ping"
|
43
|
-
--health-interval=10s
|
44
|
-
--health-timeout=5s
|
45
|
-
--health-retries=3
|
46
|
-
|
47
|
-
steps:
|
48
|
-
- name: Verify MySQL connection from host
|
49
|
-
run: |
|
50
|
-
mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -pBestPasswordEver -e "SHOW DATABASES"
|
51
|
-
if: matrix.db == 'mysql'
|
52
|
-
|
53
|
-
- name: Checkout Redmine
|
54
|
-
uses: actions/checkout@v2
|
55
|
-
with:
|
56
|
-
repository: redmine/redmine
|
57
|
-
ref: ${{ matrix.redmine }}
|
58
|
-
path: redmine
|
59
|
-
|
60
|
-
- name: Checkout additionals
|
61
|
-
uses: actions/checkout@v2
|
62
|
-
with:
|
63
|
-
repository: AlphaNodes/additionals
|
64
|
-
path: redmine/plugins/additionals
|
65
|
-
|
66
|
-
- name: Checkout additional_tags
|
67
|
-
uses: actions/checkout@v2
|
68
|
-
with:
|
69
|
-
path: redmine/plugins/additional_tags
|
70
|
-
|
71
|
-
- name: Update package archives
|
72
|
-
run: sudo apt-get update --yes --quiet
|
73
|
-
|
74
|
-
- name: Install package dependencies
|
75
|
-
run: >
|
76
|
-
sudo apt-get install --yes --quiet
|
77
|
-
build-essential
|
78
|
-
cmake
|
79
|
-
libicu-dev
|
80
|
-
libpq-dev
|
81
|
-
libmysqlclient-dev
|
82
|
-
|
83
|
-
- name: Setup Gemfile
|
84
|
-
run: |
|
85
|
-
touch .enable_test
|
86
|
-
|
87
|
-
- name: Setup Ruby
|
88
|
-
uses: ruby/setup-ruby@v1
|
89
|
-
with:
|
90
|
-
ruby-version: ${{ matrix.ruby }}
|
91
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
92
|
-
|
93
|
-
- name: Prepare Redmine source
|
94
|
-
working-directory: redmine
|
95
|
-
run: |
|
96
|
-
cp plugins/additional_tags/test/support/database-${{ matrix.db }}.yml config/database.yml
|
97
|
-
cp plugins/additional_tags/test/support/configuration.yml config/configuration.yml
|
98
|
-
cp plugins/additionals/test/support/additional_environment.rb config/additional_environment.rb
|
99
|
-
|
100
|
-
- name: Install Ruby dependencies
|
101
|
-
working-directory: redmine
|
102
|
-
run: |
|
103
|
-
bundle config set --local without 'development'
|
104
|
-
bundle install --jobs=4 --retry=3
|
105
|
-
|
106
|
-
- name: Generate session store secret
|
107
|
-
env:
|
108
|
-
RAILS_ENV: test
|
109
|
-
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
|
110
|
-
working-directory: redmine
|
111
|
-
run: |
|
112
|
-
bundle exec rake generate_secret_token
|
113
|
-
|
114
|
-
- name: Run Redmine DB and migration tasks
|
115
|
-
env:
|
116
|
-
RAILS_ENV: test
|
117
|
-
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
|
118
|
-
working-directory: redmine
|
119
|
-
run: |
|
120
|
-
bundle exec rake db:create db:migrate redmine:plugins:migrate
|
121
|
-
|
122
|
-
- name: Run tests
|
123
|
-
env:
|
124
|
-
RAILS_ENV: test
|
125
|
-
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
|
126
|
-
working-directory: redmine
|
127
|
-
run: bundle exec rake redmine:plugins:test NAME=additional_tags RUBYOPT="-W0"
|
128
|
-
|
129
|
-
- name: Run uninstall test
|
130
|
-
env:
|
131
|
-
RAILS_ENV: test
|
132
|
-
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
|
133
|
-
working-directory: redmine
|
134
|
-
run: bundle exec rake redmine:plugins:migrate NAME=additional_tags VERSION=0
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
@@ -1,133 +0,0 @@
|
|
1
|
-
require:
|
2
|
-
- rubocop-performance
|
3
|
-
- rubocop-rails
|
4
|
-
- rubocop-minitest
|
5
|
-
|
6
|
-
AllCops:
|
7
|
-
TargetRubyVersion: 2.7
|
8
|
-
TargetRailsVersion: 6.1
|
9
|
-
NewCops: enable
|
10
|
-
ActiveSupportExtensionsEnabled: true
|
11
|
-
|
12
|
-
Rails:
|
13
|
-
Enabled: true
|
14
|
-
|
15
|
-
Minitest/MultipleAssertions:
|
16
|
-
Max: 15
|
17
|
-
Enabled: true
|
18
|
-
|
19
|
-
Minitest/AssertPredicate:
|
20
|
-
Enabled: false
|
21
|
-
|
22
|
-
Metrics/AbcSize:
|
23
|
-
Enabled: false
|
24
|
-
|
25
|
-
Metrics/BlockLength:
|
26
|
-
Enabled: false
|
27
|
-
|
28
|
-
Metrics/ParameterLists:
|
29
|
-
Enabled: true
|
30
|
-
CountKeywordArgs: false
|
31
|
-
|
32
|
-
Metrics/ClassLength:
|
33
|
-
Enabled: false
|
34
|
-
|
35
|
-
Metrics/CyclomaticComplexity:
|
36
|
-
Max: 25
|
37
|
-
|
38
|
-
Layout/LineLength:
|
39
|
-
Max: 140
|
40
|
-
|
41
|
-
Metrics/MethodLength:
|
42
|
-
Max: 60
|
43
|
-
|
44
|
-
Metrics/ModuleLength:
|
45
|
-
Enabled: false
|
46
|
-
|
47
|
-
Metrics/PerceivedComplexity:
|
48
|
-
Max: 25
|
49
|
-
|
50
|
-
Style/ExpandPathArguments:
|
51
|
-
Enabled: true
|
52
|
-
Exclude:
|
53
|
-
- additional_tags.gemspec
|
54
|
-
- test/**/*
|
55
|
-
|
56
|
-
Rails/ApplicationJob:
|
57
|
-
Enabled: false
|
58
|
-
|
59
|
-
Lint/AmbiguousOperatorPrecedence:
|
60
|
-
Enabled: false
|
61
|
-
|
62
|
-
Rails/ContentTag:
|
63
|
-
Enabled: true
|
64
|
-
Exclude:
|
65
|
-
- app/helpers/additional_tags_issues_helper.rb
|
66
|
-
|
67
|
-
Rails/ApplicationRecord:
|
68
|
-
Enabled: false
|
69
|
-
|
70
|
-
Rails/CreateTableWithTimestamps:
|
71
|
-
Enabled: false
|
72
|
-
|
73
|
-
Rails/HelperInstanceVariable:
|
74
|
-
Enabled: false
|
75
|
-
|
76
|
-
Rails/SkipsModelValidations:
|
77
|
-
Enabled: false
|
78
|
-
|
79
|
-
Performance/ChainArrayAllocation:
|
80
|
-
Enabled: true
|
81
|
-
|
82
|
-
Style/AutoResourceCleanup:
|
83
|
-
Enabled: true
|
84
|
-
|
85
|
-
Style/FrozenStringLiteralComment:
|
86
|
-
Enabled: true
|
87
|
-
Exclude:
|
88
|
-
- '/**/*.rsb'
|
89
|
-
|
90
|
-
Style/Documentation:
|
91
|
-
Enabled: false
|
92
|
-
|
93
|
-
Style/OptionHash:
|
94
|
-
Enabled: true
|
95
|
-
SuspiciousParamNames:
|
96
|
-
- options
|
97
|
-
- api_options
|
98
|
-
- opts
|
99
|
-
- args
|
100
|
-
- params
|
101
|
-
- parameters
|
102
|
-
- settings
|
103
|
-
|
104
|
-
# postgresql and mysql are supported
|
105
|
-
# autodetect does not work without database configuration
|
106
|
-
Rails/BulkChangeTable:
|
107
|
-
Enabled: true
|
108
|
-
Database: postgresql
|
109
|
-
|
110
|
-
Style/ReturnNil:
|
111
|
-
Enabled: true
|
112
|
-
|
113
|
-
Style/UnlessLogicalOperators:
|
114
|
-
Enabled: true
|
115
|
-
|
116
|
-
Style/MethodCallWithArgsParentheses:
|
117
|
-
Enabled: true
|
118
|
-
AllowParenthesesInMultilineCall: true
|
119
|
-
AllowParenthesesInChaining: true
|
120
|
-
EnforcedStyle: omit_parentheses
|
121
|
-
|
122
|
-
Naming/VariableNumber:
|
123
|
-
Enabled: true
|
124
|
-
Exclude:
|
125
|
-
- 'test/**/*'
|
126
|
-
|
127
|
-
Layout/LineContinuationLeadingSpace:
|
128
|
-
Enabled: false
|
129
|
-
|
130
|
-
# see https://github.com/rubocop/rubocop-rails/issues/578
|
131
|
-
# redmine does not use load_defaults: https://rails.rubystyle.guide/#config-defaults
|
132
|
-
Rails/RedundantPresenceValidationOnBelongsTo:
|
133
|
-
Enabled: false
|
data/.slim-lint.yml
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
linters:
|
2
|
-
LineLength:
|
3
|
-
max: 140
|
4
|
-
RuboCop:
|
5
|
-
ignored_cops:
|
6
|
-
- Layout/ArgumentAlignment
|
7
|
-
- Layout/ArrayAlignment
|
8
|
-
- Layout/BlockEndNewline
|
9
|
-
- Layout/EmptyLineAfterGuardClause
|
10
|
-
- Layout/HashAlignment
|
11
|
-
- Layout/IndentationWidth
|
12
|
-
- Layout/MultilineArrayBraceLayout
|
13
|
-
- Layout/MultilineAssignmentLayout
|
14
|
-
- Layout/MultilineBlockLayout
|
15
|
-
- Layout/MultilineHashBraceLayout
|
16
|
-
- Layout/MultilineMethodCallBraceLayout
|
17
|
-
- Layout/MultilineMethodCallIndentation
|
18
|
-
- Layout/MultilineMethodDefinitionBraceLayout
|
19
|
-
- Layout/MultilineOperationIndentation
|
20
|
-
- Layout/SpaceBeforeBrackets
|
21
|
-
- Layout/TrailingEmptyLines
|
22
|
-
- Lint/Void
|
23
|
-
- Rails/OutputSafety
|
24
|
-
- Style/FrozenStringLiteralComment
|
25
|
-
- Style/IfUnlessModifier
|
26
|
-
- Style/Next
|
27
|
-
- Style/WhileUntilModifier
|
data/.stylelintrc.json
DELETED
@@ -1,163 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"rules": {
|
3
|
-
"at-rule-no-unknown": true,
|
4
|
-
"block-no-empty": true,
|
5
|
-
"color-no-invalid-hex": true,
|
6
|
-
"comment-no-empty": true,
|
7
|
-
"declaration-block-no-duplicate-properties": [
|
8
|
-
true,
|
9
|
-
{
|
10
|
-
"ignore": [
|
11
|
-
"consecutive-duplicates-with-different-values"
|
12
|
-
]
|
13
|
-
}
|
14
|
-
],
|
15
|
-
"declaration-block-no-redundant-longhand-properties": true,
|
16
|
-
"declaration-block-no-shorthand-property-overrides": true,
|
17
|
-
"font-family-no-duplicate-names": true,
|
18
|
-
"font-family-no-missing-generic-family-keyword": true,
|
19
|
-
"function-calc-no-unspaced-operator": true,
|
20
|
-
"function-linear-gradient-no-nonstandard-direction": true,
|
21
|
-
"keyframe-declaration-no-important": true,
|
22
|
-
"media-feature-name-no-unknown": true,
|
23
|
-
"no-descending-specificity": true,
|
24
|
-
"no-duplicate-at-import-rules": true,
|
25
|
-
"no-duplicate-selectors": true,
|
26
|
-
"no-empty-source": true,
|
27
|
-
"no-extra-semicolons": true,
|
28
|
-
"no-invalid-double-slash-comments": true,
|
29
|
-
"property-no-unknown": true,
|
30
|
-
"selector-pseudo-class-no-unknown": true,
|
31
|
-
"selector-pseudo-element-no-unknown": true,
|
32
|
-
"selector-type-no-unknown": true,
|
33
|
-
"string-no-newline": true,
|
34
|
-
"unit-no-unknown": true,
|
35
|
-
"at-rule-empty-line-before": [
|
36
|
-
"always",
|
37
|
-
{
|
38
|
-
"except": [
|
39
|
-
"blockless-after-same-name-blockless",
|
40
|
-
"first-nested"
|
41
|
-
],
|
42
|
-
"ignore": [
|
43
|
-
"after-comment"
|
44
|
-
]
|
45
|
-
}
|
46
|
-
],
|
47
|
-
"at-rule-name-case": "lower",
|
48
|
-
"at-rule-name-space-after": "always-single-line",
|
49
|
-
"at-rule-semicolon-newline-after": "always",
|
50
|
-
"block-closing-brace-empty-line-before": "never",
|
51
|
-
"block-closing-brace-newline-after": "always",
|
52
|
-
"block-closing-brace-newline-before": "always-multi-line",
|
53
|
-
"block-closing-brace-space-before": "always-single-line",
|
54
|
-
"block-opening-brace-newline-after": "always-multi-line",
|
55
|
-
"block-opening-brace-space-after": "always-single-line",
|
56
|
-
"block-opening-brace-space-before": "always",
|
57
|
-
"color-hex-case": "lower",
|
58
|
-
"color-hex-length": "short",
|
59
|
-
"comment-empty-line-before": [
|
60
|
-
"always",
|
61
|
-
{
|
62
|
-
"except": [
|
63
|
-
"first-nested"
|
64
|
-
],
|
65
|
-
"ignore": [
|
66
|
-
"stylelint-commands"
|
67
|
-
]
|
68
|
-
}
|
69
|
-
],
|
70
|
-
"comment-whitespace-inside": "always",
|
71
|
-
"custom-property-empty-line-before": [
|
72
|
-
"always",
|
73
|
-
{
|
74
|
-
"except": [
|
75
|
-
"after-custom-property",
|
76
|
-
"first-nested"
|
77
|
-
],
|
78
|
-
"ignore": [
|
79
|
-
"after-comment",
|
80
|
-
"inside-single-line-block"
|
81
|
-
]
|
82
|
-
}
|
83
|
-
],
|
84
|
-
"declaration-bang-space-after": "never",
|
85
|
-
"declaration-bang-space-before": "always",
|
86
|
-
"declaration-block-semicolon-newline-after": "always-multi-line",
|
87
|
-
"declaration-block-semicolon-space-after": "always-single-line",
|
88
|
-
"declaration-block-semicolon-space-before": "never",
|
89
|
-
"declaration-block-single-line-max-declarations": 1,
|
90
|
-
"declaration-block-trailing-semicolon": "always",
|
91
|
-
"declaration-colon-newline-after": "always-multi-line",
|
92
|
-
"declaration-colon-space-after": "always-single-line",
|
93
|
-
"declaration-colon-space-before": "never",
|
94
|
-
"declaration-empty-line-before": [
|
95
|
-
"always",
|
96
|
-
{
|
97
|
-
"except": [
|
98
|
-
"after-declaration",
|
99
|
-
"first-nested"
|
100
|
-
],
|
101
|
-
"ignore": [
|
102
|
-
"after-comment",
|
103
|
-
"inside-single-line-block"
|
104
|
-
]
|
105
|
-
}
|
106
|
-
],
|
107
|
-
"function-comma-newline-after": "always-multi-line",
|
108
|
-
"function-comma-space-after": "always-single-line",
|
109
|
-
"function-comma-space-before": "never",
|
110
|
-
"function-max-empty-lines": 0,
|
111
|
-
"function-name-case": "lower",
|
112
|
-
"function-parentheses-newline-inside": "always-multi-line",
|
113
|
-
"function-parentheses-space-inside": "never-single-line",
|
114
|
-
"function-whitespace-after": "always",
|
115
|
-
"indentation": 2,
|
116
|
-
"length-zero-no-unit": true,
|
117
|
-
"max-empty-lines": 1,
|
118
|
-
"media-feature-colon-space-after": "always",
|
119
|
-
"media-feature-colon-space-before": "never",
|
120
|
-
"media-feature-name-case": "lower",
|
121
|
-
"media-feature-parentheses-space-inside": "never",
|
122
|
-
"media-feature-range-operator-space-after": "always",
|
123
|
-
"media-feature-range-operator-space-before": "always",
|
124
|
-
"media-query-list-comma-newline-after": "always-multi-line",
|
125
|
-
"media-query-list-comma-space-after": "always-single-line",
|
126
|
-
"media-query-list-comma-space-before": "never",
|
127
|
-
"no-eol-whitespace": true,
|
128
|
-
"no-missing-end-of-source-newline": true,
|
129
|
-
"number-leading-zero": "always",
|
130
|
-
"number-no-trailing-zeros": true,
|
131
|
-
"property-case": "lower",
|
132
|
-
"rule-empty-line-before": [
|
133
|
-
"always-multi-line",
|
134
|
-
{
|
135
|
-
"except": [
|
136
|
-
"first-nested"
|
137
|
-
],
|
138
|
-
"ignore": [
|
139
|
-
"after-comment"
|
140
|
-
]
|
141
|
-
}
|
142
|
-
],
|
143
|
-
"selector-attribute-brackets-space-inside": "never",
|
144
|
-
"selector-attribute-operator-space-after": "never",
|
145
|
-
"selector-attribute-operator-space-before": "never",
|
146
|
-
"selector-combinator-space-after": "always",
|
147
|
-
"selector-combinator-space-before": "always",
|
148
|
-
"selector-descendant-combinator-no-non-space": true,
|
149
|
-
"selector-list-comma-newline-after": "always",
|
150
|
-
"selector-list-comma-space-before": "never",
|
151
|
-
"selector-max-empty-lines": 0,
|
152
|
-
"selector-pseudo-class-case": "lower",
|
153
|
-
"selector-pseudo-class-parentheses-space-inside": "never",
|
154
|
-
"selector-pseudo-element-case": "lower",
|
155
|
-
"selector-pseudo-element-colon-notation": "double",
|
156
|
-
"selector-type-case": "lower",
|
157
|
-
"unit-case": "lower",
|
158
|
-
"value-list-comma-newline-after": "always-multi-line",
|
159
|
-
"value-list-comma-space-after": "always-single-line",
|
160
|
-
"value-list-comma-space-before": "never",
|
161
|
-
"value-list-max-empty-lines": 0
|
162
|
-
}
|
163
|
-
}
|