google / swift

The Swift Programming Language
https://swift.org/
840 stars 66 forks source link

Check the configuration to see if rules should be skipped #234

Closed dabelknap closed 5 years ago

dabelknap commented 5 years ago

This PR allows you to suppress rules from a configuration file. For example:

{
  "blankLineBetweenMembers" : {
    "ignoreSingleLineProperties" : true
  },
  "indentation" : {
    "spaces" : 2
  },
  "lineLength" : 100,
  "maximumBlankLines" : 1,
  "respectsExistingLineBreaks" : true,
  "suppressFormatRules" : [
    "DoNotUseSemicolons"
  ],
  "suppressLintRules": [
    "DoNotUseSemicolons"
  ],
  "tabWidth" : 8,
  "version" : 1
}
dabelknap commented 5 years ago

Replaced with PR #235