.rubocop_todo.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. Rails/CreateTableWithTimestamps:
  34. Description: >-
  35. Checks the migration for which timestamps are not included
  36. when creating a new table.
  37. Enabled: false
  38. Rails/HasManyOrHasOneDependent:
  39. Description: 'Define the dependent option to the has_many and has_one associations.'
  40. StyleGuide: 'https://github.com/bbatsov/rails-style-guide#has_many-has_one-dependent-option'
  41. Enabled: false
  42. Style/DateTime:
  43. Description: 'Use Date or Time over DateTime.'
  44. StyleGuide: '#date--time'
  45. Enabled: false
  46. Style/Documentation:
  47. Description: 'Document classes and non-namespace modules.'
  48. Enabled: false
  49. Lint/UselessAssignment:
  50. Enabled: false
  51. Layout/ExtraSpacing:
  52. Description: 'Do not use unnecessary spacing.'
  53. Enabled: false
  54. # Broken!!!! Generates broken code since "String".downcase == "strinG".downcase is not equals "String".casecmp("strinG") but "String".casecmp("strinG") == 0 !!!
  55. Performance/Casecmp:
  56. Description: 'Use `casecmp` rather than `downcase ==`.'
  57. Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringcasecmp-vs-stringdowncase---code'
  58. Enabled: false
  59. # Can be removed after introduction of Sequencer for OTRS migration
  60. Lint/MissingCopEnableDirective:
  61. Enabled: true
  62. Exclude:
  63. - "lib/import/**/*"