Add ide integration

This commit is contained in:
Mark Sagi-Kazar 2019-12-06 11:50:04 +01:00 committed by Márk Sági-Kazár
parent d52c544291
commit fae3a81867
8 changed files with 87 additions and 29 deletions

46
.gitignore vendored
View File

@ -1,32 +1,20 @@
/bin/ /bin/
/build/ /build/
/var/
/vendor/
# Compiled Object files, Static and Dynamic libs (Shared Objects) # IDE integration
*.o /.vscode/*
*.a !/.vscode/launch.json
*.so !/.vscode/tasks.json
/.idea/*
# Folders !/.idea/codeStyles/
_obj !/.idea/copyright/
_test !/.idea/dataSources.xml
!/.idea/*.iml
# Architecture specific extensions/prefixes !/.idea/externalDependencies.xml
*.[568vq] !/.idea/go.imports.xml
[568vq].out !/.idea/modules.xml
!/.idea/runConfigurations/
*.cgo1.go !/.idea/scopes/
*.cgo2.c !/.idea/sqldialects.xml
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*
_testmain.go
*.exe
*.test
*.bench
.vscode
# exclude dependencies in the `/vendor` folder
vendor

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalDependencies">
<plugin id="name.kropp.intellij.makefile" />
<plugin id="org.jetbrains.plugins.go" />
</component>
</project>

8
.idea/go.imports.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GoImports">
<option name="groupStdlibImports" value="true" />
<option name="importSorting" value="GOFMT" />
<option name="moveAllImportsInOneDeclaration" value="true" />
</component>
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/viper.iml" filepath="$PROJECT_DIR$/.idea/viper.iml" />
</modules>
</component>
</project>

View File

@ -0,0 +1,7 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Check" type="CompoundRunConfigurationType">
<toRun name="Tests" type="GoTestRunConfiguration" />
<toRun name="Lint" type="MAKEFILE_TARGET_RUN_CONFIGURATION" />
<method v="2" />
</configuration>
</component>

View File

@ -0,0 +1,8 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Lint" type="MAKEFILE_TARGET_RUN_CONFIGURATION" factoryName="Makefile">
<makefile filename="$PROJECT_DIR$/Makefile" target="lint" workingDirectory="" arguments="">
<envs />
</makefile>
<method v="2" />
</configuration>
</component>

View File

@ -0,0 +1,23 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Tests" type="GoTestRunConfiguration" factoryName="Go Test">
<module name="viper" />
<working_directory value="$PROJECT_DIR$/" />
<go_parameters value="-i" />
<EXTENSION ID="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" />
</ENTRIES>
</EXTENSION>
<framework value="gotest" />
<kind value="DIRECTORY" />
<package value="github.com/spf13/viper" />
<directory value="$PROJECT_DIR$/" />
<filePath value="$PROJECT_DIR$/" />
<method v="2" />
</configuration>
</component>

9
.idea/viper.iml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>