.rubocop_todo.yml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # 10.0
  2. Metrics/PerceivedComplexity:
  3. Description: >-
  4. A complexity metric geared towards measuring complexity for a
  5. human reader.
  6. Enabled: false
  7. Metrics/AbcSize:
  8. Description: >-
  9. A calculated magnitude based on number of assignments,
  10. branches, and conditions.
  11. Enabled: false
  12. Metrics/CyclomaticComplexity:
  13. Description: >-
  14. A complexity metric that is strongly correlated to the number
  15. of test cases needed to validate a method.
  16. Enabled: false
  17. Metrics/BlockNesting:
  18. Description: 'Avoid excessive block nesting'
  19. StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
  20. Enabled: false
  21. Metrics/ModuleLength:
  22. Description: 'Avoid modules longer than 100 lines of code.'
  23. Enabled: false
  24. Metrics/BlockLength:
  25. Enabled: false
  26. Style/RescueStandardError:
  27. Description: 'Avoid rescuing without specifying an error class.'
  28. Enabled: false
  29. # TODO
  30. Rails/ApplicationRecord:
  31. Description: 'Check that models subclass ApplicationRecord.'
  32. Enabled: false
  33. # Browser-Tests inherit from TestCase < Test::Unit::TestCase
  34. # which does not provide assert_not
  35. Rails/AssertNot:
  36. Description: 'Use `assert_not` instead of `assert !`.'
  37. Enabled: true
  38. Exclude:
  39. - "test/browser/*"
  40. Rails/CreateTableWithTimestamps:
  41. Description: >-
  42. Checks the migration for which timestamps are not included
  43. when creating a new table.
  44. Enabled: false
  45. Rails/HasManyOrHasOneDependent:
  46. Description: 'Define the dependent option to the has_many and has_one associations.'
  47. StyleGuide: 'https://github.com/bbatsov/rails-style-guide#has_many-has_one-dependent-option'
  48. Enabled: false
  49. Style/DateTime:
  50. Description: 'Use Date or Time over DateTime.'
  51. StyleGuide: '#date--time'
  52. Enabled: false
  53. Style/Documentation:
  54. Description: 'Document classes and non-namespace modules.'
  55. Enabled: false
  56. Lint/UselessAssignment:
  57. Enabled: false
  58. Layout/ExtraSpacing:
  59. Description: 'Do not use unnecessary spacing.'
  60. Enabled: false
  61. # Broken!!!! Generates broken code since "String".downcase == "strinG".downcase is not equals "String".casecmp("strinG") but "String".casecmp("strinG") == 0 !!!
  62. Performance/Casecmp:
  63. Description: 'Use `casecmp` rather than `downcase ==`.'
  64. Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringcasecmp-vs-stringdowncase---code'
  65. Enabled: false
  66. # Can be removed after introduction of Sequencer for OTRS migration
  67. Lint/MissingCopEnableDirective:
  68. Enabled: true
  69. Exclude:
  70. - "lib/import/**/*"