rubycritic 3.4.0 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -2
  3. data/README.md +12 -10
  4. data/lib/rubycritic/cli/options.rb +25 -3
  5. data/lib/rubycritic/command_factory.rb +3 -0
  6. data/lib/rubycritic/commands/ci.rb +2 -8
  7. data/lib/rubycritic/commands/compare.rb +105 -0
  8. data/lib/rubycritic/commands/utils/build_number_file.rb +35 -0
  9. data/lib/rubycritic/configuration.rb +18 -1
  10. data/lib/rubycritic/core/analysed_modules_collection.rb +23 -3
  11. data/lib/rubycritic/generators/html/assets/stylesheets/application.css +20 -0
  12. data/lib/rubycritic/generators/html/base.rb +1 -1
  13. data/lib/rubycritic/generators/html/code_file.rb +11 -0
  14. data/lib/rubycritic/generators/html/code_index.rb +7 -0
  15. data/lib/rubycritic/generators/html/overview.rb +7 -0
  16. data/lib/rubycritic/generators/html/smells_index.rb +7 -0
  17. data/lib/rubycritic/generators/html/templates/code_index.html.erb +10 -0
  18. data/lib/rubycritic/generators/html/templates/layouts/application.html.erb +7 -0
  19. data/lib/rubycritic/generators/html/view_helpers.rb +10 -1
  20. data/lib/rubycritic/source_control_systems/git.rb +27 -1
  21. data/lib/rubycritic/version.rb +1 -1
  22. metadata +7 -131
  23. data/.gitignore +0 -23
  24. data/.rubocop.yml +0 -37
  25. data/.rubocop_todo.yml +0 -45
  26. data/.todo.reek +0 -142
  27. data/.travis.yml +0 -29
  28. data/.yardopts +0 -5
  29. data/docs/building-own-code-climate.md +0 -156
  30. data/docs/core-metrics.md +0 -72
  31. data/docs/jenkins-pr-reviews.md +0 -64
  32. data/features/command_line_interface/minimum_score.feature +0 -39
  33. data/features/command_line_interface/options.feature +0 -37
  34. data/features/rake_task.feature +0 -65
  35. data/features/step_definitions/rake_task_steps.rb +0 -5
  36. data/features/step_definitions/rubycritic_steps.rb +0 -33
  37. data/features/step_definitions/sample_file_steps.rb +0 -32
  38. data/features/support/env.rb +0 -43
  39. data/images/churn-vs-complexity.png +0 -0
  40. data/images/code.png +0 -0
  41. data/images/logo.png +0 -0
  42. data/images/overview.png +0 -0
  43. data/images/rating.png +0 -0
  44. data/images/reek.png +0 -0
  45. data/images/smell-details.png +0 -0
  46. data/images/smells.png +0 -0
  47. data/images/whitesmith.png +0 -0
  48. data/rubycritic.gemspec +0 -45
  49. data/test/analysers_test_helper.rb +0 -12
  50. data/test/lib/rubycritic/analysers/churn_test.rb +0 -35
  51. data/test/lib/rubycritic/analysers/complexity_test.rb +0 -18
  52. data/test/lib/rubycritic/analysers/helpers/methods_counter_test.rb +0 -31
  53. data/test/lib/rubycritic/analysers/helpers/modules_locator_test.rb +0 -55
  54. data/test/lib/rubycritic/analysers/smells/flay_test.rb +0 -41
  55. data/test/lib/rubycritic/analysers/smells/flog_test.rb +0 -28
  56. data/test/lib/rubycritic/analysers/smells/reek_test.rb +0 -32
  57. data/test/lib/rubycritic/analysis_summary_test.rb +0 -30
  58. data/test/lib/rubycritic/browser_test.rb +0 -18
  59. data/test/lib/rubycritic/commands/status_reporter_test.rb +0 -81
  60. data/test/lib/rubycritic/configuration_test.rb +0 -31
  61. data/test/lib/rubycritic/core/analysed_module_test.rb +0 -90
  62. data/test/lib/rubycritic/core/analysed_modules_collection_test.rb +0 -111
  63. data/test/lib/rubycritic/core/location_test.rb +0 -39
  64. data/test/lib/rubycritic/core/smell_test.rb +0 -105
  65. data/test/lib/rubycritic/core/smells_array_test.rb +0 -30
  66. data/test/lib/rubycritic/generators/console_report_test.rb +0 -83
  67. data/test/lib/rubycritic/generators/json_report_test.rb +0 -38
  68. data/test/lib/rubycritic/generators/lint_report_test.rb +0 -37
  69. data/test/lib/rubycritic/generators/turbulence_test.rb +0 -19
  70. data/test/lib/rubycritic/generators/view_helpers_test.rb +0 -85
  71. data/test/lib/rubycritic/revision_comparator_test.rb +0 -66
  72. data/test/lib/rubycritic/smells_status_setter_test.rb +0 -24
  73. data/test/lib/rubycritic/source_control_systems/base_test.rb +0 -31
  74. data/test/lib/rubycritic/source_control_systems/double_test.rb +0 -13
  75. data/test/lib/rubycritic/source_control_systems/git_test.rb +0 -15
  76. data/test/lib/rubycritic/source_control_systems/interfaces/basic.rb +0 -9
  77. data/test/lib/rubycritic/source_control_systems/interfaces/time_travel.rb +0 -9
  78. data/test/lib/rubycritic/source_control_systems/mercurial_test.rb +0 -13
  79. data/test/lib/rubycritic/source_control_systems/perforce_test.rb +0 -176
  80. data/test/lib/rubycritic/source_locator_test.rb +0 -80
  81. data/test/lib/rubycritic/version_test.rb +0 -10
  82. data/test/samples/empty.rb +0 -0
  83. data/test/samples/flay/smelly.rb +0 -8
  84. data/test/samples/flay/smelly2.rb +0 -8
  85. data/test/samples/flog/complex.rb +0 -11
  86. data/test/samples/flog/smelly.rb +0 -11
  87. data/test/samples/location/dir1/file1.rb +0 -0
  88. data/test/samples/location/file0.rb +0 -0
  89. data/test/samples/location/file0_symlink.rb +0 -1
  90. data/test/samples/location/file_with_different_extension.py +0 -0
  91. data/test/samples/location/file_with_no_extension +0 -0
  92. data/test/samples/methods_count.rb +0 -7
  93. data/test/samples/module_names.rb +0 -18
  94. data/test/samples/no_methods.rb +0 -4
  95. data/test/samples/reek/not_smelly.rb +0 -35
  96. data/test/samples/reek/smelly.rb +0 -17
  97. data/test/samples/unparsable.rb +0 -1
  98. data/test/test_helper.rb +0 -64
@@ -10,6 +10,13 @@ module RubyCritic
10
10
 
11
11
  def initialize(analysed_modules)
12
12
  @analysed_modules = analysed_modules
13
+ set_header_links if Config.compare_branches_mode?
14
+ end
15
+
16
+ def set_header_links
17
+ @base_path = code_index_path(Config.base_root_directory, file_name)
18
+ @feature_path = code_index_path(Config.feature_root_directory, file_name)
19
+ @build_path = code_index_path(Config.compare_root_directory, file_name)
13
20
  end
14
21
 
15
22
  def file_name
@@ -15,6 +15,13 @@ module RubyCritic
15
15
  @score = analysed_modules.score
16
16
  @max_score = AnalysedModulesCollection::MAX_SCORE
17
17
  @summary = analysed_modules.summary
18
+ set_header_links if Config.compare_branches_mode?
19
+ end
20
+
21
+ def set_header_links
22
+ @base_path = code_index_path(Config.base_root_directory, file_name)
23
+ @feature_path = code_index_path(Config.feature_root_directory, file_name)
24
+ @build_path = code_index_path(Config.compare_root_directory, file_name)
18
25
  end
19
26
 
20
27
  def file_name
@@ -12,6 +12,13 @@ module RubyCritic
12
12
  @smells = analysed_modules.flat_map(&:smells).uniq
13
13
  @analysed_module_names = analysed_module_names(analysed_modules)
14
14
  @show_status = (Config.mode == :default)
15
+ set_header_links if Config.compare_branches_mode?
16
+ end
17
+
18
+ def set_header_links
19
+ @base_path = code_index_path(Config.base_root_directory, file_name)
20
+ @feature_path = code_index_path(Config.feature_root_directory, file_name)
21
+ @build_path = code_index_path(Config.compare_root_directory, file_name)
15
22
  end
16
23
 
17
24
  def file_name
@@ -23,6 +23,16 @@
23
23
  <tr>
24
24
  <td>
25
25
  <% unless Config.suppress_ratings %>
26
+ <% if Config.build_mode? %>
27
+ <% master_analysed_module = Config.base_branch_collection.find(analysed_module.pathname) %>
28
+ <% if master_analysed_module.cost > analysed_module.cost %>
29
+ <span class="glyphicon glyphicon-arrow-up green-color"></span>
30
+ <% elsif master_analysed_module.cost < analysed_module.cost %>
31
+ <span class="glyphicon glyphicon-arrow-down red-color"></span>
32
+ <% else %>
33
+ <span class="empty-span glyphicon"></span>
34
+ <% end %>
35
+ <% end %>
26
36
  <div class="rating <%= analysed_module.rating.to_s.downcase %>"><%= analysed_module.rating %></div>
27
37
  <% end %>
28
38
  </td>
@@ -19,6 +19,13 @@
19
19
  <header class="navbar navbar-default navbar-fixed-top">
20
20
  <a href="#menu-toggle" class="btn btn-default hidden-lg visible-sm-* hidden-md visible-xs-* pull-left" id="menu-toggle"><i class="fa fa-bars" aria-hidden="true"></i></a>
21
21
  <a href="<%= file_path('overview.html') %>"><img src="<%= image_path('logo.png') %>" title="Ruby Critic Logo" width="55"><span class="logo">RUBYCRITIC</span></a>
22
+ <% if Config.compare_branches_mode? %>
23
+ <ul class="nav navbar-nav navbar-right">
24
+ <a href="<%= @base_path %>"><span class="branch"><%= Config.base_branch %></span></a>
25
+ <a href="<%= @feature_path %>"><span class="branch"><%= Config.feature_branch %></span></a>
26
+ <a href="<%= @build_path %>"><span class="branch">Build</span></a>
27
+ </ul>
28
+ <% end %>
22
29
  </header>
23
30
  <div id="wrapper">
24
31
  <!-- Sidebar -->
@@ -27,7 +27,16 @@ module RubyCritic
27
27
  end
28
28
 
29
29
  def smell_location_path(location)
30
- file_path("#{location.pathname.sub_ext('.html')}#L#{location.line}")
30
+ smell_location = "#{location.pathname.sub_ext('.html')}#L#{location.line}"
31
+ if Config.compare_branches_mode?
32
+ file_path("#{File.expand_path(Config.feature_root_directory)}/#{smell_location}")
33
+ else
34
+ file_path(smell_location)
35
+ end
36
+ end
37
+
38
+ def code_index_path(root_directory, file_name)
39
+ file_path("#{File.expand_path(root_directory)}/#{file_name}")
31
40
  end
32
41
 
33
42
  private
@@ -9,7 +9,11 @@ module RubyCritic
9
9
  GIT_EXECUTABLE = TTY::Which.which('git')
10
10
 
11
11
  def self.git(arg)
12
- `#{GIT_EXECUTABLE} #{arg}`
12
+ if Gem.win_platform?
13
+ `\"#{GIT_EXECUTABLE}\" #{arg}`
14
+ else
15
+ `#{GIT_EXECUTABLE} #{arg}`
16
+ end
13
17
  end
14
18
 
15
19
  def git(arg)
@@ -47,6 +51,28 @@ module RubyCritic
47
51
  travel_to_original_state if stash_successful
48
52
  end
49
53
 
54
+ def self.switch_branch(branch)
55
+ uncommitted_changes? ? `git checkout #{branch}` : abort('Uncommitted changes are present.')
56
+ end
57
+
58
+ def self.uncommitted_changes?
59
+ `git ls-files --other --exclude-standard --directory`.empty? && `git status --porcelain`.empty?
60
+ end
61
+
62
+ def self.modified_files
63
+ modified_files = `git diff --name-status #{Config.base_branch} #{Config.feature_branch}`
64
+ modified_files.split("\n").map do |line|
65
+ next if line.start_with?('D')
66
+ file_name = line.split("\t")[1]
67
+ file_name
68
+ end.compact
69
+ end
70
+
71
+ def self.current_branch
72
+ branch_list = `git branch`
73
+ branch_list.match(/\*.*$/)[0].gsub('* ', '')
74
+ end
75
+
50
76
  private
51
77
 
52
78
  def stash_changes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyCritic
4
- VERSION = '3.4.0'.freeze
4
+ VERSION = '3.5.0'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubycritic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Simoes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-22 00:00:00.000000000 Z
11
+ date: 2018-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flay
@@ -330,14 +330,14 @@ dependencies:
330
330
  requirements:
331
331
  - - "~>"
332
332
  - !ruby/object:Gem::Version
333
- version: '0.53'
333
+ version: 0.53.0
334
334
  type: :development
335
335
  prerelease: false
336
336
  version_requirements: !ruby/object:Gem::Requirement
337
337
  requirements:
338
338
  - - "~>"
339
339
  - !ruby/object:Gem::Version
340
- version: '0.53'
340
+ version: 0.53.0
341
341
  description: RubyCritic is a tool that wraps around various static analysis gems to
342
342
  provide a quality report of your Ruby code.
343
343
  email:
@@ -347,12 +347,6 @@ executables:
347
347
  extensions: []
348
348
  extra_rdoc_files: []
349
349
  files:
350
- - ".gitignore"
351
- - ".rubocop.yml"
352
- - ".rubocop_todo.yml"
353
- - ".todo.reek"
354
- - ".travis.yml"
355
- - ".yardopts"
356
350
  - CHANGELOG.md
357
351
  - CONTRIBUTING.md
358
352
  - Gemfile
@@ -361,25 +355,6 @@ files:
361
355
  - ROADMAP.md
362
356
  - Rakefile
363
357
  - bin/rubycritic
364
- - docs/building-own-code-climate.md
365
- - docs/core-metrics.md
366
- - docs/jenkins-pr-reviews.md
367
- - features/command_line_interface/minimum_score.feature
368
- - features/command_line_interface/options.feature
369
- - features/rake_task.feature
370
- - features/step_definitions/rake_task_steps.rb
371
- - features/step_definitions/rubycritic_steps.rb
372
- - features/step_definitions/sample_file_steps.rb
373
- - features/support/env.rb
374
- - images/churn-vs-complexity.png
375
- - images/code.png
376
- - images/logo.png
377
- - images/overview.png
378
- - images/rating.png
379
- - images/reek.png
380
- - images/smell-details.png
381
- - images/smells.png
382
- - images/whitesmith.png
383
358
  - lib/rubycritic.rb
384
359
  - lib/rubycritic/analysers/attributes.rb
385
360
  - lib/rubycritic/analysers/churn.rb
@@ -403,9 +378,11 @@ files:
403
378
  - lib/rubycritic/command_factory.rb
404
379
  - lib/rubycritic/commands/base.rb
405
380
  - lib/rubycritic/commands/ci.rb
381
+ - lib/rubycritic/commands/compare.rb
406
382
  - lib/rubycritic/commands/default.rb
407
383
  - lib/rubycritic/commands/help.rb
408
384
  - lib/rubycritic/commands/status_reporter.rb
385
+ - lib/rubycritic/commands/utils/build_number_file.rb
409
386
  - lib/rubycritic/commands/version.rb
410
387
  - lib/rubycritic/configuration.rb
411
388
  - lib/rubycritic/core/analysed_module.rb
@@ -478,57 +455,6 @@ files:
478
455
  - lib/rubycritic/source_control_systems/perforce.rb
479
456
  - lib/rubycritic/source_locator.rb
480
457
  - lib/rubycritic/version.rb
481
- - rubycritic.gemspec
482
- - test/analysers_test_helper.rb
483
- - test/lib/rubycritic/analysers/churn_test.rb
484
- - test/lib/rubycritic/analysers/complexity_test.rb
485
- - test/lib/rubycritic/analysers/helpers/methods_counter_test.rb
486
- - test/lib/rubycritic/analysers/helpers/modules_locator_test.rb
487
- - test/lib/rubycritic/analysers/smells/flay_test.rb
488
- - test/lib/rubycritic/analysers/smells/flog_test.rb
489
- - test/lib/rubycritic/analysers/smells/reek_test.rb
490
- - test/lib/rubycritic/analysis_summary_test.rb
491
- - test/lib/rubycritic/browser_test.rb
492
- - test/lib/rubycritic/commands/status_reporter_test.rb
493
- - test/lib/rubycritic/configuration_test.rb
494
- - test/lib/rubycritic/core/analysed_module_test.rb
495
- - test/lib/rubycritic/core/analysed_modules_collection_test.rb
496
- - test/lib/rubycritic/core/location_test.rb
497
- - test/lib/rubycritic/core/smell_test.rb
498
- - test/lib/rubycritic/core/smells_array_test.rb
499
- - test/lib/rubycritic/generators/console_report_test.rb
500
- - test/lib/rubycritic/generators/json_report_test.rb
501
- - test/lib/rubycritic/generators/lint_report_test.rb
502
- - test/lib/rubycritic/generators/turbulence_test.rb
503
- - test/lib/rubycritic/generators/view_helpers_test.rb
504
- - test/lib/rubycritic/revision_comparator_test.rb
505
- - test/lib/rubycritic/smells_status_setter_test.rb
506
- - test/lib/rubycritic/source_control_systems/base_test.rb
507
- - test/lib/rubycritic/source_control_systems/double_test.rb
508
- - test/lib/rubycritic/source_control_systems/git_test.rb
509
- - test/lib/rubycritic/source_control_systems/interfaces/basic.rb
510
- - test/lib/rubycritic/source_control_systems/interfaces/time_travel.rb
511
- - test/lib/rubycritic/source_control_systems/mercurial_test.rb
512
- - test/lib/rubycritic/source_control_systems/perforce_test.rb
513
- - test/lib/rubycritic/source_locator_test.rb
514
- - test/lib/rubycritic/version_test.rb
515
- - test/samples/empty.rb
516
- - test/samples/flay/smelly.rb
517
- - test/samples/flay/smelly2.rb
518
- - test/samples/flog/complex.rb
519
- - test/samples/flog/smelly.rb
520
- - test/samples/location/dir1/file1.rb
521
- - test/samples/location/file0.rb
522
- - test/samples/location/file0_symlink.rb
523
- - test/samples/location/file_with_different_extension.py
524
- - test/samples/location/file_with_no_extension
525
- - test/samples/methods_count.rb
526
- - test/samples/module_names.rb
527
- - test/samples/no_methods.rb
528
- - test/samples/reek/not_smelly.rb
529
- - test/samples/reek/smelly.rb
530
- - test/samples/unparsable.rb
531
- - test/test_helper.rb
532
458
  homepage: https://github.com/whitesmith/rubycritic
533
459
  licenses:
534
460
  - MIT
@@ -553,54 +479,4 @@ rubygems_version: 2.6.13
553
479
  signing_key:
554
480
  specification_version: 4
555
481
  summary: RubyCritic is a Ruby code quality reporter
556
- test_files:
557
- - test/analysers_test_helper.rb
558
- - test/lib/rubycritic/analysers/churn_test.rb
559
- - test/lib/rubycritic/analysers/complexity_test.rb
560
- - test/lib/rubycritic/analysers/helpers/methods_counter_test.rb
561
- - test/lib/rubycritic/analysers/helpers/modules_locator_test.rb
562
- - test/lib/rubycritic/analysers/smells/flay_test.rb
563
- - test/lib/rubycritic/analysers/smells/flog_test.rb
564
- - test/lib/rubycritic/analysers/smells/reek_test.rb
565
- - test/lib/rubycritic/analysis_summary_test.rb
566
- - test/lib/rubycritic/browser_test.rb
567
- - test/lib/rubycritic/commands/status_reporter_test.rb
568
- - test/lib/rubycritic/configuration_test.rb
569
- - test/lib/rubycritic/core/analysed_module_test.rb
570
- - test/lib/rubycritic/core/analysed_modules_collection_test.rb
571
- - test/lib/rubycritic/core/location_test.rb
572
- - test/lib/rubycritic/core/smell_test.rb
573
- - test/lib/rubycritic/core/smells_array_test.rb
574
- - test/lib/rubycritic/generators/console_report_test.rb
575
- - test/lib/rubycritic/generators/json_report_test.rb
576
- - test/lib/rubycritic/generators/lint_report_test.rb
577
- - test/lib/rubycritic/generators/turbulence_test.rb
578
- - test/lib/rubycritic/generators/view_helpers_test.rb
579
- - test/lib/rubycritic/revision_comparator_test.rb
580
- - test/lib/rubycritic/smells_status_setter_test.rb
581
- - test/lib/rubycritic/source_control_systems/base_test.rb
582
- - test/lib/rubycritic/source_control_systems/double_test.rb
583
- - test/lib/rubycritic/source_control_systems/git_test.rb
584
- - test/lib/rubycritic/source_control_systems/interfaces/basic.rb
585
- - test/lib/rubycritic/source_control_systems/interfaces/time_travel.rb
586
- - test/lib/rubycritic/source_control_systems/mercurial_test.rb
587
- - test/lib/rubycritic/source_control_systems/perforce_test.rb
588
- - test/lib/rubycritic/source_locator_test.rb
589
- - test/lib/rubycritic/version_test.rb
590
- - test/samples/empty.rb
591
- - test/samples/flay/smelly.rb
592
- - test/samples/flay/smelly2.rb
593
- - test/samples/flog/complex.rb
594
- - test/samples/flog/smelly.rb
595
- - test/samples/location/dir1/file1.rb
596
- - test/samples/location/file0.rb
597
- - test/samples/location/file0_symlink.rb
598
- - test/samples/location/file_with_different_extension.py
599
- - test/samples/location/file_with_no_extension
600
- - test/samples/methods_count.rb
601
- - test/samples/module_names.rb
602
- - test/samples/no_methods.rb
603
- - test/samples/reek/not_smelly.rb
604
- - test/samples/reek/smelly.rb
605
- - test/samples/unparsable.rb
606
- - test/test_helper.rb
482
+ test_files: []
data/.gitignore DELETED
@@ -1,23 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- test/samples/report.json
18
- tmp
19
- .idea/
20
- .ruby-gemset
21
- .ruby-version
22
- .DS_Store
23
- .byebug_history
@@ -1,37 +0,0 @@
1
- AllCops:
2
- DisplayCopNames: true
3
- Include:
4
- - '**/*.gemspec'
5
- - '**/*.rake'
6
- - '**/Gemfile'
7
- - '**/Rakefile'
8
- Exclude:
9
- - 'test/samples/**/*'
10
- - 'tmp/**/*'
11
- - 'vendor/**/*'
12
-
13
- Metrics/BlockLength:
14
- Enabled: false
15
-
16
- Metrics/LineLength:
17
- Max: 120
18
-
19
- Style/Documentation:
20
- Enabled: false
21
-
22
- Security/MarshalLoad:
23
- Enabled: false
24
- Include:
25
- - 'lib/rubycritic/serializer.rb'
26
-
27
- Style/RedundantFreeze:
28
- Enabled: false
29
- Include:
30
- - 'lib/rubycritic/core/smell.rb'
31
- - 'lib/rubycritic/generators/json/simple.rb'
32
- - 'lib/rubycritic/revision_comparator.rb'
33
- - 'lib/rubycritic/source_control_systems/perforce.rb'
34
- - 'lib/rubycritic/source_locator.rb'
35
- - 'lib/rubycritic/version.rb'
36
-
37
- inherit_from: .rubocop_todo.yml
@@ -1,45 +0,0 @@
1
- # Offense count: 1
2
- Metrics/AbcSize:
3
- Exclude:
4
- - 'lib/rubycritic/analysers/smells/flay.rb'
5
- - 'lib/rubycritic/cli/options.rb'
6
-
7
- # Offense count: 6
8
- # Configuration parameters: CountComments.
9
- Metrics/MethodLength:
10
- Exclude:
11
- - 'lib/rubycritic/analysers/helpers/ast_node.rb'
12
- - 'lib/rubycritic/analysers/smells/flay.rb'
13
- - 'lib/rubycritic/command_factory.rb'
14
- - 'lib/rubycritic/core/analysed_module.rb'
15
- - 'lib/rubycritic/reporter.rb'
16
- - 'lib/rubycritic/revision_comparator.rb'
17
- - 'lib/rubycritic/platforms/base.rb'
18
-
19
- # Offense count: 4
20
- Naming/AccessorMethodName:
21
- Exclude:
22
- - 'lib/rubycritic/analysers/helpers/ast_node.rb'
23
- - 'lib/rubycritic/generators/html/base.rb'
24
- - 'lib/rubycritic/revision_comparator.rb'
25
-
26
- # Offense count: 1
27
- Style/ClassVars:
28
- Exclude:
29
- - 'lib/rubycritic/source_control_systems/base.rb'
30
-
31
- # Offense count: 3
32
- # Cop supports --auto-correct.
33
- # Configuration parameters: EnforcedStyle, SupportedStyles.
34
- # SupportedStyles: use_perl_names, use_english_names
35
- Style/SpecialGlobalVars:
36
- Enabled: false
37
-
38
- # Offense count: 1
39
- Style/MethodMissing:
40
- Exclude:
41
- - 'lib/rubycritic/configuration.rb'
42
-
43
- # Offense count: 3
44
- Layout/IndentHeredoc:
45
- Enabled: false