Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: spellcheck in the description texteditor #2027

Open
wants to merge 34 commits into
base: main
Choose a base branch
from

Conversation

DianaH583
Copy link
Contributor

US and UK dictionaries

  • rather 1-story 1-commit than sub-atomic commits

  • commit title is meaningful => git history search

  • commit description is helpful => helps the reviewer to understand the changes

  • code is up-to-date with the latest developments of the target branch (rebased to it or whatever) => ⏩-merge for linear history is favoured

  • added code is linted

  • tests are passing (at least locally): we still have some random test failure on CI. thinking of asking spec/examples.txt to be commited

  • in case the changes are visible to the end-user,  video or screenshots should be added to the PR => helps with user testing

  • testing coverage improvement is improved.

  • CHANGELOG :  add a bullet point on top (optional: reference to github issue/PR )

  • parallele PR for documentation  on docusaurus  if the feature/fix is tagged for a release

module Chemotion
class DictionaryAPI < Grape::API
resource :dictionary do
desc "amend custom dictionary"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.

module Chemotion
class DictionaryAPI < Grape::API
resource :dictionary do
desc "amend custom dictionary"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

desc "amend custom dictionary"
namespace :amend do
params do
requires :new_word, type: String

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.

requires :new_word, type: String
end
get do
file_path = "public/typojs/custom/custom.dic"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/SpaceAroundOperators: Operator = should be surrounded by a single space.

requires :new_word, type: String
end
get do
file_path = "public/typojs/custom/custom.dic"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/ExtraSpacing: Unnecessary spacing detected.

namespace :save do
desc "admin save"
params do
requires :new_dic, type: String

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/ExtraSpacing: Unnecessary spacing detected.

requires :new_dic, type: String
end
get do
file_path = "public/typojs/custom/custom.dic"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

end
get do
file_path = "public/typojs/custom/custom.dic"
file = File.open(file_path, "w+")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

file.close
end
end
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/BlockAlignment: end at 51, 2 is not aligned with resource :dictionary do at 5, 4.

end
end
end
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/EndAlignment: end at 52, 0 is not aligned with class at 4, 2.

Copy link

LCOV of commit 20326f6 during Continuous Integration #3199

Summary coverage rate:
  lines......: 64.0% (13672 of 21346 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

user: added AC button to the addition information on reactions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant