fashion_police 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 064203eed4c60b11f53559c36331034e6677019b
4
+ data.tar.gz: 133efcdc73a36cef992e9cc2cc040302f8af10e9
5
+ SHA512:
6
+ metadata.gz: 89ce14593f0880c6f1d3afcf15abce98e0c9c1ad2fb72915b8fb8d159f1201d75a6a5a0326974c2c402c519e2fc99be3f6250de516c47de74b3b5d8ee56a59e1
7
+ data.tar.gz: ce0000b6035eeeef4f77ab4259fd43ac58f53c081987ad7036512d9b211722b8858eb8f4623730e958b699804f6e4ec208b2fc9beab7a9ea7337070aed653d0b
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ pkg/
2
+ Gemfile.lock
data/.rubocop.yml ADDED
@@ -0,0 +1,106 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.3
3
+ DisplayCopNames: true
4
+ Exclude:
5
+ - db/schema.rb
6
+ - "**/*/node_modules/**/*"
7
+
8
+ # Do not sort gems in Gemfile, since we are grouping them by functionality.
9
+ Bundler/OrderedGems:
10
+ Enabled: false
11
+
12
+ # Add a comment before each gem in Gemfile.
13
+ Bundler/GemComment:
14
+ Enabled: true
15
+
16
+ # Trailing commas are required on multiline method arguments.
17
+ Style/TrailingCommaInArguments:
18
+ EnforcedStyleForMultiline: comma
19
+
20
+ # Trailing commas are required in multiline arrays.
21
+ Style/TrailingCommaInArrayLiteral:
22
+ EnforcedStyleForMultiline: comma
23
+
24
+ # Trailing commas are required in multiline hashes.
25
+ Style/TrailingCommaInHashLiteral:
26
+ EnforcedStyleForMultiline: comma
27
+
28
+ # Allow indenting multiline chained operations.
29
+ Layout/MultilineMethodCallIndentation:
30
+ EnforcedStyle: indented
31
+
32
+ # Allow not adding parentheses around blocks in DSLs.
33
+ # E.g.:
34
+ # expect { … }.to change { … }
35
+ Lint/AmbiguousBlockAssociation:
36
+ Exclude:
37
+ - spec/**/*
38
+
39
+ # Limit method length (default is 10).
40
+ Metrics/MethodLength:
41
+ Max: 15
42
+
43
+ # Limit class length (default is 100).
44
+ Metrics/ClassLength:
45
+ Max: 200
46
+
47
+ # Do not require `# frozen_string_literal: true` at the top of every file.
48
+ FrozenStringLiteralComment:
49
+ Enabled: false
50
+
51
+ # Allow ASCII comments (e.g "…").
52
+ Style/AsciiComments:
53
+ Enabled: false
54
+
55
+ # Do not comment the class we create, since the name should be self explanatory.
56
+ Documentation:
57
+ Enabled: false
58
+
59
+ # Do not verify the length of the blocks in DSLs.
60
+ Metrics/BlockLength:
61
+ Exclude:
62
+ - "**/*/spec/**/*"
63
+ - lib/tasks/**/*
64
+ - app/admin/**/*
65
+ ExcludedMethods:
66
+ - included
67
+
68
+ # Allow any number of keyword arguments in methods.
69
+ Metrics/ParameterLists:
70
+ CountKeywordArgs: false
71
+
72
+ # Prefer `a_variable_1` to `a_variable1`.
73
+ Naming/VariableNumber:
74
+ EnforcedStyle: snake_case
75
+
76
+ # Prefer `== 0`, `< 0`, `> 0` to `zero?`, `negative?` or `positive?`,
77
+ # since they don't exist before Ruby 2.3 or Rails 5 and can be ambiguous.
78
+ Style/NumericPredicate:
79
+ EnforcedStyle: comparison
80
+
81
+ # This cop by default assumes that `Rails.root.join('foo', 'bar')` works
82
+ # better under Windows than `Rails.root.join('foo/bar')`.
83
+ Rails/FilePath:
84
+ EnforcedStyle: slashes
85
+
86
+ # Do not checks for the use of output safety calls like `html_safe` and `raw`,
87
+ # we know what we are doing.
88
+ Rails/OutputSafety:
89
+ Enabled: false
90
+
91
+ # Allow `update_attribute`, we know when to use it.
92
+ Rails/SkipsModelValidations:
93
+ Enabled: false
94
+
95
+ # Allow creating tables without timestamps, whe know what we are doing.
96
+ Rails/CreateTableWithTimestamps
97
+ Enabled: false
98
+
99
+ # Allow template token "%{foo}" since they are used in translation keys.
100
+ Style/FormatStringToken:
101
+ Enabled: false
102
+
103
+ # Do not prefer `lambda` to `->` for DSLs.
104
+ Style/Lambda:
105
+ Exclude:
106
+ - app/graph/**/*
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.3.7
data/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ Gem updates
2
+ ===========
3
+
4
+ ## v1.1.0
5
+
6
+ Features:
7
+ - Disable Lint/AmbiguousBlockAssociation in specs
8
+ - Disable Rails/CreateTableWithTimestamps
9
+ - Enable Bundler/GemComment
10
+
11
+ ## v1.0.0
12
+
13
+ - First release
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify dependencies in percy-style.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,38 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ fashion_police (0.0.1)
5
+ bundler
6
+ rake
7
+ rubocop (>= 0.59)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ ast (2.4.0)
13
+ jaro_winkler (1.5.1)
14
+ parallel (1.12.1)
15
+ parser (2.5.1.2)
16
+ ast (~> 2.4.0)
17
+ powerpack (0.1.2)
18
+ rainbow (3.0.0)
19
+ rake (12.3.1)
20
+ rubocop (0.59.0)
21
+ jaro_winkler (~> 1.5.1)
22
+ parallel (~> 1.10)
23
+ parser (>= 2.5, != 2.5.1.1)
24
+ powerpack (~> 0.1)
25
+ rainbow (>= 2.2.2, < 4.0)
26
+ ruby-progressbar (~> 1.7)
27
+ unicode-display_width (~> 1.0, >= 1.0.1)
28
+ ruby-progressbar (1.10.0)
29
+ unicode-display_width (1.4.0)
30
+
31
+ PLATFORMS
32
+ ruby
33
+
34
+ DEPENDENCIES
35
+ fashion_police!
36
+
37
+ BUNDLED WITH
38
+ 1.16.4
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,87 @@
1
+ # Fashion Police
2
+
3
+ > Sweatpants are a sign of defeat.
4
+ > — Karl Lagerfeld
5
+
6
+ KissKissBankBank's guide for maintaining a common code style.
7
+
8
+ ## Ruby
9
+
10
+ Follow the [Ruby Style Guide](https://github.com/rubocop-hq/ruby-style-guide)
11
+ with our custom
12
+ [`.rubocop.yml`](https://github.com/KissKissBankBank/fashion_police/blob/master/.rubocop.yml).
13
+
14
+ To use it in your project, add to your `Gemfile`:
15
+
16
+ ```rb
17
+ # KissKissBankBank's shared style configuration
18
+ gem 'fashion_police', require: false
19
+ ```
20
+
21
+ Then, add to your `.rubocop.yml`:
22
+
23
+ ```yml
24
+ inherit_gem:
25
+ fashion-police:
26
+ - .rubocop.yml
27
+ ```
28
+
29
+ ## JavaScript
30
+
31
+ Follow Airbnb's [JavaScript](https://github.com/airbnb/javascript) guide.
32
+
33
+ ### React Component layout
34
+
35
+ * <a name="component-layout--auto-close-component"></a><a name="1.1"></a>
36
+ [1.1](#component-layout--auto-close-component)
37
+ **Auto close component**
38
+
39
+ The layout should be like this:
40
+
41
+ ```jsx
42
+ // bad
43
+ <Component foo="bar"
44
+ bar="foo" />
45
+
46
+ // good
47
+ <Component
48
+ foo="bar"
49
+ bar="foo"
50
+ />
51
+ ```
52
+
53
+ * <a name="component-layout--block-component"></a><a name="1.2"></a>
54
+ [1.2](#component-layout--block-component)
55
+ **Block component**
56
+
57
+ The layout should be like this:
58
+
59
+ ```jsx
60
+ // bad
61
+ <Component foo="bar"
62
+ bar="foo">
63
+ Lorem ipsum dolor…
64
+ </Component>
65
+
66
+ <Component
67
+ foo="bar"
68
+ bar="foo">
69
+ Lorem ipsum dolor…
70
+ </Component>
71
+
72
+ // good
73
+ <Component
74
+ foo="bar"
75
+ bar="foo"
76
+ >
77
+ Lorem ipsum dolor…
78
+ </Component>
79
+ ```
80
+
81
+ ## CSS
82
+
83
+ Follow Airbnb's [CSS](https://github.com/airbnb/css) guide.
84
+
85
+ ## General
86
+
87
+ - All comments, commits, committed documentation should be written in English.
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,23 @@
1
+ Gem::Specification.new do |spec|
2
+ spec.name = 'fashion_police'
3
+ spec.version = '1.1.0'
4
+ spec.authors = ['Sunny Ripert']
5
+ spec.email = ['sunny.ripert@kisskissbankbank.com']
6
+
7
+ spec.summary = "KissKissBankBank's shared style configuration"
8
+ spec.homepage = 'https://github.com/KissKissBankBank/fashion_police'
9
+
10
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
11
+ f.match(%r{^(test|spec|features)/})
12
+ end
13
+
14
+ # Rubocop dependency to share the same version among our projects.
15
+ # >= 0.59.0 for "Bundler/GemComment" cop.
16
+ spec.add_dependency 'rubocop', '>= 0.59'
17
+
18
+ # Task launcher.
19
+ spec.add_dependency 'rake'
20
+
21
+ # Build tool.
22
+ spec.add_dependency 'bundler'
23
+ end
metadata ADDED
@@ -0,0 +1,95 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fashion_police
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Sunny Ripert
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-09-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.59'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0.59'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
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: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description:
56
+ email:
57
+ - sunny.ripert@kisskissbankbank.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rubocop.yml"
64
+ - ".ruby-version"
65
+ - CHANGELOG.md
66
+ - Gemfile
67
+ - Gemfile.lock
68
+ - LICENSE
69
+ - README.md
70
+ - Rakefile
71
+ - fashion_police.gemspec
72
+ homepage: https://github.com/KissKissBankBank/fashion_police
73
+ licenses: []
74
+ metadata: {}
75
+ post_install_message:
76
+ rdoc_options: []
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ requirements: []
90
+ rubyforge_project:
91
+ rubygems_version: 2.5.2.3
92
+ signing_key:
93
+ specification_version: 4
94
+ summary: KissKissBankBank's shared style configuration
95
+ test_files: []