alexandria-book-collection-manager 0.7.5 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +9 -0
  3. data/.gitignore +4 -1
  4. data/.rubocop.yml +51 -29
  5. data/.rubocop_todo.yml +33 -155
  6. data/.simplecov +5 -2
  7. data/.travis.yml +10 -4
  8. data/CHANGELOG.md +19 -0
  9. data/INSTALL.md +23 -11
  10. data/README.md +36 -35
  11. data/Rakefile +7 -5
  12. data/alexandria-book-collection-manager.gemspec +8 -3
  13. data/doc/dependency_decisions.yml +22 -3
  14. data/lib/alexandria.rb +2 -2
  15. data/lib/alexandria/book_providers.rb +47 -49
  16. data/lib/alexandria/book_providers/adlibris.rb +8 -13
  17. data/lib/alexandria/book_providers/amazon_aws.rb +47 -60
  18. data/lib/alexandria/book_providers/amazon_ecs_util.rb +283 -298
  19. data/lib/alexandria/book_providers/barnes_and_noble.rb +8 -8
  20. data/lib/alexandria/book_providers/douban.rb +2 -2
  21. data/lib/alexandria/book_providers/proxis.rb +12 -11
  22. data/lib/alexandria/book_providers/pseudomarc.rb +60 -70
  23. data/lib/alexandria/book_providers/siciliano.rb +5 -6
  24. data/lib/alexandria/book_providers/thalia.rb +8 -9
  25. data/lib/alexandria/book_providers/worldcat.rb +25 -31
  26. data/lib/alexandria/book_providers/z3950.rb +62 -69
  27. data/lib/alexandria/default_preferences.rb +37 -0
  28. data/lib/alexandria/execution_queue.rb +13 -12
  29. data/lib/alexandria/export_library.rb +4 -8
  30. data/lib/alexandria/import_library.rb +38 -62
  31. data/lib/alexandria/import_library_csv.rb +16 -16
  32. data/lib/alexandria/library_sort_order.rb +3 -1
  33. data/lib/alexandria/library_store.rb +16 -16
  34. data/lib/alexandria/logging.rb +4 -8
  35. data/lib/alexandria/models/book.rb +2 -2
  36. data/lib/alexandria/models/library.rb +18 -14
  37. data/lib/alexandria/net.rb +1 -2
  38. data/lib/alexandria/preferences.rb +27 -31
  39. data/lib/alexandria/scanners.rb +2 -2
  40. data/lib/alexandria/scanners/cue_cat.rb +5 -5
  41. data/lib/alexandria/scanners/keyboard.rb +1 -1
  42. data/lib/alexandria/smart_library.rb +22 -26
  43. data/lib/alexandria/ui.rb +7 -7
  44. data/lib/alexandria/ui/about_dialog.rb +1 -1
  45. data/lib/alexandria/ui/acquire_dialog.rb +9 -10
  46. data/lib/alexandria/ui/alert_dialog.rb +34 -19
  47. data/lib/alexandria/ui/bad_isbns_dialog.rb +13 -9
  48. data/lib/alexandria/ui/barcode_animation.rb +5 -5
  49. data/lib/alexandria/ui/book_properties_dialog.rb +2 -2
  50. data/lib/alexandria/ui/book_properties_dialog_base.rb +23 -17
  51. data/lib/alexandria/ui/callbacks.rb +141 -120
  52. data/lib/alexandria/ui/completion_models.rb +1 -1
  53. data/lib/alexandria/ui/confirm_erase_dialog.rb +1 -1
  54. data/lib/alexandria/ui/conflict_while_copying_dialog.rb +1 -1
  55. data/lib/alexandria/ui/error_dialog.rb +1 -1
  56. data/lib/alexandria/ui/export_dialog.rb +13 -15
  57. data/lib/alexandria/ui/icons.rb +34 -40
  58. data/lib/alexandria/ui/iconview_tooltips.rb +40 -53
  59. data/lib/alexandria/ui/import_dialog.rb +48 -47
  60. data/lib/alexandria/ui/init.rb +3 -2
  61. data/lib/alexandria/ui/keep_bad_isbn_dialog.rb +2 -2
  62. data/lib/alexandria/ui/libraries_combo.rb +10 -9
  63. data/lib/alexandria/ui/listview.rb +5 -6
  64. data/lib/alexandria/ui/main_app.rb +2 -2
  65. data/lib/alexandria/ui/multi_drag_treeview.rb +4 -6
  66. data/lib/alexandria/ui/new_book_dialog.rb +52 -52
  67. data/lib/alexandria/ui/new_provider_dialog.rb +12 -11
  68. data/lib/alexandria/ui/new_smart_library_dialog.rb +39 -27
  69. data/lib/alexandria/ui/preferences_dialog.rb +23 -82
  70. data/lib/alexandria/ui/provider_preferences_base_dialog.rb +9 -5
  71. data/lib/alexandria/ui/provider_preferences_dialog.rb +5 -5
  72. data/lib/alexandria/ui/really_delete_dialog.rb +1 -1
  73. data/lib/alexandria/ui/sidepane_manager.rb +35 -37
  74. data/lib/alexandria/ui/skip_entry_dialog.rb +3 -2
  75. data/lib/alexandria/ui/smart_library_properties_dialog.rb +35 -36
  76. data/lib/alexandria/ui/smart_library_properties_dialog_base.rb +59 -138
  77. data/lib/alexandria/ui/smart_library_rule_box.rb +119 -0
  78. data/lib/alexandria/ui/sound.rb +4 -6
  79. data/lib/alexandria/ui/ui_manager.rb +62 -64
  80. data/lib/alexandria/version.rb +2 -2
  81. data/lib/alexandria/web_themes.rb +15 -15
  82. data/po/cs.po +991 -874
  83. data/po/cy.po +957 -870
  84. data/po/de.po +991 -866
  85. data/po/el.po +987 -863
  86. data/po/es.po +986 -862
  87. data/po/fr.po +988 -868
  88. data/po/ga.po +910 -822
  89. data/po/gl.po +983 -863
  90. data/po/it.po +984 -862
  91. data/po/ja.po +969 -849
  92. data/po/mk.po +983 -859
  93. data/po/nb.po +982 -862
  94. data/po/nl.po +992 -869
  95. data/po/pl.po +1018 -963
  96. data/po/pt.po +983 -852
  97. data/po/pt_BR.po +983 -863
  98. data/po/ru.po +992 -869
  99. data/po/sk.po +986 -864
  100. data/po/sv.po +980 -860
  101. data/po/uk.po +975 -861
  102. data/po/zh_TW.po +974 -854
  103. data/share/alexandria/glade/main_app__builder.glade +6 -21
  104. data/share/gnome/help/alexandria/C/smart-libraries.xml +2 -2
  105. data/share/gnome/help/alexandria/C/working-with-libraries.xml +1 -1
  106. data/share/gnome/help/alexandria/fr/alexandria.xml +1 -1
  107. data/share/gnome/help/alexandria/ja/smart-libraries.xml +1 -1
  108. data/spec/alexandria/book_providers/world_cat_provider_spec.rb +160 -0
  109. data/spec/alexandria/book_providers_spec.rb +73 -129
  110. data/spec/alexandria/console_spec.rb +0 -5
  111. data/spec/alexandria/export_library_spec.rb +27 -38
  112. data/spec/alexandria/library_spec.rb +56 -44
  113. data/spec/alexandria/preferences_spec.rb +29 -3
  114. data/spec/alexandria/scanners/cue_cat_spec.rb +1 -1
  115. data/spec/alexandria/ui/about_dialog_spec.rb +1 -1
  116. data/spec/alexandria/ui/acquire_dialog_spec.rb +1 -1
  117. data/spec/alexandria/ui/alert_dialog_spec.rb +1 -1
  118. data/spec/alexandria/ui/bad_isbns_dialog_spec.rb +1 -1
  119. data/spec/alexandria/ui/book_properties_dialog_spec.rb +1 -1
  120. data/spec/alexandria/ui/confirm_erase_dialog_spec.rb +1 -1
  121. data/spec/alexandria/ui/conflict_while_copying_dialog_spec.rb +1 -1
  122. data/spec/alexandria/ui/error_dialog_spec.rb +1 -1
  123. data/spec/alexandria/ui/export_dialog_spec.rb +1 -1
  124. data/spec/alexandria/ui/icons_spec.rb +26 -0
  125. data/spec/alexandria/ui/iconview_spec.rb +1 -1
  126. data/spec/alexandria/ui/import_dialog_spec.rb +30 -3
  127. data/spec/alexandria/ui/keep_bad_isbn_dialog_spec.rb +1 -1
  128. data/spec/alexandria/ui/main_app_spec.rb +1 -1
  129. data/spec/alexandria/ui/new_book_dialog_manual_spec.rb +1 -1
  130. data/spec/alexandria/ui/new_provider_dialog_spec.rb +19 -3
  131. data/spec/alexandria/ui/new_smart_library_dialog_spec.rb +28 -3
  132. data/spec/alexandria/ui/preferences_dialog_spec.rb +1 -1
  133. data/spec/alexandria/ui/provider_preferences_dialog_spec.rb +23 -8
  134. data/spec/alexandria/ui/really_delete_dialog_spec.rb +1 -1
  135. data/spec/alexandria/ui/sidepane_manager_spec.rb +2 -2
  136. data/spec/alexandria/ui/skip_entry_dialog_spec.rb +1 -1
  137. data/spec/alexandria/ui/smart_library_properties_dialog_spec.rb +21 -7
  138. data/spec/alexandria/ui/ui_manager_spec.rb +39 -2
  139. data/spec/spec_helper.rb +46 -3
  140. data/tasks/spec.rake +3 -5
  141. data/util/rake/fileinstall.rb +12 -11
  142. metadata +82 -10
  143. data/spec/alexandria/ui/ui_utilities_spec.rb +0 -62
  144. data/spec/alexandria/utilities_spec.rb +0 -52
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41c8eead00b7524b5b74feaa6ac01f063faaac747b83fccad928afa9d8b28b58
4
- data.tar.gz: 10fd8fa88a3deab629b885c31afae79984c5c706c5ae0bab4a41c7ddd35bf12a
3
+ metadata.gz: 0c194c4c3c57f9f5f3c5168f2e59cbe0f26be22040392ba5cc6640b2fe6bb917
4
+ data.tar.gz: a76de1e82e89789ffdf419a10fa601d3bdb4b507c58ea76e9ad8b4123627da04
5
5
  SHA512:
6
- metadata.gz: 0710b1de59aadd9a781760b23b329f4369d42dbc4c77f1dc1f6fee5643a928cccb113390595ad675b766c865f4a8651ae290e1665bed32fb6af9b501d2a2bdec
7
- data.tar.gz: b8f0ec703fd44905365c9d66bb28ddb5b4b8e46f3bd26ad9762d99e2e7f66e7ab4634314ec4a06890e0a28fc0cbe752dde704bf03be9371bbc73c5931eb8a605
6
+ metadata.gz: 367b0d80c25a8ece61d580cedb7806db56f9627c5adb151b63da5655b8495cf988a1e780fa27c88927c02c07b645ff5db452b96896d1720d82df542fb3cd3f1c
7
+ data.tar.gz: 88570773f1454e1f36c5d0268040f6ab30fd4acb41eb8c90fba9c3bb3488bc980d124705995493f7d7640f7dd9ee7e5355950b594759fd58ffc69a54e1302cbb
@@ -0,0 +1,9 @@
1
+ # Documentation for all configuration options:
2
+ # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3
+
4
+ version: 2
5
+ updates:
6
+ - package-ecosystem: "bundler"
7
+ directory: "/"
8
+ schedule:
9
+ interval: "daily"
data/.gitignore CHANGED
@@ -3,13 +3,16 @@ config.save
3
3
  alexandria.desktop
4
4
  alexandria.desktop.in.h
5
5
  .svn-authors
6
- lib/alexandria/default_preferences.rb
7
6
  Gemfile.lock
8
7
  .yardoc/
9
8
  share/locale/
10
9
  share/omf/alexandria/*.omf
10
+ spec/examples.txt
11
11
  pkg/
12
12
  coverage/
13
13
  tmp/
14
+ po/*.po~
15
+ po/*.mo
16
+ po/*.pot
14
17
  *.gem
15
18
  *.glade~
@@ -3,13 +3,36 @@ inherit_from: .rubocop_todo.yml
3
3
  require:
4
4
  - rubocop-performance
5
5
  - rubocop-rspec
6
+ - rubocop-i18n
6
7
 
7
8
  AllCops:
8
9
  Exclude:
9
10
  - 'lib/alexandria/default_preferences.rb'
10
11
  - 'pkg/**/*'
12
+ - 'vendor/bundle/**/*'
13
+ NewCops: enable
11
14
  TargetRubyVersion: 2.5
12
15
 
16
+ # Choose GetText-style I18n cops
17
+ GetText:
18
+ Enabled: true
19
+ # Exclude non-user-facing code
20
+ Exclude:
21
+ - Rakefile
22
+ - 'util/**/*'
23
+ - 'spec/**/*'
24
+ RailsI18n:
25
+ Enabled: false
26
+
27
+ # This code has a lot of pre-existing translations with percent-style
28
+ # formatting. Maybe one day someone will re-do all of them ...
29
+ GetText/DecorateStringFormattingUsingPercent:
30
+ Enabled: false
31
+
32
+ # Make BeginEndAlignment behavior match EndAlignment
33
+ Layout/BeginEndAlignment:
34
+ EnforcedStyleAlignWith: begin
35
+
13
36
  Layout/HashAlignment:
14
37
  EnforcedColonStyle: key
15
38
  EnforcedHashRocketStyle: table
@@ -44,13 +67,10 @@ Lint/AmbiguousBlockAssociation:
44
67
  Lint/AssignmentInCondition:
45
68
  AllowSafeAssignment: true
46
69
 
47
- # Activate new cops from RuboCop 0.81 and 0.82
48
- Lint/RaiseException:
49
- Enabled: true
50
- Layout/SpaceAroundMethodCallOperator:
51
- Enabled: true
52
- Lint/StructNewOverride:
53
- Enabled: true
70
+ # This cop's reach is too broad
71
+ # See https://github.com/rubocop-hq/rubocop/pull/8480
72
+ Lint/MissingSuper:
73
+ Enabled: false
54
74
 
55
75
  # Blocks in specs can be any size
56
76
  Metrics/BlockLength:
@@ -64,34 +84,38 @@ Naming/AccessorMethodName:
64
84
  Naming/RescuedExceptionsVariableName:
65
85
  PreferredName: ex
66
86
 
87
+ Performance/EndWith:
88
+ AutoCorrect: true
89
+
90
+ Performance/StartWith:
91
+ AutoCorrect: true
92
+
93
+ # End-to-end specs do not describe classes
94
+ RSpec/DescribeClass:
95
+ Exclude:
96
+ - 'spec/end_to_end/**/*_spec.rb'
97
+
98
+ RSpec/ExampleLength:
99
+ Max: 8
100
+ Exclude:
101
+ - 'spec/end_to_end/**/*_spec.rb'
102
+
67
103
  # Allow and/or for control flow only
68
104
  Style/AndOr:
69
105
  EnforcedStyle: conditionals
70
106
 
71
- # Activate new cop from RuboCop 0.82
72
- Style/ExponentialNotation:
73
- Enabled: true
74
-
75
107
  # Require at least two dependent lines before suggesting a guard clause
76
108
  Style/GuardClause:
77
109
  MinBodyLength: 2
78
110
 
79
- # Activate new cops from RuboCop 0.80
80
- Style/HashEachMethods:
81
- Enabled: true
82
- Style/HashTransformKeys:
83
- Enabled: true
84
- Style/HashTransformValues:
85
- Enabled: true
111
+ # Sometimes an if statement just looks better than next with a guard clause
112
+ Style/Next:
113
+ Enabled: false
86
114
 
87
115
  # Not all objects that handle #== 0 also handle #zero?
88
116
  Style/NumericPredicate:
89
117
  Enabled: false
90
118
 
91
- # Sometimes an if statement just looks better than next with a guard clause
92
- Style/Next:
93
- Enabled: false
94
-
95
119
  # Use older RuboCop default
96
120
  Style/PercentLiteralDelimiters:
97
121
  PreferredDelimiters:
@@ -105,6 +129,10 @@ Style/RedundantReturn:
105
129
  Style/SingleLineBlockParams:
106
130
  Enabled: false
107
131
 
132
+ # Allow all ways to construct strings for now
133
+ Style/StringConcatenation:
134
+ Enabled: false
135
+
108
136
  # Do not commit to use of interpolation
109
137
  Style/StringLiterals:
110
138
  EnforcedStyle: double_quotes
@@ -113,9 +141,7 @@ Style/StringLiterals:
113
141
  Style/SymbolArray:
114
142
  EnforcedStyle: brackets
115
143
 
116
- # Project-specific configuration goes here.
117
-
118
- # Accessors are only trivial if they match the ivar name.
144
+ # Accessors are only trivial if they match the ivar name
119
145
  Style/TrivialAccessors:
120
146
  ExactNameMatch: true
121
147
 
@@ -126,7 +152,3 @@ Style/TrailingCommaInArrayLiteral:
126
152
  # Alexandria uses regular arrays
127
153
  Style/WordArray:
128
154
  Enabled: false
129
-
130
- # Not all objects that handle #length also handle #empty?
131
- Style/ZeroLengthPredicate:
132
- Enabled: false
@@ -1,87 +1,52 @@
1
1
  # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2020-02-22 15:02:18 +0100 using RuboCop version 0.80.0.
2
+ # `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp`
3
+ # using RuboCop version 0.93.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 2
10
- Lint/IneffectiveAccessModifier:
11
- Exclude:
12
- - 'lib/alexandria/logging.rb'
13
- - 'lib/alexandria/web_themes.rb'
14
-
15
- # Offense count: 1
16
- Lint/ShadowingOuterLocalVariable:
17
- Exclude:
18
- - 'lib/alexandria/ui/libraries_combo.rb'
19
-
20
- # Offense count: 1
21
- Lint/UriEscapeUnescape:
22
- Exclude:
23
- - 'lib/alexandria/book_providers/amazon_ecs_util.rb'
24
-
25
- # Offense count: 2
26
- # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
27
- Lint/UselessAccessModifier:
28
- Exclude:
29
- - 'lib/alexandria/logging.rb'
30
-
31
- # Offense count: 160
9
+ # Configuration parameters: IgnoredMethods.
32
10
  Metrics/AbcSize:
33
- Max: 159
11
+ Max: 111
34
12
 
35
- # Offense count: 21
36
- # Configuration parameters: CountComments, ExcludedMethods.
13
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
37
14
  # ExcludedMethods: refine
38
15
  Metrics/BlockLength:
39
- Max: 67
16
+ Max: 64
40
17
 
41
- # Offense count: 8
42
18
  # Configuration parameters: CountBlocks.
43
19
  Metrics/BlockNesting:
44
20
  Max: 5
45
21
 
46
- # Offense count: 31
47
- # Configuration parameters: CountComments.
22
+ # Configuration parameters: CountComments, CountAsOne.
48
23
  Metrics/ClassLength:
49
- Max: 994
24
+ Max: 990
50
25
 
51
- # Offense count: 63
26
+ # Configuration parameters: IgnoredMethods.
52
27
  Metrics/CyclomaticComplexity:
53
- Max: 22
28
+ Max: 27
54
29
 
55
- # Offense count: 214
56
- # Configuration parameters: CountComments, ExcludedMethods.
30
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
57
31
  Metrics/MethodLength:
58
- Max: 113
32
+ Max: 98
59
33
 
60
- # Offense count: 1
61
- # Configuration parameters: CountComments.
34
+ # Configuration parameters: CountComments, CountAsOne.
62
35
  Metrics/ModuleLength:
63
- Max: 346
36
+ Max: 361
64
37
 
65
- # Offense count: 10
66
38
  # Configuration parameters: CountKeywordArgs.
67
39
  Metrics/ParameterLists:
68
40
  Max: 7
69
41
 
70
- # Offense count: 61
42
+ # Configuration parameters: IgnoredMethods.
71
43
  Metrics/PerceivedComplexity:
72
- Max: 23
44
+ Max: 27
73
45
 
74
- # Offense count: 8
75
46
  Naming/BinaryOperatorParameterName:
76
47
  Exclude:
77
- - 'lib/alexandria/book_providers.rb'
78
48
  - 'lib/alexandria/book_providers/amazon_ecs_util.rb'
79
- - 'lib/alexandria/models/book.rb'
80
- - 'lib/alexandria/models/library.rb'
81
- - 'lib/alexandria/smart_library.rb'
82
- - 'lib/alexandria/ui/multi_drag_treeview.rb'
83
49
 
84
- # Offense count: 13
85
50
  # Configuration parameters: ForbiddenDelimiters.
86
51
  # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
87
52
  Naming/HeredocDelimiterNaming:
@@ -91,27 +56,6 @@ Naming/HeredocDelimiterNaming:
91
56
  - 'lib/alexandria/export_library.rb'
92
57
  - 'lib/alexandria/ui/about_dialog.rb'
93
58
 
94
- # Offense count: 2
95
- # Configuration parameters: EnforcedStyleForLeadingUnderscores.
96
- # SupportedStylesForLeadingUnderscores: disallowed, required, optional
97
- Naming/MemoizedInstanceVariableName:
98
- Exclude:
99
- - 'lib/alexandria/logging.rb'
100
-
101
- # Offense count: 10
102
- # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
103
- # AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
104
- Naming/MethodParameterName:
105
- Exclude:
106
- - 'lib/alexandria/book_providers/amazon_ecs_util.rb'
107
- - 'lib/alexandria/book_providers/proxis.rb'
108
- - 'lib/alexandria/book_providers/pseudomarc.rb'
109
- - 'lib/alexandria/smart_library.rb'
110
- - 'lib/alexandria/ui/callbacks.rb'
111
- - 'lib/alexandria/ui/init.rb'
112
- - 'util/rake/fileinstall.rb'
113
-
114
- # Offense count: 4
115
59
  # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
116
60
  # NamePrefix: is_, has_, have_
117
61
  # ForbiddenPrefixes: is_, has_, have_
@@ -124,56 +68,15 @@ Naming/PredicateName:
124
68
  - 'lib/alexandria/ui/smart_library_properties_dialog_base.rb'
125
69
  - 'lib/alexandria/web_themes.rb'
126
70
 
127
- # Offense count: 1
128
- RSpec/DescribeClass:
129
- Exclude:
130
- - 'spec/end_to_end/basic_run_spec.rb'
131
-
132
- # Offense count: 17
133
- # Configuration parameters: Max.
134
- RSpec/ExampleLength:
135
- Exclude:
136
- - 'spec/alexandria/book_providers_spec.rb'
137
- - 'spec/alexandria/book_spec.rb'
138
- - 'spec/alexandria/console_spec.rb'
139
- - 'spec/alexandria/export_library_spec.rb'
140
- - 'spec/alexandria/library_spec.rb'
141
- - 'spec/alexandria/library_store_spec.rb'
142
- - 'spec/alexandria/ui/provider_preferences_dialog_spec.rb'
143
- - 'spec/alexandria/ui/smart_library_properties_dialog_spec.rb'
144
- - 'spec/end_to_end/basic_run_spec.rb'
145
-
146
- # Offense count: 1
147
- RSpec/ExpectInHook:
148
- Exclude:
149
- - 'spec/alexandria/export_library_spec.rb'
150
-
151
- # Offense count: 3
152
- # Configuration parameters: CustomTransform, IgnoreMethods.
71
+ # Configuration parameters: CustomTransform, IgnoreMethods, SpecSuffixOnly.
153
72
  RSpec/FilePath:
154
73
  Exclude:
155
74
  - 'spec/alexandria/ui/iconview_spec.rb'
156
- - 'spec/alexandria/ui/sidepane_manager_spec.rb'
157
75
  - 'spec/alexandria/ui/sound_spec.rb'
158
76
 
159
- # Offense count: 11
160
- # Configuration parameters: AssignmentOnly.
161
- RSpec/InstanceVariable:
162
- Exclude:
163
- - 'spec/alexandria/export_library_spec.rb'
164
-
165
- # Offense count: 2
166
- RSpec/MultipleDescribes:
167
- Exclude:
168
- - 'spec/alexandria/ui/ui_utilities_spec.rb'
169
- - 'spec/alexandria/utilities_spec.rb'
170
-
171
- # Offense count: 13
172
- # Configuration parameters: AggregateFailuresByDefault.
173
77
  RSpec/MultipleExpectations:
174
- Max: 11
78
+ Max: 7
175
79
 
176
- # Offense count: 34
177
80
  # Cop supports --auto-correct.
178
81
  # Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
179
82
  # SupportedStyles: inflected, explicit
@@ -184,18 +87,14 @@ RSpec/PredicateMatcher:
184
87
  - 'spec/alexandria/library_store_spec.rb'
185
88
  - 'spec/alexandria/scanners/cue_cat_spec.rb'
186
89
 
187
- # Offense count: 8
188
90
  # Cop supports --auto-correct.
189
- # Configuration parameters: AutoCorrect, EnforcedStyle.
91
+ # Configuration parameters: EnforcedStyle.
190
92
  # SupportedStyles: nested, compact
191
93
  Style/ClassAndModuleChildren:
192
94
  Exclude:
193
- - 'lib/alexandria/ui/icons.rb'
194
- - 'lib/alexandria/ui/import_dialog.rb'
195
95
  - 'lib/alexandria/ui/init.rb'
196
96
  - 'lib/alexandria/ui/provider_preferences_base_dialog.rb'
197
97
 
198
- # Offense count: 17
199
98
  Style/ClassVars:
200
99
  Exclude:
201
100
  - 'lib/alexandria/book_providers/amazon_ecs_util.rb'
@@ -207,26 +106,9 @@ Style/ClassVars:
207
106
  - 'lib/alexandria/ui/book_properties_dialog_base.rb'
208
107
  - 'lib/alexandria/ui/new_book_dialog.rb'
209
108
 
210
- # Offense count: 11
211
- Style/CommentedKeyword:
212
- Exclude:
213
- - 'lib/alexandria/book_providers.rb'
214
- - 'lib/alexandria/book_providers/barnes_and_noble.rb'
215
- - 'lib/alexandria/book_providers/worldcat.rb'
216
- - 'lib/alexandria/ui/new_book_dialog.rb'
217
- - 'util/rake/fileinstall.rb'
218
-
219
- # Offense count: 112
220
109
  Style/Documentation:
221
110
  Enabled: false
222
111
 
223
- # Offense count: 2
224
- Style/DoubleNegation:
225
- Exclude:
226
- - 'lib/alexandria/ui/import_dialog.rb'
227
- - 'lib/alexandria/ui/listview.rb'
228
-
229
- # Offense count: 10
230
112
  # Configuration parameters: EnforcedStyle.
231
113
  # SupportedStyles: annotated, template, unannotated
232
114
  Style/FormatStringToken:
@@ -236,23 +118,19 @@ Style/FormatStringToken:
236
118
  - 'lib/alexandria/ui/listview.rb'
237
119
  - 'lib/alexandria/ui/new_book_dialog.rb'
238
120
 
239
- # Offense count: 27
240
- # Configuration parameters: MinBodyLength.
241
- Style/GuardClause:
242
- Enabled: false
243
-
244
- # Offense count: 2
245
- Style/IdenticalConditionalBranches:
246
- Exclude:
247
- - 'lib/alexandria/book_providers/amazon_aws.rb'
248
-
249
- # Offense count: 1
250
- Style/MethodMissingSuper:
251
- Exclude:
252
- - 'lib/alexandria/preferences.rb'
253
-
254
- # Offense count: 2
255
- Style/MissingRespondToMissing:
121
+ # Configuration parameters: AllowedMethods.
122
+ # AllowedMethods: respond_to_missing?
123
+ Style/OptionalBooleanParameter:
256
124
  Exclude:
257
125
  - 'lib/alexandria/book_providers.rb'
258
- - 'lib/alexandria/preferences.rb'
126
+ - 'lib/alexandria/book_providers/barnes_and_noble.rb'
127
+ - 'lib/alexandria/book_providers/siciliano.rb'
128
+ - 'lib/alexandria/book_providers/thalia.rb'
129
+ - 'lib/alexandria/book_providers/worldcat.rb'
130
+ - 'lib/alexandria/console.rb'
131
+ - 'lib/alexandria/execution_queue.rb'
132
+ - 'lib/alexandria/export_format.rb'
133
+ - 'lib/alexandria/library_sort_order.rb'
134
+ - 'lib/alexandria/models/library.rb'
135
+ - 'lib/alexandria/ui/ui_manager.rb'
136
+ - 'util/rake/fileinstall.rb'