pderichs / sublime_rubocop

A Sublime Text RuboCop plugin.
238 stars 41 forks source link

Getting Naming/FileName has the wrong namespace error on autocorrect #56

Open prog1dev opened 6 years ago

prog1dev commented 6 years ago
Please add some general information about your environment:

Metrics/ParameterLists: Max: 5

Metrics/LineLength: Max: 120

Style/Alias: Enabled: false

Style/ClassAndModuleChildren: EnforcedStyle: compact

Style/FrozenStringLiteralComment: Enabled: false

Style/ModuleFunction: Enabled: false

Style/StringLiterals: EnforcedStyle: single_quotes

Style/StringLiteralsInInterpolation: EnforcedStyle: double_quotes

Naming/FileName: Enabled: false

##### Steps to reproduce:
Create `.rubocop.yml` file in your project root with settings as above. Try to autocorrect any ruby file with warnings via Command Palette. 

In Sublime-Linter debug mode Im getting this error

~/projects/my_project/.rubocop.yml: Naming/FileName has the wrong namespace - should be Style SublimeLinter: No match for <_sre.SRE_Pattern object at 0x7fbc8059cb90>

Due to [default.yml in rubocop github repo](https://github.com/bbatsov/rubocop/blob/master/config/default.yml#L568) this is a correct setting. So command 

rubocop --auto-correct path/to/file


works fine.