Files
SCM-Manager/docs/v2/intellij-idea-configuration.md
Florian Scholdei f1b34eb502 Changeover to MIT license (#1066)
* prepare license-maven-plugin for license migration
* added license mapping for tsx files and added some more excludes
* Changeover to MIT license
* Fix build problems
* Delete old remaining licenses
* Add more exclude path for license checker
* Rename included netbeans license, add exclude .m2/repository/
* Specify .m2 exclude because not only repository/, also wrapper/ must match
* Add .cache/ exclude for license check
* Modify formatting of license in java classes to comply with convention and IDE
* Add IntelliJ documentation for license configuration
* Update CHANGELOG.md
* Exclude tmp/workspace/ dir for license check
* Edit README.md

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
2020-03-23 15:35:58 +01:00

2.0 KiB

Intellij IDEA Configuration

Backend

Plugins

  • Lombok Plugin
  • MapStruct Support

Settings

  • Run Configurations / Edit Configuration
    • Add Maven
    • Name: run-backend
    • Working directory: ../scm-webapp
    • Command line: -DskipTests package jetty:run-war
  • Editor / Code Style / Java
    • Tab Imports
      • Class count to use import with '*': <MAX_INT>
      • Names count to use static import with '*': <MAX_INT>

Frontend

Plugins

  • Prettier
  • File Watchers

Settings

  • Languages & Frameworks / Node.js and NPM

    • Package Manager: yarn
  • Languages & Frameworks / Javascript

    • JavaScript language version: Flow
    • Flow package or executable: .../scm-ui/node_modules/flow-bin
  • Languages & Frameworks / Javascript / Code Quality Tools / ESLint

    • Enable
    • ESLint package: .../scm-ui/node_modules/eslint
    • -OR- Automatic ESLint configuration
  • Languages & Frameworks / Javascript / Prettier

    • Prettier package: .../scm-ui/node_modules/prettier
  • Tools / File Watchers

    • Add Prettier
      • Deselect: Track only root files
      • Scope: Current File
      • Program: $ProjectFileDir$/scm-ui/node_modules/.bin/prettier
      • Working Directory: $ProjectFileDir$/scm-ui
  • Run Configurations / Edit Configuration

    • Templates / Jest
    • Jest package: .../scm-ui/node_modules/jest
    • Jest options: --config node_modules/@scm-manager/ui-bundler/src/jest.ide.config.js
  • Run Configurations / Edit Configuration

    • Add npm
    • Name: run-frontend
    • package-json: .../scm-ui/package.json
    • Command: run
    • Scripts: start

Both

  • EditorConfig

  • Editor / Copyright / Copyright Profiles

    • Add Profile
    • Name: SCM-MIT
    • Copyright text: see LICENSE.txt in the main directory
    • Regex: MIT License
  • Editor / Copyright

    • Default project copyright: SCM-MIT
  • Editor / Copyright / Formatting / XML

    • Use custom formatting options
    • Use block comment, check prefix each line
    • Select: Separator before, Length: 0
    • Separator: space