I will try to make things clearer... When debugging checkstyle it can be useful to have the IDE run the checks. Checkstyle uses a file usually called checkstyle.xml for its configuration. The version of checkstyle in Intellij (or in the checkstyle plugin, IDK) does not like the checkstyle.xml that Hive uses. (I think that Hive's checkstyle version may come from the maven plugin) Vineet provided a version of Hive's checkstyle.xml that Intellij does like. You can even load it directly in Intellj using the url https://raw.githubusercontent.com/vineetgarg02/misc/master/hive_tools/checkstyle.xml
I have tried it out and it is useful (thanks Vineet). Hopefully eventually Intellj and Hive will converge on a mutually acceptable version of checkstyle -Andrew On Thu, Feb 1, 2018 at 8:37 PM, Vineet Garg <vg...@hortonworks.com> wrote: > Hi Vihang, > > I am unable to import eclipse-styles.xml. I am using IntelliJ 2017.3 with > Checkstyle 8.7. May be you are using different version? > > Vineet > > > On Feb 1, 2018, at 5:58 PM, Vihang Karajgaonkar <vih...@cloudera.com> > wrote: > > > > Thanks for sharing Vineet. How is this different than > > https://github.com/apache/hive/blob/master/dev-support/ > eclipse-styles.xml > > > > I was able to import this in IntelliJ just fine. > > > > > > On Thu, Feb 1, 2018 at 4:42 PM, Vineet Garg <vg...@hortonworks.com> > wrote: > > > >> Hi, > >> > >> If you would like to use Intellij’s checkstyle plugin and are unable to > >> import current checkstyle.xml under HIVE_REPO/checkstyle.xml file use a > >> modified version located at: > >> https://github.com/vineetgarg02/misc/blob/master/ > hive_tools/checkstyle.xml > >> > >> Current format seems to be unsupported with checkstyle plugin. > >> > >> Thanks, > >> Vineet > >> > >