aub-payroll 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b61ae020a0974c8833e3b7a7cd4956aeda629da
4
- data.tar.gz: d18a160389743a79e08f2fd2b8b6e8ef923486b3
3
+ metadata.gz: 2746b44a7776165483ba741423c4319b9a9982f8
4
+ data.tar.gz: 2b47c4d96ab604f99f689b02def52a5f9fc35a3b
5
5
  SHA512:
6
- metadata.gz: 3c286327ba7620e0a4b828bbfb1a4a35dd22a97da124f4f274f370bb714c244f29adf1b10531d41493603c597039450b4e3294e0932f3b74a4c73149db366d7d
7
- data.tar.gz: 7edb9ccd4d8cdb992c06181394e4f76001af1ce52850f632d8f64729877c75be2e6b4cd573802e1f0453f7a1020964d2348d83dacb2536e60c786fb5fb206a9a
6
+ metadata.gz: 648884471711b6f31f75a9ad728e5621663a88e0b3bf1ec1f1ef1dc6ec451085b54f5380fe5fe648c44fc19bd29a9d95a35bf295d157282f0a9a12e55398f28f
7
+ data.tar.gz: 49750767797a8881396e7c482b9dd32b1e6a0c78b78bd95e4fbd5e9529933ad5ae43235f73ba16333c0676e06bbf9d15730327392e26864e493e2af5d8a3a61a
data/.codeclimate.yml ADDED
@@ -0,0 +1,39 @@
1
+ # Maximum example, remove per project as needed
2
+ engines:
3
+ scss-lint:
4
+ enabled: true
5
+ duplication:
6
+ enabled: true
7
+ config:
8
+ languages:
9
+ - ruby
10
+ eslint:
11
+ enabled: true
12
+ extensions:
13
+ - .es6
14
+ - .js
15
+ fixme:
16
+ enabled: true
17
+ rubocop:
18
+ enabled: true
19
+
20
+ ratings:
21
+ paths:
22
+ - Gemfile.lock
23
+ - "lib/**"
24
+ - "**.erb"
25
+ - "**.haml"
26
+ - "**.rb"
27
+ - "**.rhtml"
28
+ - "**.slim"
29
+ - "**.ngslim"
30
+ - "**.css"
31
+ - "**.coffee"
32
+ - "**.js"
33
+ - "**.es6"
34
+ exclude_paths:
35
+ - spec/
36
+ - vendor/
37
+ - db/schema.rb
38
+ - .idea
39
+ - lib/aub/payroll/summary_file/templates/clear.css
data/.eslintignore ADDED
@@ -0,0 +1,8 @@
1
+ **/*{.,-}min.js
2
+
3
+ coverage
4
+ karma.conf.js
5
+ tmp
6
+ node_modules/**
7
+ vendor/assets/bower_components/**
8
+ js_spec
data/.eslintrc ADDED
@@ -0,0 +1,128 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "jasmine": true,
5
+ "node": true,
6
+ "es6": true
7
+ },
8
+ "globals": {
9
+ "angular": false,
10
+ "$": false,
11
+ "_": false,
12
+ "LayMeOut": false,
13
+ "moment": false,
14
+ "fixture": false,
15
+ "inject": false
16
+ },
17
+ "rules": {
18
+ "no-bitwise": 2,
19
+ "camelcase": [
20
+ 2,
21
+ {
22
+ "properties": "always"
23
+ }
24
+ ],
25
+ "curly": [
26
+ 2,
27
+ "all"
28
+ ],
29
+ "eqeqeq": 2,
30
+ "guard-for-in": 2,
31
+ "no-extend-native": 2,
32
+ "wrap-iife": 2,
33
+ "indent": [
34
+ 2,
35
+ 2,
36
+ {
37
+ "SwitchCase": 1,
38
+ "VariableDeclarator": 2
39
+ }
40
+ ],
41
+ "no-use-before-define": 2,
42
+ "new-cap": 2,
43
+ "no-caller": 2,
44
+ "no-empty": 0,
45
+ "no-irregular-whitespace": 2,
46
+ "no-new": 2,
47
+ "no-plusplus": 0,
48
+ "quotes": [
49
+ 2,
50
+ "single"
51
+ ],
52
+ "no-undef": 2,
53
+ "no-unused-vars": 0,
54
+ "strict": 0,
55
+ "max-params": [
56
+ 2,
57
+ 10
58
+ ],
59
+ "max-depth": [
60
+ 2,
61
+ 5
62
+ ],
63
+ "max-statements": [
64
+ 2,
65
+ 40
66
+ ],
67
+ "complexity": [
68
+ 2,
69
+ 8
70
+ ],
71
+ "max-len": [
72
+ 2,
73
+ 120
74
+ ],
75
+ "semi": 0,
76
+ "no-cond-assign": 0,
77
+ "no-debugger": 0,
78
+ "no-eq-null": 2,
79
+ "no-eval": 0,
80
+ "no-unused-expressions": 0,
81
+ "block-scoped-var": 0,
82
+ "no-iterator": 0,
83
+ "linebreak-style": 0,
84
+ "comma-style": 0,
85
+ "no-loop-func": 2,
86
+ "no-multi-str": 2,
87
+ "valid-typeof": 0,
88
+ "no-proto": 0,
89
+ "no-script-url": 0,
90
+ "no-shadow": 2,
91
+ "dot-notation": 0,
92
+ "no-new-func": 0,
93
+ "no-new-wrappers": 0,
94
+ "no-invalid-this": 0,
95
+ "require-yield": 0,
96
+ "operator-linebreak": [
97
+ 2,
98
+ "after"
99
+ ],
100
+ "no-mixed-spaces-and-tabs": 2,
101
+ "no-trailing-spaces": 2,
102
+ "space-unary-ops": 0,
103
+ "one-var": 0,
104
+ "space-return-throw-case": 0,
105
+ "space-after-keywords": [
106
+ 2,
107
+ "always"
108
+ ],
109
+ "space-infix-ops": 2,
110
+ "space-before-blocks": [
111
+ 2,
112
+ "always"
113
+ ],
114
+ "eol-last": 2,
115
+ "array-bracket-spacing": [
116
+ 2,
117
+ "never"
118
+ ],
119
+ "space-in-parens": [
120
+ 2,
121
+ "never"
122
+ ],
123
+ "valid-jsdoc": 2,
124
+ "no-multiple-empty-lines": 2,
125
+ "no-underscore-dangle": 0,
126
+ "comma-dangle": 0
127
+ }
128
+ }
@@ -0,0 +1,243 @@
1
+ AllCops:
2
+ Exclude:
3
+ - "vendor/**/*"
4
+ - "db/schema.rb"
5
+ UseCache: false
6
+ Style/CollectionMethods:
7
+ Description: Preferred collection methods.
8
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
9
+ Enabled: true
10
+ PreferredMethods:
11
+ collect: map
12
+ collect!: map!
13
+ find: detect
14
+ find_all: select
15
+ reduce: inject
16
+ Style/DotPosition:
17
+ Description: Checks the position of the dot in multi-line method calls.
18
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
19
+ Enabled: true
20
+ EnforcedStyle: trailing
21
+ SupportedStyles:
22
+ - leading
23
+ - trailing
24
+ Style/FileName:
25
+ Description: Use snake_case for source file names.
26
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
27
+ Enabled: false
28
+ Exclude: []
29
+ Style/GuardClause:
30
+ Description: Check for conditionals that can be replaced with guard clauses
31
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
32
+ Enabled: false
33
+ MinBodyLength: 1
34
+ Style/IfUnlessModifier:
35
+ Description: Favor modifier if/unless usage when you have a single-line body.
36
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
37
+ Enabled: false
38
+ MaxLineLength: 80
39
+ Style/OptionHash:
40
+ Description: Don't use option hashes when you can use keyword arguments.
41
+ Enabled: false
42
+ Style/PercentLiteralDelimiters:
43
+ Description: Use `%`-literal delimiters consistently
44
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
45
+ Enabled: false
46
+ PreferredDelimiters:
47
+ "%": "()"
48
+ "%i": "()"
49
+ "%q": "()"
50
+ "%Q": "()"
51
+ "%r": "{}"
52
+ "%s": "()"
53
+ "%w": "()"
54
+ "%W": "()"
55
+ "%x": "()"
56
+ Style/PredicateName:
57
+ Description: Check the names of predicate methods.
58
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
59
+ Enabled: true
60
+ NamePrefix:
61
+ - is_
62
+ - has_
63
+ - have_
64
+ NamePrefixBlacklist:
65
+ - is_
66
+ Exclude:
67
+ - spec/**/*
68
+ Style/RaiseArgs:
69
+ Description: Checks the arguments passed to raise/fail.
70
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
71
+ Enabled: false
72
+ EnforcedStyle: exploded
73
+ SupportedStyles:
74
+ - compact
75
+ - exploded
76
+ Style/SignalException:
77
+ Description: Checks for proper usage of fail and raise.
78
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
79
+ Enabled: false
80
+ EnforcedStyle: semantic
81
+ SupportedStyles:
82
+ - only_raise
83
+ - only_fail
84
+ - semantic
85
+ Style/SingleLineBlockParams:
86
+ Description: Enforces the names of some block params.
87
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
88
+ Enabled: false
89
+ Methods:
90
+ - reduce:
91
+ - a
92
+ - e
93
+ - inject:
94
+ - a
95
+ - e
96
+ Style/SingleLineMethods:
97
+ Description: Avoid single-line methods.
98
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
99
+ Enabled: false
100
+ AllowIfMethodIsEmpty: true
101
+ Style/StringLiterals:
102
+ Description: Checks if uses of quotes match the configured preference.
103
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
104
+ Enabled: true
105
+ EnforcedStyle: double_quotes
106
+ SupportedStyles:
107
+ - single_quotes
108
+ - double_quotes
109
+ Style/StringLiteralsInInterpolation:
110
+ Description: Checks if uses of quotes inside expressions in interpolated strings
111
+ match the configured preference.
112
+ Enabled: true
113
+ EnforcedStyle: single_quotes
114
+ SupportedStyles:
115
+ - single_quotes
116
+ - double_quotes
117
+ Style/TrailingCommaInArguments:
118
+ Description: 'Checks for trailing comma in argument lists.'
119
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
120
+ Enabled: false
121
+ EnforcedStyleForMultiline: no_comma
122
+ SupportedStyles:
123
+ - comma
124
+ - consistent_comma
125
+ - no_comma
126
+ Style/TrailingCommaInLiteral:
127
+ Description: 'Checks for trailing comma in array and hash literals.'
128
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
129
+ Enabled: false
130
+ EnforcedStyleForMultiline: no_comma
131
+ SupportedStyles:
132
+ - comma
133
+ - consistent_comma
134
+ - no_comma
135
+ Metrics/AbcSize:
136
+ Description: A calculated magnitude based on number of assignments, branches, and
137
+ conditions.
138
+ Enabled: false
139
+ Max: 15
140
+ Metrics/ClassLength:
141
+ Description: Avoid classes longer than 100 lines of code.
142
+ Enabled: false
143
+ CountComments: false
144
+ Max: 100
145
+ Metrics/ModuleLength:
146
+ CountComments: false
147
+ Max: 100
148
+ Description: Avoid modules longer than 100 lines of code.
149
+ Enabled: false
150
+ Metrics/CyclomaticComplexity:
151
+ Description: A complexity metric that is strongly correlated to the number of test
152
+ cases needed to validate a method.
153
+ Enabled: false
154
+ Max: 6
155
+ Metrics/MethodLength:
156
+ Description: Avoid methods longer than 10 lines of code.
157
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
158
+ Enabled: false
159
+ CountComments: false
160
+ Max: 10
161
+ Metrics/ParameterLists:
162
+ Description: Avoid parameter lists longer than three or four parameters.
163
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
164
+ Enabled: false
165
+ Max: 5
166
+ CountKeywordArgs: true
167
+ Metrics/PerceivedComplexity:
168
+ Description: A complexity metric geared towards measuring complexity for a human
169
+ reader.
170
+ Enabled: false
171
+ Max: 7
172
+ Lint/AssignmentInCondition:
173
+ Description: Don't use assignment in conditions.
174
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
175
+ Enabled: false
176
+ AllowSafeAssignment: true
177
+ Style/InlineComment:
178
+ Description: Avoid inline comments.
179
+ Enabled: false
180
+ Style/AccessorMethodName:
181
+ Description: Check the naming of accessor methods for get_/set_.
182
+ Enabled: false
183
+ Style/Alias:
184
+ Description: Use alias_method instead of alias.
185
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
186
+ Enabled: false
187
+ Style/Documentation:
188
+ Description: Document classes and non-namespace modules.
189
+ Enabled: false
190
+ Style/DoubleNegation:
191
+ Description: Checks for uses of double negation (!!).
192
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
193
+ Enabled: false
194
+ Style/EachWithObject:
195
+ Description: Prefer `each_with_object` over `inject` or `reduce`.
196
+ Enabled: false
197
+ Style/EmptyLiteral:
198
+ Description: Prefer literals to Array.new/Hash.new/String.new.
199
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
200
+ Enabled: false
201
+ Style/ModuleFunction:
202
+ Description: Checks for usage of `extend self` in modules.
203
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
204
+ Enabled: false
205
+ Style/OneLineConditional:
206
+ Description: Favor the ternary operator(?:) over if/then/else/end constructs.
207
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
208
+ Enabled: false
209
+ Style/PerlBackrefs:
210
+ Description: Avoid Perl-style regex back references.
211
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
212
+ Enabled: false
213
+ Style/Send:
214
+ Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send`
215
+ may overlap with existing methods.
216
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-public-send
217
+ Enabled: false
218
+ Style/SpecialGlobalVars:
219
+ Description: Avoid Perl-style global variables.
220
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
221
+ Enabled: false
222
+ Style/VariableInterpolation:
223
+ Description: Don't interpolate global, instance and class variables directly in
224
+ strings.
225
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
226
+ Enabled: false
227
+ Style/WhenThen:
228
+ Description: Use when x then ... for one-line cases.
229
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
230
+ Enabled: false
231
+ Lint/EachWithObjectArgument:
232
+ Description: Check for immutable argument given to each_with_object.
233
+ Enabled: true
234
+ Lint/HandleExceptions:
235
+ Description: Don't suppress exception.
236
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
237
+ Enabled: false
238
+ Lint/LiteralInCondition:
239
+ Description: Checks of literals used in conditions.
240
+ Enabled: false
241
+ Lint/LiteralInInterpolation:
242
+ Description: Checks for literals used in interpolation.
243
+ Enabled: false
data/.rubocop.yml ADDED
@@ -0,0 +1,55 @@
1
+ inherit_from:
2
+ - .rubocop.hound.yml
3
+
4
+ AllCops:
5
+ TargetRubyVersion: 2.1
6
+ Exclude:
7
+ - '*.gemspec'
8
+ - 'Gemfile'
9
+
10
+ Style/EmptyLinesAroundClassBody:
11
+ Enabled: false
12
+
13
+ Style/EmptyLinesAroundModuleBody:
14
+ Enabled: false
15
+
16
+ Style/EmptyLinesAroundMethodBody:
17
+ Enabled: false
18
+
19
+ Style/ClassCheck:
20
+ Enabled: false
21
+ # we don't care about kind_of? vs is_a?
22
+
23
+ Style/StringLiterals:
24
+ Enabled: false
25
+
26
+ Style/FileName:
27
+ Enabled: false
28
+
29
+ Style/RedundantException:
30
+ Enabled: false
31
+
32
+ Style/SignalException:
33
+ Enabled: false
34
+
35
+ Style/BlockDelimiters:
36
+ Enabled: false
37
+
38
+ Style/CollectionMethods:
39
+ PreferredMethods:
40
+ detect: find
41
+
42
+ # Github's PR width is 120 characters
43
+ Metrics/LineLength:
44
+ Max: 120
45
+ AllowURI: true
46
+
47
+ # Align with the style guide, we don't prefer anything
48
+ Style/CollectionMethods:
49
+ Enabled: false
50
+
51
+ Metrics/AbcSize:
52
+ Description: A calculated magnitude based on number of assignments, branches, and
53
+ conditions.
54
+ Enabled: true
55
+ Max: 30